Skip to content

Commit

Permalink
remove useless tests for Range#step
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed May 13, 2012
1 parent 1c481be commit a1f6952
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions activesupport/test/core_ext/range_ext_test.rb
Expand Up @@ -69,16 +69,6 @@ def test_should_include_identical_exclusive_with_floats
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?)
Expand Down

0 comments on commit a1f6952

Please sign in to comment.