Sha256: 99c39891d11506b067a7104c4360bbbefbe68d5a5882f6bcf1d428dd40fd7578
Contents?: true
Size: 496 Bytes
Versions: 18
Compression:
Stored size: 496 Bytes
Contents
describe "NSIndexPathWrap" do before do if App.osx? @index = NSIndexPath.indexPathWithIndex(3) else @index = NSIndexPath.indexPathForRow(0, inSection:3) end end it "should be able to use an array like accessor" do @index[0].should == @index.indexAtPosition(0) end it "should support the each iterator" do i = [] @index.each do |idx| i << idx end if App.osx? i.should == [3] else i.should == [3, 0] end end end
Version data entries
18 entries across 18 versions & 1 rubygems