diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2012-05-13 20:10:31 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2012-05-13 20:10:31 +0300 |
commit | a1f695287bc643d6c609026fcabe03e9dace5e60 (patch) | |
tree | 33e5c0b1cff0bc9f3e2d1911455abe5b44d744e5 /activesupport | |
parent | 1c481be331f32a7768b1017b86bd1b1beea02efc (diff) | |
download | rails-a1f695287bc643d6c609026fcabe03e9dace5e60.tar.gz rails-a1f695287bc643d6c609026fcabe03e9dace5e60.tar.bz2 rails-a1f695287bc643d6c609026fcabe03e9dace5e60.zip |
remove useless tests for Range#step
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/range_ext_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/test/core_ext/range_ext_test.rb b/activesupport/test/core_ext/range_ext_test.rb index 78a3bd8c85..f0cdc0bfd4 100644 --- a/activesupport/test/core_ext/range_ext_test.rb +++ b/activesupport/test/core_ext/range_ext_test.rb @@ -69,16 +69,6 @@ class RangeTest < ActiveSupport::TestCase assert((1.0...10.0).include?(1.0...10.0)) end - def test_blockless_step - assert_equal [1,3,5,7,9], (1..10).step(2).to_a - end - - def test_original_step - array = [] - (1..10).step(2) {|i| array << i } - assert_equal [1,3,5,7,9], array - end - def test_cover_is_not_override range = (1..3) assert range.method(:include?) != range.method(:cover?) |