1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix rubocop violations

This commit is contained in:
Ryuta Kamizono 2019-06-14 23:32:15 +09:00
parent 2c3332cc4c
commit c0af72bf86
2 changed files with 2 additions and 3 deletions

View file

@ -41,6 +41,5 @@ class TestComponent < ActionView::Base
end end
private private
attr_reader :content, :title, :view_context attr_reader :content, :title, :view_context
end end

View file

@ -283,7 +283,6 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase
end end
end end
uses_transaction \
def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
@verbose_was = ActiveRecord::Migration.verbose @verbose_was = ActiveRecord::Migration.verbose
ActiveRecord::Migration.verbose = false ActiveRecord::Migration.verbose = false
@ -303,6 +302,7 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase
ActiveRecord::Migration.verbose = @verbose_was ActiveRecord::Migration.verbose = @verbose_was
ActiveRecord::SchemaMigration.delete_all ActiveRecord::SchemaMigration.delete_all
end end
uses_transaction :test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
end end
class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
@ -333,7 +333,6 @@ class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
assert_match(/\bcreate_table "pg_uuids", id: :uuid, default: nil/, schema) assert_match(/\bcreate_table "pg_uuids", id: :uuid, default: nil/, schema)
end end
uses_transaction \
def test_schema_dumper_for_uuid_primary_key_with_default_nil_in_legacy_migration def test_schema_dumper_for_uuid_primary_key_with_default_nil_in_legacy_migration
@verbose_was = ActiveRecord::Migration.verbose @verbose_was = ActiveRecord::Migration.verbose
ActiveRecord::Migration.verbose = false ActiveRecord::Migration.verbose = false
@ -353,6 +352,7 @@ class PostgresqlUUIDTestNilDefault < ActiveRecord::PostgreSQLTestCase
ActiveRecord::Migration.verbose = @verbose_was ActiveRecord::Migration.verbose = @verbose_was
ActiveRecord::SchemaMigration.delete_all ActiveRecord::SchemaMigration.delete_all
end end
uses_transaction :test_schema_dumper_for_uuid_primary_key_with_default_nil_in_legacy_migration
end end
class PostgresqlUUIDTestInverseOf < ActiveRecord::PostgreSQLTestCase class PostgresqlUUIDTestInverseOf < ActiveRecord::PostgreSQLTestCase