Sha256: e9bab2e7af5e89d6436bbc6ca83f7c5de1342a9fe454dc6932d442df60bf3378

Contents?: true

Size: 414 Bytes

Versions: 8

Compression:

Stored size: 414 Bytes

Contents

describe "NSIndexPathWrap" do

  before do
      @index = NSIndexPath.indexPathForRow(0, inSection:3)
  end

  it "should support #+ and #-" do
    @index = @index + 1
    @index.row.should == 1
    @index = @index + 1
    @index.row.should == 2
    @index = @index + 12
    @index.row.should == 14
    @index = @index - 3
    @index.row.should == 11
    @index = @index - 0
    @index.row.should == 11
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bubble-wrap-1.9.7 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.6 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.5 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.4 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.3 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.2 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.1 spec/motion/core/ios/ns_index_path_spec.rb
bubble-wrap-1.9.0 spec/motion/core/ios/ns_index_path_spec.rb