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 == "" 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