1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

removing unused rake tasks

This commit is contained in:
Aaron Patterson 2010-09-24 16:29:47 -07:00
parent ecb0a77c90
commit bcc37d7fad
2 changed files with 5 additions and 28 deletions

View file

@ -1,9 +0,0 @@
source :rubygems
gem "activerecord", :path => ENV["RAILS_SOURCE"] || 'vendor/rails'
gem "diff-lcs"
gem "mysql"
gem "pg"
gem "rake"
gem "rspec"
gem "sqlite3-ruby"

View file

@ -6,27 +6,13 @@ rescue LoadError
desc "Run specs"
task(:spec) { $stderr.puts '`gem install rspec` to run specs' }
else
namespace :spec do
%w[mysql sqlite3 postgresql oracle].each do |adapter|
task "set_env_for_#{adapter}" do
ENV['ADAPTER'] = adapter
end
Spec::Rake::SpecTask.new(adapter) do |t|
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
t.libs << "#{File.dirname(__FILE__)}/spec"
t.libs << "spec"
t.warning = true
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc "Run specs with the #{adapter} database adapter"
task adapter => "set_env_for_#{adapter}"
end
end
desc "Run specs with mysql and sqlite3 database adapters (default)"
task :spec => ["spec:sqlite3", "spec:mysql", "spec:postgresql"]
desc "Default task is to run specs"
task :default => :spec
end