aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2017-06-03 19:57:19 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2017-06-03 19:57:19 +0530
commit50a3d5ac8d1d5c6a7cdf7456d7894e883d962794 (patch)
tree4f3cb3bca113ba1239bb952156990dd618eda6ad
parent387b775160988941a7d891a09ebe3ceaca1aed5e (diff)
downloadrails-50a3d5ac8d1d5c6a7cdf7456d7894e883d962794.tar.gz
rails-50a3d5ac8d1d5c6a7cdf7456d7894e883d962794.tar.bz2
rails-50a3d5ac8d1d5c6a7cdf7456d7894e883d962794.zip
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