Permalink
Browse files

Merge pull request #6308 from nashby/blockless-step

remove useless tests for Range#step
  • Loading branch information...
2 parents 1c481be + a1f6952 commit 2b6f566f9e7c191c73c0f188bd1a5b3e44485508 @josevalim josevalim committed May 13, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 activesupport/test/core_ext/range_ext_test.rb
@@ -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?)

0 comments on commit 2b6f566

Please sign in to comment.