Capybara: undefined method 'visit'

后端 未结 6 2100
广开言路
广开言路 2020-12-13 00:25

When running my specs with rspec & capybara, it can\'t find capybara\'s visit method. Is there another initialization step I need to do?

$bundle exec rsp         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 01:08

    For rspec 3 and rails, make sure you are using require "rails_helper", instead of require "spec_helper".

    Otherwise, review the latest changes to rspec 3 & rspec-rails and Capybara 2.0.x.

提交回复
热议问题