Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用黄瓜和水豚以及 rails 2.3.9。
如何验证页面标题?我尝试为每个 GET 请求设置一个好的页面标题,并希望在我的黄瓜测试中验证这一点。
知道了。
Then /^I should see page title as "(.*)"$/ do |title| assert_equal title, page.find(:css, 'title').text end