[macruby-changes] [4696] DietRB/trunk/spec
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 04:01:03 PDT 2010
Revision: 4696
http://trac.macosforge.org/projects/ruby/changeset/4696
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 04:01:02 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Make specs green when run together.
From: Eloy Duran <eloy.de.enige at gmail.com>
Modified Paths:
--------------
DietRB/trunk/spec/context_spec.rb
DietRB/trunk/spec/formatter_spec.rb
Modified: DietRB/trunk/spec/context_spec.rb
===================================================================
--- DietRB/trunk/spec/context_spec.rb 2010-10-08 11:00:53 UTC (rev 4695)
+++ DietRB/trunk/spec/context_spec.rb 2010-10-08 11:01:02 UTC (rev 4696)
@@ -81,6 +81,7 @@
@context = IRB::Context.new(main)
def @context.printed; @printed ||= '' end
def @context.puts(string); printed << "#{string}\n" end
+ IRB.formatter = IRB::Formatter.new
end
it "evaluates code with the object's binding" do
Modified: DietRB/trunk/spec/formatter_spec.rb
===================================================================
--- DietRB/trunk/spec/formatter_spec.rb 2010-10-08 11:00:53 UTC (rev 4695)
+++ DietRB/trunk/spec/formatter_spec.rb 2010-10-08 11:01:02 UTC (rev 4696)
@@ -57,7 +57,7 @@
it "prints the result with object#pretty_inspect, if it responds to it" do
object = Object.new
def object.pretty_inspect; "foo"; end
- @formatter.result(object).should == "foo"
+ @formatter.result(object).should == "=> foo"
end
it "prints that a syntax error occurred on the last line and reset the buffer to the previous line" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/d7e701b1/attachment.html>
More information about the macruby-changes
mailing list