Sha256: db986be544513e93ba1d3a4cc55b64d35ab00ee2ad88b0a4887d4c161cebcc43

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

describe "NSIndexPathWrap" do

  before do
    @index = NSIndexPath.indexPathForRow(0, inSection:3) 
  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
    i.should == [3, 0]
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bubble-wrap-1.2.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.2.0.pre spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.5 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.4 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.3 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.2 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.1 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.1.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.0.0 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.0.0.pre.2 spec/motion/core/ns_index_path_spec.rb
bubble-wrap-1.0.0.pre spec/core/ns_index_path_spec.rb