diff options
author | Matthew Draper <matthew@trebex.net> | 2017-05-27 03:43:43 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 03:43:43 +0930 |
commit | 0e453e9150f0ac9fa2bdff4511c3c806a3e45f49 (patch) | |
tree | 7cc0122619d1cd1c4e7600afc4938109b3707910 /activerecord | |
parent | 24a864437e845febe91e3646ca008e8dc7f76b56 (diff) | |
parent | 7a80ab54393b500ae08cc1cf93c93ece89097112 (diff) | |
download | rails-0e453e9150f0ac9fa2bdff4511c3c806a3e45f49.tar.gz rails-0e453e9150f0ac9fa2bdff4511c3c806a3e45f49.tar.bz2 rails-0e453e9150f0ac9fa2bdff4511c3c806a3e45f49.zip |
Merge pull request #29239 from koic/remove_redundant_test_assertion
Remove a redundant test assertion
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index a7b6333010..4837a169fa 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -743,7 +743,6 @@ class FinderTest < ActiveRecord::TestCase assert Topic.where(author_name: "David", title: "The First Topic", replies_count: 1, approved: false).find(1) assert_raise(ActiveRecord::RecordNotFound) { Topic.where(author_name: "David", title: "The First Topic", replies_count: 1, approved: true).find(1) } assert_raise(ActiveRecord::RecordNotFound) { Topic.where(author_name: "David", title: "HHC", replies_count: 1, approved: false).find(1) } - assert_raise(ActiveRecord::RecordNotFound) { Topic.where(author_name: "David", title: "The First Topic", replies_count: 1, approved: true).find(1) } end def test_condition_interpolation |