Skip to content

Commit ccb357b

Browse files
authored
Coerce test with trigger to autopopulate primary key on insert (#1186)
1 parent 20d1c84 commit ccb357b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,9 @@ def test_update_coerced
12671267
assert_not_predicate topic, :approved?
12681268
assert_equal "The First Topic", topic.title
12691269
end
1270+
1271+
# In SQL Server it's not possible to set the primary key column using a trigger and to get it then to return.
1272+
coerce_tests! :test_model_with_no_auto_populated_fields_still_returns_primary_key_after_insert
12701273
end
12711274

12721275
require "models/author"

0 commit comments

Comments
 (0)