How to get Cucumber/Capybara/Mechanize to work against external non-rails site

前端 未结 2 1400
一向
一向 2020-12-30 11:12

I\'m trying to do BDD on a Google App Script. I understand that in principle I should be able to use some combination of Cucumber, Capybara and Mechanize to do BDD on a non

2条回答
  •  甜味超标
    2020-12-30 12:00

    From Jeroen van Dijk on this Google group message, just set your Capybara.app to something that evaluates to true. i.e.

    Capybara.app = "make sure this isn't nil"
    

    As long as Capybara.run_server is set to false, it will not ever try to boot the app. It is working thus far for me.

提交回复
热议问题