I'm running a basic feature by following RBates RailsCasts tutorial using Rspec 2.5.0 and Cucumber-rails 0.4.1 on a cygwin environment. I am at the step where I am testing "Then I should see"
For example:
Scenario: Stores List
Given I have stores named Pizza, Breadsticks
When I go to the list of stores
**Then I should see "Pizza"**
Running cucumber features gives me the following error message:
Undefined local variable or method 'page' for Cucumber::Rails::World (NameError)
Then I should See is defined in the web_steps file as follows:
if page.respond_to? :should
page.should have_content(text)
else
assert page.has_content?(text)
end
Any guidance would be appreciated!
Thank you!