开发者

How to verify the page title

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.


Got it.

Then /^I should see page title as "(.*)"$/ do |title|
  assert_equal title, page.find(:css, 'title').text
end
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜