Skip to content

Commit

Permalink
set the environment variable from the rake file
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 6, 2011
1 parent 424cf3b commit 8392f10
Show file tree
Hide file tree
Showing 18 changed files with 6 additions and 18 deletions.
7 changes: 6 additions & 1 deletion activerecord/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ end

t.verbose = true
t.warning = true
t.ruby_opts = ["-r#{File.expand_path('../', __FILE__)}/test/connections/#{adapter}"]
}

task "isolated_test_#{adapter}" do
Expand All @@ -67,7 +66,13 @@ end
namespace adapter do
task :test => "test_#{adapter}"
task :isolated_test => "isolated_test_#{adapter}"

# Set the connection environment for the adapter
task :env { ENV['ARCONN'] = adapter }
end

# Make sure the adapter test evaluates the env setting task
task "test_#{adapter}" => "#{adapter}:env"
end

rule '.sqlite3' do |t|
Expand Down
1 change: 0 additions & 1 deletion activerecord/test/connections/db2.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/firebird.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/frontbase.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbcderby.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbch2.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbchsqldb.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbcmysql.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbcpostgresql.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/jdbcsqlite3.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/mysql.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/mysql2.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/openbase.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/oracle.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/postgresql.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/sqlite3.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/sqlite3_mem.rb

This file was deleted.

1 change: 0 additions & 1 deletion activerecord/test/connections/sybase.rb

This file was deleted.

0 comments on commit 8392f10

Please sign in to comment.