test/enumerator_test.rb in backports-1.7.1 vs test/enumerator_test.rb in backports-1.8.0

- old
+ new

@@ -14,15 +14,15 @@ end context "#new" do should "should accept block" do enum = Enumerator.new do |yielder| - yielder.yield "This cool new syntax is sponsored by" - yielder.yield yielder.class + yielder.yield "This syntax is" + yielder.yield "cool!" end assert enum.is_a?(Enumerator) 2.times do - assert_equal ["This cool new syntax is sponsored by", Enumerator::Yielder], enum.to_a + assert_equal ["This syntax is", "cool!"], enum.to_a end end end context "#next" do \ No newline at end of file