Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make sure the block to be called

  • Loading branch information...
commit bd0186583e5ca22343897efb99c9ebddd6868f71 1 parent fc0f589
@no6v no6v authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/enumerable/slice_before_spec.rb
View
4 core/enumerable/slice_before_spec.rb
@@ -43,6 +43,7 @@
describe "and an argument" do
it "calls the block with a copy of that argument" do
arg = [:foo]
+ first = nil
e = @enum.slice_before(arg) do |i, init|
init.should == arg
init.should_not equal(arg)
@@ -52,8 +53,9 @@
e.should be_an_instance_of(enumerator_class)
e.to_a.should == [[7], [6, 5, 4, 3], [2, 1]]
e = @enum.slice_before(arg) do |i, init|
- init.shoud_not equal(first)
+ init.should_not equal(first)
end
+ e.to_a
end
quarantine! do # need to double-check with ruby-core. Might be wrong or too specific
Please sign in to comment.
Something went wrong with that request. Please try again.