testing with specs, capybara from railstutorial chapter 3 does not work (have_selector('title', :text => ' | Home'))

后端 未结 6 1514
日久生厌
日久生厌 2021-02-20 14:47

im working on ruby.railstutorial.org/ruby-on-rails-tutorial-book. Im using rails 3.2.7, spork, rspec, capybara, launchy and some guards :)

i have a really weird problem

6条回答
  •  一整个雨季
    2021-02-20 15:08

    If you're using Capybara 2, you can use the have_title method like this:

    page.should have_title("Ruby on Rails Tutorial Sample App | Home")

提交回复
热议问题