Reputation: 38540
I am using cucumber and capybara along with rails 2.3.9.
How do I verify the page title? I try to have a good page title for every GET request and would like to verify that in my cucumber tests.
Upvotes: 1
Views: 1917
Reputation: 38540
Got it.
Then /^I should see page title as "(.*)"$/ do |title|
assert_equal title, page.find(:css, 'title').text
end
Upvotes: 3