views:

29

answers:

1

I'm migrating over to shoulda from rspec and I can't seem to get access to the http response. Can someone point out what I may be doing wrong?

  context "doing somethin" do
      setup do
        get :index
      end
      @response.body
      should respond_with :success
  end

When i run this i get an error saying that @response is a nill object.

A: 

Have you seen this?

http://robots.thoughtbot.com/post/701863189/shoulda-rails3-and-beyond

Anonymous
As far as I can tell, that link doesn't have any information about http responses in relation to shoulda, can you please be more specific?
ThinkBohemian