Skip to content

Commit

Permalink
Merge pull request #27993 from koic/fix_test_ar_value_too_long_using_…
Browse files Browse the repository at this point in the history
…oracle

Fix a tests of AR::ValueTooLong when using OracleAdapter
  • Loading branch information
eileencodes committed Feb 15, 2017
2 parents b3110f4 + 0f50538 commit 6a61ca3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def test_validate_uniqueness_with_limit

e2 = Event.create(title: "abcdefgh")
assert_not e2.valid?, "Created an event whose title is not unique"
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter)
assert_raise(ActiveRecord::ValueTooLong) do
Event.create(title: "abcdefgh")
end
Expand All @@ -391,7 +391,7 @@ def test_validate_uniqueness_with_limit_and_utf8

e2 = Event.create(title: "一二三四五六七八")
assert_not e2.valid?, "Created an event whose title is not unique"
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :SQLServerAdapter)
elsif current_adapter?(:Mysql2Adapter, :PostgreSQLAdapter, :OracleAdapter, :SQLServerAdapter)
assert_raise(ActiveRecord::ValueTooLong) do
Event.create(title: "一二三四五六七八")
end
Expand Down

0 comments on commit 6a61ca3

Please sign in to comment.