I am testing a rails application with Cucumber and Capybara / rack_test. I have the following step definition:
Then /^I should see '([^']*)'$/ do |content| visit about_path response.should have_content(content) end
where about_path maps to /about .
Every time my story crashes with a message
Feature: Some Great Feature So that I can blah-blah As a Blah-blah I want blah-blah Scenario: Show project label on about page
Please note that the actual content is empty. It is empty for every path I tried.
This is strange because rspecs goes through.
Is there anything I could try? Tell me if you need more information.
source share