Rakefile in pagarme-1.10.0 vs Rakefile in pagarme-2.0.0

- old
+ new

@@ -1,24 +1,24 @@ require "bundler/gem_tasks" task :default => [:all] task :test, :test_file do |t, args| - ret = true - test_file = args[:test_file] + ret = true + 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 + 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 - require 'active_support/all' - Rake::Task["test"].reenable - Rake::Task["test"].invoke + Rake::Task["test"].invoke + require 'active_support/all' + Rake::Task["test"].reenable + Rake::Task["test"].invoke end