diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 16:29:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 16:29:47 -0700 |
commit | bcc37d7fadd336fa90ae41afe6d02f9a2cfe571a (patch) | |
tree | fcaa85afccaba678a7c6f6be26e00812eb04931c | |
parent | ecb0a77c90142e8bb4eb64b1dd2c32de65d56004 (diff) | |
download | rails-bcc37d7fadd336fa90ae41afe6d02f9a2cfe571a.tar.gz rails-bcc37d7fadd336fa90ae41afe6d02f9a2cfe571a.tar.bz2 rails-bcc37d7fadd336fa90ae41afe6d02f9a2cfe571a.zip |
removing unused rake tasks
-rw-r--r-- | Gemfile | 9 | ||||
-rw-r--r-- | Rakefile | 24 |
2 files changed, 5 insertions, 28 deletions
diff --git a/Gemfile b/Gemfile deleted file mode 100644 index f63d624186..0000000000 --- a/Gemfile +++ /dev/null @@ -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" @@ -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| - t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] - t.libs << "#{File.dirname(__FILE__)}/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 + Spec::Rake::SpecTask.new do |t| + t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] + t.libs << "spec" + t.warning = true + t.spec_files = FileList['spec/**/*_spec.rb'] 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 |