Visit method not found in my rspec

前端 未结 6 1902
鱼传尺愫
鱼传尺愫 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:18

    Also make sure your tests are in the /spec/features directory. According to rspec-rails and capybara 2.0, Capybara v2 and higher will not be available by default in RSpec request specs. They suggest to "...move any tests that use capybara from spec/requests to spec/features."

提交回复
热议问题