[macruby-changes] [1673] MacRuby/branches/experimental/spec/frozen/core/kernel/puts_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Sat May 30 20:55:38 PDT 2009
Revision: 1673
http://trac.macosforge.org/projects/ruby/changeset/1673
Author: eloy.de.enige at gmail.com
Date: 2009-05-30 20:55:38 -0700 (Sat, 30 May 2009)
Log Message:
-----------
Oops, left a commented example in. Score of today: 617 files, 2826 examples, 9255 expectations, 0 failures, 0 errors
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/kernel/puts_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/core/kernel/puts_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/kernel/puts_spec.rb 2009-05-31 03:48:27 UTC (rev 1672)
+++ MacRuby/branches/experimental/spec/frozen/core/kernel/puts_spec.rb 2009-05-31 03:55:38 UTC (rev 1673)
@@ -51,14 +51,14 @@
Kernel.puts([1, 2, [3]]).should == nil
end
- # it "writes [...] for a recursive array arg" do
- # x = []
- # x << 2 << x
- # $stdout.should_receive(:write).with("2")
- # $stdout.should_receive(:write).with("[...]")
- # $stdout.should_receive(:write).with("\n").exactly(2).times
- # Kernel.puts(x).should == nil
- # end
+ it "writes [...] for a recursive array arg" do
+ x = []
+ x << 2 << x
+ $stdout.should_receive(:write).with("2")
+ $stdout.should_receive(:write).with("[...]")
+ $stdout.should_receive(:write).with("\n").exactly(2).times
+ Kernel.puts(x).should == nil
+ end
it "writes a newline after objects that do not end in newlines" do
$stdout.should_receive(:write).with("5")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090530/d3a9c81f/attachment.html>
More information about the macruby-changes
mailing list