require 'rake' require 'rspec/core/rake_task' desc 'Default: Run all specs for a specific rails version.' task :default => :spec desc "Run all specs for a specific rails version" RSpec::Core::RakeTask.new(:spec) do |t| t.verbose = false t.pattern = defined?(SPEC) ? SPEC : ['**/*_spec.rb', '../shared/**/*_spec.rb'] end