Rakefile in pagarme-1.9.5 vs Rakefile in pagarme-1.9.6
- old
+ new
@@ -1,12 +1,19 @@
require "bundler/gem_tasks"
task :default => [:all]
-task :test do
+task :test, :test_file do |t, args|
ret = true
- Dir["test/**/*.rb"].each do |f|
+ test_file = args[:test_file]
+
+ if args[:test_file]
+ f = "test/pagarme/#{args[:test_file]}.rb"
+ ret = ret && ruby(f, '')
+ else
+ Dir["test/**/*.rb"].each do |f|
ret = ret && ruby(f, '')
+ end
end
end
task :all do
Rake::Task["test"].invoke