[macruby-changes] [1847] MacRuby/branches/experimental/spec/macruby/language/objc_method_spec .rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 12 15:06:45 PDT 2009


Revision: 1847
          http://trac.macosforge.org/projects/ruby/changeset/1847
Author:   lsansonetti at apple.com
Date:     2009-06-12 15:06:44 -0700 (Fri, 12 Jun 2009)
Log Message:
-----------
rewrote the NSUndoManager spec to conform to 10.6

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/macruby/language/objc_method_spec.rb

Modified: MacRuby/branches/experimental/spec/macruby/language/objc_method_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/macruby/language/objc_method_spec.rb	2009-06-12 21:35:35 UTC (rev 1846)
+++ MacRuby/branches/experimental/spec/macruby/language/objc_method_spec.rb	2009-06-12 22:06:44 UTC (rev 1847)
@@ -665,8 +665,7 @@
 
   it "can be forwarded by NSUndoManager" do
     @um.canUndo.should == false
-    @um.prepareWithInvocationTarget(@o)
-    @um.foo(42)
+    @um.prepareWithInvocationTarget(@o).foo(42)
     @um.canUndo.should == true
 
     @o.a.should == []
@@ -674,8 +673,7 @@
     @o.a.should == [42]
 
     @um.canUndo.should == false
-    @um.prepareWithInvocationTarget(@o)
-    @um.foo(42)
+    @um.prepareWithInvocationTarget(@o).foo(42)
     @um.canUndo.should == true
 
     @um.undo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090612/34842bf7/attachment-0001.html>


More information about the macruby-changes mailing list