Skip to content

Commit

Permalink
Alloc KVC specs to pass on 10.6
Browse files Browse the repository at this point in the history
Use `removeObject:`instead of `removeObjectIdenticalTo:` to compare with `isEqual:` instead of pointer value



git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3960 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
Thibault Martin-Lagardette committed Apr 23, 2010
1 parent 2e1eeff commit edbaeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/macruby/core/kvc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def manipulateOrderedCollection(w)
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(
Expand Down

0 comments on commit edbaeb4

Please sign in to comment.