aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-09-07 17:16:54 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-09-07 17:16:54 -0300
commit7b9b0b531f9cb6a64737efc5c46890b4609847bf (patch)
tree22a37eeb9b3418a86b62051b9ece467a45b02443 /activerecord/test/cases/validations_test.rb
parent51dd2588433457960cca592d5b5dac6e0537feac (diff)
downloadrails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.tar.gz
rails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.tar.bz2
rails-7b9b0b531f9cb6a64737efc5c46890b4609847bf.zip
Revert "Merge pull request #21069 from dmitry/feature/validate-multiple-contexts-at-once"
This reverts commit 51dd2588433457960cca592d5b5dac6e0537feac, reversing changes made to ecb4e4b21b3222b823fa24d4a0598b1f2f63ecfb. This broke Active Record tests
Diffstat (limited to 'activerecord/test/cases/validations_test.rb')
-rw-r--r--activerecord/test/cases/validations_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb
index a429d06aad..f4f316f393 100644
--- a/activerecord/test/cases/validations_test.rb
+++ b/activerecord/test/cases/validations_test.rb
@@ -52,13 +52,6 @@ class ValidationsTest < ActiveRecord::TestCase
assert r.valid?(:special_case)
end
- def test_invalid_using_multiple_contexts
- r = WrongReply.new(:title => 'Wrong Create')
- assert r.invalid?([:special_case, :create])
- assert_equal "Invalid", r.errors[:author_name].join
- assert_equal "is Wrong Create", r.errors[:title].join
- end
-
def test_validate
r = WrongReply.new