diff --git a/Rakefile b/Rakefile index 5cf9dc0..1021afa 100644 --- a/Rakefile +++ b/Rakefile @@ -5,15 +5,12 @@ Bundler::GemHelper.install_tasks require 'rspec/core' require 'rspec/core/rake_task' -require 'coveralls/rake/task' - -Coveralls::RakeTask.new RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = FileList['spec/**/*_spec.rb'] end -task :default => ["spec:all", "coveralls:push"] +task :default => "spec:all" namespace :spec do %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile| diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b92c8c5..4289ccb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,8 @@ +require 'coveralls' + +# Enable Coveralls +Coveralls.wear! + $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) @@ -11,10 +16,6 @@ Bundler.require require 'capybara/rspec' require 'database_cleaner' -require 'coveralls' - -# Enable Coveralls -Coveralls.wear_merged! # Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded. require 'fake_gem' if defined? ActiveRecord