[macruby-changes] [4753] DietRB/trunk/spec/formatter_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 8 04:09:53 PDT 2010


Revision: 4753
          http://trac.macosforge.org/projects/ruby/changeset/4753
Author:   eloy.de.enige at gmail.com
Date:     2010-10-08 04:09:52 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Make a spec on MacRuby green

From: Eloy Duran <eloy.de.enige at gmail.com>

Modified Paths:
--------------
    DietRB/trunk/spec/formatter_spec.rb

Modified: DietRB/trunk/spec/formatter_spec.rb
===================================================================
--- DietRB/trunk/spec/formatter_spec.rb	2010-10-08 11:09:45 UTC (rev 4752)
+++ DietRB/trunk/spec/formatter_spec.rb	2010-10-08 11:09:52 UTC (rev 4753)
@@ -69,7 +69,7 @@
     def object.inspect; @inspected = true; "Never called!"; end
     def object.__id__; 2158110700; end
     
-    @formatter.result(object).should == "=> #<Object:0x101444fd8>"
+    @formatter.result(object).should == "=> #<#{object.class.name}:0x101444fd8>"
     object.instance_variable_get(:@inspected).should_not == true
   end
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/aa2ff6e8/attachment.html>


More information about the macruby-changes mailing list