summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 6fc7fec48d..b2a42d5865 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1842,8 +1842,8 @@ class TestArray < Test::Unit::TestCase
end
def test_combination2
- assert_raise(RangeError) do
- (0..100).to_a.combination(50) {}
+ assert_nothing_raised do
+ (0..100).to_a.combination(50) { break }
end
end