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

后端 未结 6 1507
日久生厌
日久生厌 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

    Can you test with this :

    page.should have_selector('head title',
                              :text => "Ruby on Rails Tutorial Sample App | Home")
    

提交回复
热议问题