Permalink
Browse files

Fixes to support the new thor

  • Loading branch information...
1 parent eff6e0f commit 558d92d532eed96047e56a631c5d8ee2c70412a9 @wycats wycats committed Dec 16, 2008
Showing with 4 additions and 3 deletions.
  1. +1 −2 step-by-step-app-testing/steps/bundling_merb.rb
  2. +3 −1 step-by-step-app-testing/test-app.thor
@@ -2,8 +2,7 @@ module Step
def bundling_merb
puts "bundling merb and mongrel.. this is going to take a while :("
- puts `thor merb:gem:install merb`
- puts `thor merb:gem:install mongrel`
+ puts `thor merb:gem:install`
end
end
@@ -103,7 +103,9 @@ module Step
#
def load_steps(path="shared-steps")
steps = Dir["#{Dir.pwd}/#{path}/**.rb"]
- steps.each { |file| require file }
+ steps.each do |file|
+ ::Thor::Tasks.class_eval(File.read(file))
+ end
end
end

0 comments on commit 558d92d

Please sign in to comment.