Permalink
Browse files

Ensure correct options are selected in recipes Orm & Testing Framework

  • Loading branch information...
1 parent 2f5aeca commit 7f2b53febf0d29fe00a0f7a467672707884e380c @kfaustino committed Mar 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/template_framework/recipes/orm.rb
  2. +1 −1 lib/template_framework/recipes/testing_framework.rb
@@ -9,7 +9,7 @@
print_table orm_options.to_a, :ident => 4
orm_selection = ask("\nOption: ", Thor::Shell::Color::BLUE)
-if orm_selection.present?
+if orm_options.keys[1..-1].include?(orm_selection)
templater.orm.type = orm_options[orm_selection].underscore.to_sym
end
@@ -9,7 +9,7 @@
print_table testing_framework_options.to_a, :ident => 4
testing_framework_selection = ask("\nOption: ", Thor::Shell::Color::BLUE)
-if testing_framework_selection.present?
+if testing_framework_options.keys[1..-1].include?(testing_framework_selection)
templater.testing_framework.type = testing_framework_options[testing_framework_selection].underscore.to_sym
end

0 comments on commit 7f2b53f

Please sign in to comment.