Commit 9af159f9d08356dc3e1d4c3881bd514f52536d68

Authored by Dan Croak
1 parent a0322c85

updating blitz

vendor/plugins/blitz/generators/feature/feature_generator.rb
@@ -13,8 +13,10 @@ class FeatureGenerator < Rails::Generator::NamedBase @@ -13,8 +13,10 @@ class FeatureGenerator < Rails::Generator::NamedBase
13 path = File.join('features', 'step_definitions', "#{resources}_steps.rb") 13 path = File.join('features', 'step_definitions', "#{resources}_steps.rb")
14 m.template 'step_definition.rb', path 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 end 20 end
19 end 21 end
20 22