[英]Installing Cucumber in a new Rails application
cucumber-rails
gem to a Gemfile
, 将cucumber-rails
gem添加到Gemfile
, bundle install
and 运行bundle install
和 rails generate cucumber:install
. rails generate cucumber:install
。 I would like to have web_steps.rb
, paths.rb
generated. 我想生成web_steps.rb
, paths.rb
。 But those files are not generated. 但是这些文件没有生成。 Here is the bash output: 这是bash输出:
create config/cucumber.yml
create script/cucumber
chmod script/cucumber
create features/step_definitions
create features/support
create features/support/env.rb
exist lib/tasks
create lib/tasks/cucumber.rake
gsub config/database.yml
gsub config/database.yml
force config/database.yml
What do I need to change to generate all the Cucumber files needed? 我需要更改什么才能生成所需的所有Cucumber文件?
those files are no more generated with newer versions of cucumber: 使用较新版本的黄瓜不再生成这些文件:
https://github.com/cucumber/cucumber-rails/issues/174 https://github.com/cucumber/cucumber-rails/issues/174
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.