diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-05-01 09:15:31 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-05-01 09:15:31 -0700 |
commit | f7f8b7ccfc2fe61c0834041d2e211dd9dfdfbbc8 (patch) | |
tree | 247124f4bbd7e1e8d84275b848e40303ac05262a /activesupport/test | |
parent | 630d2e4e38f06b3998c663aa3e3bbd554ec2a78b (diff) | |
parent | 62c62bc360bf1ce3db0a11be47a974fcc0777362 (diff) | |
download | rails-f7f8b7ccfc2fe61c0834041d2e211dd9dfdfbbc8.tar.gz rails-f7f8b7ccfc2fe61c0834041d2e211dd9dfdfbbc8.tar.bz2 rails-f7f8b7ccfc2fe61c0834041d2e211dd9dfdfbbc8.zip |
Merge pull request #10394 from BMorearty/remove-varargs-from-in
Remove varargs from `Object#in?`
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/object/inclusion_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/test/core_ext/object/inclusion_test.rb b/activesupport/test/core_ext/object/inclusion_test.rb index 22888333f5..478706eeae 100644 --- a/activesupport/test/core_ext/object/inclusion_test.rb +++ b/activesupport/test/core_ext/object/inclusion_test.rb @@ -2,16 +2,6 @@ require 'abstract_unit' require 'active_support/core_ext/object/inclusion' class InTest < ActiveSupport::TestCase - def test_in_multiple_args - assert :b.in?(:a,:b) - assert !:c.in?(:a,:b) - end - - def test_in_multiple_arrays - assert [1,2].in?([1,2],[2,3]) - assert ![1,2].in?([1,3],[2,1]) - end - def test_in_array assert 1.in?([1,2]) assert !3.in?([1,2]) |