Sha256: 7275cae957c0940a568e2c3c9ac108f87a53e6f36fc311c608694936698d016f

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 Bytes

Contents

describe NSIndexPath do

  it 'should support indexPathForRow(inSection:)' do
    path = NSIndexPath.indexPathForRow(1, inSection: 3).to_a
    path[0].should == 3
    path[1].should == 1
  end

  it 'should support indexPathForItem(inSection:)' do
    path = NSIndexPath.indexPathForItem(1, inSection: 3).to_a
    path[0].should == 3
    path[1].should == 1
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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