diff options
author | Xavier Noria <fxn@hashref.com> | 2017-02-12 03:50:51 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 03:50:51 -0800 |
commit | e4654aa93c3cf21949b72873072833b766ef7770 (patch) | |
tree | 033b466c6ea037e0dcd5513443fde63b79c278d7 /activerecord/test | |
parent | b61a029782fb843eb30bec8f36784717fddc4ba8 (diff) | |
parent | 16ee3ccc9c7992269e69e9e809257d56c81ce174 (diff) | |
download | rails-e4654aa93c3cf21949b72873072833b766ef7770.tar.gz rails-e4654aa93c3cf21949b72873072833b766ef7770.tar.bz2 rails-e4654aa93c3cf21949b72873072833b766ef7770.zip |
Merge pull request #27974 from kamipo/add_new_rubocop_rule
Add `Style/EmptyLinesAroundMethodBody` in `.rubocop.yml` and remove extra empty lines
Diffstat (limited to 'activerecord/test')
3 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index 4655cd1d20..6aa6a79705 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -347,7 +347,6 @@ class PostgresqlUUIDTestInverseOf < ActiveRecord::PostgreSQLTestCase assert_raise ActiveRecord::RecordNotFound do UuidPost.find(123456) end - end def test_find_by_with_uuid diff --git a/activerecord/test/cases/adapters/sqlite3/statement_pool_test.rb b/activerecord/test/cases/adapters/sqlite3/statement_pool_test.rb index aebcce3691..37ff973397 100644 --- a/activerecord/test/cases/adapters/sqlite3/statement_pool_test.rb +++ b/activerecord/test/cases/adapters/sqlite3/statement_pool_test.rb @@ -3,7 +3,6 @@ require "cases/helper" class SQLite3StatementPoolTest < ActiveRecord::SQLite3TestCase if Process.respond_to?(:fork) def test_cache_is_per_pid - cache = ActiveRecord::ConnectionAdapters::SQLite3Adapter::StatementPool.new(10) cache["foo"] = "bar" assert_equal "bar", cache["foo"] diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 25feae910b..ea52fb5a67 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -883,7 +883,6 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase book.subscriber_ids = [] assert_equal [], book.subscribers.reload end - end def test_collection_singular_ids_setter_with_changed_primary_key |