Commit 9af159f9d08356dc3e1d4c3881bd514f52536d68
1 parent
a0322c85
Exists in
master
and in
1 other branch
updating blitz
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
vendor/plugins/blitz/generators/feature/feature_generator.rb
... | ... | @@ -13,8 +13,10 @@ class FeatureGenerator < Rails::Generator::NamedBase |
13 | 13 | path = File.join('features', 'step_definitions', "#{resources}_steps.rb") |
14 | 14 | m.template 'step_definition.rb', path |
15 | 15 | |
16 | - path = File.join('features', 'support', "paths.rb") | |
17 | - m.insert_cucumber_path path, insertable_path | |
16 | + if actions.any? | |
17 | + path = File.join('features', 'support', "paths.rb") | |
18 | + m.insert_cucumber_path path, insertable_path | |
19 | + end | |
18 | 20 | end |
19 | 21 | end |
20 | 22 | ... | ... |