aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-06-04 18:07:58 -0400
committerGitHub <noreply@github.com>2017-06-04 18:07:58 -0400
commit7a443756fe78e44ee32226085147fc9bf6df6add (patch)
tree403710d8f6c1cb7924f04b847b02a07aed40c4b7
parente95d2a0f2f51298aebc5201551860fe8e7f8ece6 (diff)
parent50a3d5ac8d1d5c6a7cdf7456d7894e883d962794 (diff)
downloadrails-7a443756fe78e44ee32226085147fc9bf6df6add.tar.gz
rails-7a443756fe78e44ee32226085147fc9bf6df6add.tar.bz2
rails-7a443756fe78e44ee32226085147fc9bf6df6add.zip
Merge pull request #29347 from prathamesh-sonpatki/rm-assert-nothin-raised
Remove assert_nothing_raised, as test is already testing the required concerns
-rw-r--r--activerecord/test/cases/adapters/postgresql/uuid_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
index 6ebe9d82a7..d124b64861 100644
--- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
@@ -64,11 +64,11 @@ class PostgresqlUUIDTest < ActiveRecord::PostgreSQLTestCase
end
def test_add_column_with_null_true_and_default_nil
- assert_nothing_raised do
- connection.add_column :uuid_data_type, :thingy, :uuid, null: true, default: nil
- end
+ connection.add_column :uuid_data_type, :thingy, :uuid, null: true, default: nil
+
UUIDType.reset_column_information
column = UUIDType.columns_hash["thingy"]
+
assert column.null
assert_nil column.default
end