Skip to content

Commit 6a18ffd

Browse files
committed
[Rails5] Put coerced test in right place.
1 parent 18f2381 commit 6a18ffd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/cases/coerced_tests.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ def test_remove_column_with_multi_column_index_coerced
205205
remove_column("test_models", "hat_size")
206206
assert_equal [], connection.indexes('test_models').map(&:name)
207207
end
208-
end
209208

210-
# Choose `StatementInvalid` vs `ActiveRecordError`.
211-
coerce_tests! :test_rename_nonexistent_column
212-
def test_rename_nonexistent_column_coerced
213-
exception = ActiveRecord::StatementInvalid
214-
assert_raise(exception) do
215-
rename_column "test_models", "nonexistent", "should_fail"
209+
# Choose `StatementInvalid` vs `ActiveRecordError`.
210+
coerce_tests! :test_rename_nonexistent_column
211+
def test_rename_nonexistent_column_coerced
212+
exception = ActiveRecord::StatementInvalid
213+
assert_raise(exception) do
214+
rename_column "test_models", "nonexistent", "should_fail"
215+
end
216216
end
217217
end
218218
end

0 commit comments

Comments
 (0)