Capybara methods are undefined

前端 未结 2 477
暗喜
暗喜 2021-01-15 09:48

I cannot get capybara to work. I am using capybara 2.0.0

I get this error

Failure/Error: visit \"/users/sign_in\"
     NoMethodError:
       undefine         


        
2条回答
  •  孤城傲影
    2021-01-15 09:54

    In my case, I got this error because I forgot to putrequire "spec_helper" at the top of my new spec file.

    I've done it enough times that I'm adding an answer to an already answered question in hopes that it helps some other knucklehead (or most likely me searching this again in the future).

提交回复
热议问题