[macruby-changes] [3960] MacRuby/trunk/spec/macruby/core/kvc_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 23 13:42:57 PDT 2010


Revision: 3960
          http://trac.macosforge.org/projects/ruby/changeset/3960
Author:   martinlagardette at apple.com
Date:     2010-04-23 13:42:56 -0700 (Fri, 23 Apr 2010)
Log Message:
-----------
Alloc KVC specs to pass on 10.6

Use `removeObject:`instead of `removeObjectIdenticalTo:` to compare with `isEqual:` instead of pointer value

Modified Paths:
--------------
    MacRuby/trunk/spec/macruby/core/kvc_spec.rb

Modified: MacRuby/trunk/spec/macruby/core/kvc_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/kvc_spec.rb	2010-04-23 02:19:30 UTC (rev 3959)
+++ MacRuby/trunk/spec/macruby/core/kvc_spec.rb	2010-04-23 20:42:56 UTC (rev 3960)
@@ -90,7 +90,7 @@
   w.valueForKey("kvcOrderedCollection").should == [1, 20, 3, 40, 5, 60, 70, 8]
 
   w.mutableArrayValueForKey("kvcOrderedCollection").removeObjectAtIndex(1)
-  w.mutableArrayValueForKey("kvcOrderedCollection").removeObjectIdenticalTo(40)
+  w.mutableArrayValueForKey("kvcOrderedCollection").removeObject(40)
   w.mutableArrayValueForKey("kvcOrderedCollection").removeObjectsAtIndexes(
       NSIndexSet.indexSetWithIndex(3))
   w.mutableArrayValueForKey("kvcOrderedCollection").removeObjectsInRange(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100423/312913f4/attachment.html>


More information about the macruby-changes mailing list