I\'m having problem making two requests to the same url in a rails integration test, with rspec
it \'does something\' do
# get \'/something\', {:status=>\'
You have to clear your instance variables, or maybe the only necessary one.
Let's pretend you use @book
in your controller.
get '/something'
assert ...
controller.instance_variable_set(:@book, nil)
get '/something'
assert ...
If you are using inherit_resources
get '/something'
assert ...
controller.send(:set_resource_ivar, nil)
get '/something'
assert ...