Visit method not found in my rspec

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

    By default the capybara DSL is included automatically if the file is in spec/requests, spec/integration or if the example group has :type => :request.

    Because your file is in spec/home the capybara helpers aren't being included. You can either conform to one of the patterns above or adding include Capybara::DSL should also do the trick (you might also need to replicate some of the before(:each) stuff that would be setup.)

提交回复
热议问题