On Thu, Mar 27, 2008 at 8:50 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Thu, Mar 27, 2008 at 7:08 AM, Bart Zonneveld <[EMAIL PROTECTED]> wrote: > > Hey gang, > > > > I'm writing a story in which I update a model via XML. So far, so > > good. But, I want to test the outcome of the controller, namely the > > following code: > > > > format.xml { head :ok } > > > > How can I test this in a story? > > Same as in a controller example: > > response.should be_success > response.body.should == ""
Or - for the latter ... response.should be_blank Just a matter of preference, but perhaps that's more readable. > > Cheers, > David > > > > > > > thanks, > > bartz > > _______________________________________________ > > rspec-users mailing list > > rspec-users@rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users