Commit b80704489df872b3629d1fb00da9da3f8f74c29b
1 parent
f6dc326c
Exists in
master
and in
29 other branches
removing test helpers that already in Rails core
Showing
1 changed file
with
0 additions
and
8 deletions
Show diff stats
test/test_helper.rb
| ... | ... | @@ -82,14 +82,6 @@ class ActiveSupport::TestCase |
| 82 | 82 | assert( ((enum1 - enum2) == []) && ((enum2 - enum1) == []), "<#{enum1.inspect}> expected to be equivalent to <#{enum2.inspect}>") |
| 83 | 83 | end |
| 84 | 84 | |
| 85 | - def assert_includes(array, element) | |
| 86 | - assert(array.include?(element), "<#{array.inspect}> expected to include <#{element.inspect}>") | |
| 87 | - end | |
| 88 | - | |
| 89 | - def assert_not_includes(array, element) | |
| 90 | - assert(!array.include?(element), "<#{array.inspect}> expected to NOT include <#{element.inspect}>") | |
| 91 | - end | |
| 92 | - | |
| 93 | 85 | def assert_mandatory(object, attribute, test_value = 'some random string') |
| 94 | 86 | object.send("#{attribute}=", nil) |
| 95 | 87 | object.valid? | ... | ... |