Permalink
Browse files

Adapt rake test task based on Rails version

  • Loading branch information...
1 parent 145be86 commit 932b897120aa6cde3cd50fd8441a70a17c77357c @rubys committed Dec 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/gorp/commands.rb
View
@@ -129,6 +129,12 @@ def ruby args
end
def rake args
+ if args == 'test:controllers' and File.exist? 'test/functional'
+ args = 'test:functionals'
+ elsif args == 'test:models' and File.exist? 'test/unit'
+ args = 'test:units'
+ end
+
cmd "rake #{args}"
end

0 comments on commit 932b897

Please sign in to comment.