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

Version Path
bubble-wrap-1.9.7 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.6 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.5 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.4 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.3 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.2 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.1 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.9.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.8.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.7.1 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.7.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.6.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.6.0.rc1 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.5.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.5.0.rc1 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.4.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.3.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.3.0.osx spec/motion/core/ns_index_path_spec.rb