aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-14 23:32:15 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-06-14 23:32:15 +0900
commitc0af72bf86701e03ac97a50754beddf2b5d7943f (patch)
treeb11d5bfa5ba7001e951cff942e08f83bedee908e /activerecord
parent2c3332cc4c0fa77dbe2e13e8a792f80fbd8f4ad3 (diff)
downloadrails-c0af72bf86701e03ac97a50754beddf2b5d7943f.tar.gz
rails-c0af72bf86701e03ac97a50754beddf2b5d7943f.tar.bz2
rails-c0af72bf86701e03ac97a50754beddf2b5d7943f.zip
Fix rubocop violations
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/postgresql/uuid_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
index 4b8aeb33f6..2be67aae20 100644
--- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb
@@ -283,7 +283,6 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase
end
end
- uses_transaction \
def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
@verbose_was = ActiveRecord::Migration.verbose
ActiveRecord::Migration.verbose = false
@@ -303,6 +302,7 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase
ActiveRecord::Migration.verbose = @verbose_was
ActiveRecord::SchemaMigration.delete_all
end
+ uses_transaction :test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
end
class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
@@ -333,7 +333,6 @@ class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
assert_match(/\bcreate_table "pg_uuids", id: :uuid, default: nil/, schema)
end
- uses_transaction \
def test_schema_dumper_for_uuid_primary_key_with_default_nil_in_legacy_migration
@verbose_was = ActiveRecord::Migration.verbose
ActiveRecord::Migration.verbose = false
@@ -353,6 +352,7 @@ class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
ActiveRecord::Migration.verbose = @verbose_was
ActiveRecord::SchemaMigration.delete_all
end
+ uses_transaction :test_schema_dumper_for_uuid_primary_key_with_default_nil_in_legacy_migration
end
class PostgresqlUUIDTestInverseOf < ActiveRecord::PostgreSQLTestCase