In my controller’s action I set instance variables like:
@last_action = xxx @paid_with_card = xxx
Now, how do I access them in my integration tests? I tried Mike
But my test fails:
============start test output======
Finished in 17.906 seconds.
test_select_and_buy_pack' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/integration.rb:453:inrun’]:
expected to not be nil.
22 tests, 63 assertions, 2 failures, 0 errors
============end test output======
What can I do to access these variables? What do I get wrong here?
What am I missing? How do you actually read instance variables from
the controller in the integration tests???
Thanks in advance!
PS I have also tried these that don’t seem to work either:
(1) Mike C.'s example: http://clarkware.com/cgi/blosxom/2006/04/04