Visit method not found in my rspec

前端 未结 6 1934
鱼传尺愫
鱼传尺愫 2020-11-30 03:08

My java web application is running on tomcat at http://localhost:8080/

Writing my first spec, home_spec:

require \'spec_helper\'


d         


        
6条回答
  •  星月不相逢
    2020-11-30 03:26

    1) Add to ‘rails_helper’ config:

    config.include Capybara::DSL
    config.include Capybara::RSpecMatchers
    
    And comment out the `require 'spec_helper'` line.
    

    2) Add to 'spec_helper':

    require 'rails_helper'
    

提交回复
热议问题