Skip to content

Commit

Permalink
Changing test to allow ENV['ARUNIT_DB_NAME'] as the database name for…
Browse files Browse the repository at this point in the history
… the test units. Matches up with AR conventions.
  • Loading branch information
metaskills committed Feb 18, 2010
1 parent 55d7a18 commit c2ab307
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

MASTER

*

* Changing test to allow ENV['ARUNIT_DB_NAME'] as the database name for the test units.
Matches up with AR conventions. [Ransom Briggs]


2.3.3

* Revert #ad83df82 and again cache column information at the connection's instance. The
Expand Down
2 changes: 1 addition & 1 deletion test/cases/execute_procedure_test_sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setup
tables = @klass.execute_procedure :sp_tables, 'sql_server_chronics'
table_info = tables.first
assert_equal 1, tables.size
assert_equal 'activerecord_unittest', table_info[:TABLE_QUALIFIER], "Table Info: #{table_info.inspect}"
assert_equal (ENV['ARUNIT_DB_NAME'] || 'activerecord_unittest'), table_info[:TABLE_QUALIFIER], "Table Info: #{table_info.inspect}"
assert_equal 'TABLE', table_info[:TABLE_TYPE], "Table Info: #{table_info.inspect}"
end

Expand Down

0 comments on commit c2ab307

Please sign in to comment.