Skip to content

Commit

Permalink
Fix test_schema_names to include "hint_plan" schema
Browse files Browse the repository at this point in the history
  • Loading branch information
kamipo committed Jun 14, 2019
1 parent 3ac50c0 commit ce7ccd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion activerecord/test/cases/adapters/postgresql/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def setup
end

def test_schema_names
assert_equal ["public", "test_schema", "test_schema2"], @connection.schema_names
schema_names = @connection.schema_names
assert_includes schema_names, "public"
assert_includes schema_names, "test_schema"
assert_includes schema_names, "test_schema2"
assert_includes schema_names, "hint_plan" if @connection.supports_optimizer_hints?
end

def test_create_schema
Expand Down

0 comments on commit ce7ccd8

Please sign in to comment.