Rspec test should pass but fails

前端 未结 4 1309
独厮守ぢ
独厮守ぢ 2021-01-14 16:59

I have this test from michael hartl book:

require \'spec_helper\'
  describe \"Static pages\" do
    let(:base_title) { \"Ruby on Rails Tutorial Sample App\"         


        
4条回答
  •  滥情空心
    2021-01-14 17:28

    Make sure you're using capybara 1.1.2 in your Gemfile. Starting from 2.0 capybara does not works for title testing (https://github.com/jnicklas/capybara/issues/844)

    ...
    group :test do
      gem 'capybara', '1.1.2'
    end
    

提交回复
热议问题