We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf8a64 commit 7eaa4f0Copy full SHA for 7eaa4f0
test/db/postgresql/schema_test.rb
@@ -48,8 +48,10 @@ def test_ctype
48
end if ar_version('4.0') # ctype added in AR 4.0
49
50
def test_current_database
51
- db = current_connection_config[:database]
52
- assert_equal db, connection.current_database
+ assert_not_nil connection.current_database
+ if db = current_connection_config[:database]
53
+ assert_equal db, connection.current_database
54
+ end
55
end
56
57
def test_current_schema
0 commit comments