aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-08-07 17:50:59 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-08-07 17:50:59 +0900
commit762e3f05f3d372cb32570db0deeef27232c4dd00 (patch)
tree2c3225f7698ef3f7b2556510136c64a58ecf7355 /activemodel/test
parent0d12708f3967fe93c172b30bd3e98e4433761c36 (diff)
downloadrails-762e3f05f3d372cb32570db0deeef27232c4dd00.tar.gz
rails-762e3f05f3d372cb32570db0deeef27232c4dd00.tar.bz2
rails-762e3f05f3d372cb32570db0deeef27232c4dd00.zip
Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines
Diffstat (limited to 'activemodel/test')
-rw-r--r--activemodel/test/cases/validations/callbacks_test.rb1
-rw-r--r--activemodel/test/cases/validations/length_validation_test.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/activemodel/test/cases/validations/callbacks_test.rb b/activemodel/test/cases/validations/callbacks_test.rb
index 99913be752..3a25ffa46f 100644
--- a/activemodel/test/cases/validations/callbacks_test.rb
+++ b/activemodel/test/cases/validations/callbacks_test.rb
@@ -71,7 +71,6 @@ class DogValidatorWithIfCondition < Dog
def set_after_validation_marker2; self.history << "after_validation_marker2" ; end
end
-
class CallbacksWithMethodNamesShouldBeCalled < ActiveModel::TestCase
def test_if_condition_is_respected_for_before_validation
d = DogValidatorWithIfCondition.new
diff --git a/activemodel/test/cases/validations/length_validation_test.rb b/activemodel/test/cases/validations/length_validation_test.rb
index dbbfb8351b..63326aca69 100644
--- a/activemodel/test/cases/validations/length_validation_test.rb
+++ b/activemodel/test/cases/validations/length_validation_test.rb
@@ -336,7 +336,6 @@ class LengthValidationTest < ActiveModel::TestCase
assert_equal ["Your essay must be at least 5 words."], t.errors[:content]
end
-
def test_validates_length_of_with_symbol
assert_deprecated do
Topic.validates_length_of(