Skip to content

Commit c2ab307

Browse files
committed
Changing test to allow ENV['ARUNIT_DB_NAME'] as the database name for the test units. Matches up with AR conventions.
1 parent 55d7a18 commit c2ab307

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11

22
MASTER
33

4+
*
5+
6+
* Changing test to allow ENV['ARUNIT_DB_NAME'] as the database name for the test units.
7+
Matches up with AR conventions. [Ransom Briggs]
8+
9+
410
2.3.3
511

612
* Revert #ad83df82 and again cache column information at the connection's instance. The

test/cases/execute_procedure_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setup
1616
tables = @klass.execute_procedure :sp_tables, 'sql_server_chronics'
1717
table_info = tables.first
1818
assert_equal 1, tables.size
19-
assert_equal 'activerecord_unittest', table_info[:TABLE_QUALIFIER], "Table Info: #{table_info.inspect}"
19+
assert_equal (ENV['ARUNIT_DB_NAME'] || 'activerecord_unittest'), table_info[:TABLE_QUALIFIER], "Table Info: #{table_info.inspect}"
2020
assert_equal 'TABLE', table_info[:TABLE_TYPE], "Table Info: #{table_info.inspect}"
2121
end
2222

0 commit comments

Comments
 (0)