I am running a Rails 3.0.7 project with Cucumber and Capybara, and I have a step definition that checks if flash [: error] exists:
Then /^I should be able to see the main page properly$/ do current_path.should == "/" flash[:error].should == nil end
When I run my cucumber test, I get an error
And I should be able to see the main page properly
Is this the right way to handle variable statements? I noticed that if I use [: something] sessions, the same type of error will occur.
source share