Skip to content
Browse files

Use `cucumber?` on install generator to be consistent with `rspec?`

  • Loading branch information...
1 parent 4feabbf commit 0082aab56a653fa4148b3f7daa017de1fa36a592 @sobrinho sobrinho committed Jun 2, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/generators/machinist/install/install_generator.rb
View
5 lib/generators/machinist/install/install_generator.rb
@@ -32,7 +32,7 @@ def test_helper
end
def cucumber_support
- if options[:cucumber]
+ if cucumber?
template "machinist.rb.erb", "features/support/machinist.rb"
end
end
@@ -43,6 +43,9 @@ def rspec?
options[:test_framework].to_sym == :rspec
end
+ def cucumber?
+ options[:cucumber]
+ end
end
end
end

0 comments on commit 0082aab

Please sign in to comment.
Something went wrong with that request. Please try again.