mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Can just test this inline
This commit is contained in:
parent
89a213b59d
commit
17854e69b3
1 changed files with 1 additions and 4 deletions
|
@ -11,6 +11,7 @@ class ExcludingTest < ActiveRecord::TestCase
|
|||
|
||||
def test_result_set_does_not_include_single_excluded_record
|
||||
assert_not_includes Post.excluding(@post).to_a, @post
|
||||
assert_not_includes Post.without(@post).to_a, @post
|
||||
end
|
||||
|
||||
def test_result_set_does_not_include_collection_of_excluded_records
|
||||
|
@ -47,10 +48,6 @@ class ExcludingTest < ActiveRecord::TestCase
|
|||
assert_equal "You must only pass a single or collection of Post objects to #excluding.", error.message
|
||||
end
|
||||
|
||||
def test_result_set_does_not_include_without_record
|
||||
assert_not_includes Post.without(@post).to_a, @post
|
||||
end
|
||||
|
||||
private
|
||||
def assert_no_excludes(relation)
|
||||
assert_includes relation, @post
|
||||
|
|
Loading…
Reference in a new issue