Skip to content

Commit c2ade4e

Browse files
committed
Test no longer needs to be coerced
1 parent 603eb15 commit c2ade4e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/cases/coerced_tests.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,15 +1180,6 @@ def test_has_one_through_executes_limited_query_coerced
11801180

11811181
require "models/company"
11821182
class InheritanceTest < ActiveRecord::TestCase
1183-
# Rails test required inserting to a identity column.
1184-
coerce_tests! :test_a_bad_type_column
1185-
def test_a_bad_type_column_coerced
1186-
Company.connection.with_identity_insert_enabled("companies") do
1187-
Company.connection.insert "INSERT INTO companies (id, #{QUOTED_TYPE}, name) VALUES(100, 'bad_class!', 'Not happening')"
1188-
end
1189-
assert_raise(ActiveRecord::SubclassNotFound) { Company.find(100) }
1190-
end
1191-
11921183
# Use Square brackets around column name
11931184
coerce_tests! :test_eager_load_belongs_to_primary_key_quoting
11941185
def test_eager_load_belongs_to_primary_key_quoting_coerced

0 commit comments

Comments
 (0)