Sha256: b9d05e677757dcdd8d0fe2808a7983d6aaae149aa0a4ed92461d88aa0a7b9efd

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

describe NSIndexPath do

  it 'should have to_a' do
    path = NSIndexPath.indexPathWithIndex(1).indexPathByAddingIndex(3)
    path.to_a.should == [1, 3]
  end

  it 'should have to_ary' do
    a, b = NSIndexPath.indexPathWithIndex(1).indexPathByAddingIndex(3).to_ary
    a.should == 1
    b.should == 3
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sugarcube-4.0.0 spec/cocoa/nsindexpath_spec.rb
sugarcube-3.5.0 spec/cocoa/nsindexpath_spec.rb
sugarcube-3.4.2 spec/cocoa/nsindexpath_spec.rb
sugarcube-3.4.1 spec/cocoa/nsindexpath_spec.rb
sugarcube-3.4.0 spec/cocoa/nsindexpath_spec.rb
sugarcube-3.3.7 spec/cocoa/nsindexpath_spec.rb