Sha256: 2ae2465034aedb9c4a171524447cb205436576ab3819e7a771b8190a595cbe71

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 Bytes

Contents

require "spec_helper"

describe Rindle::Collections do
  it 'loads the kindles collections.json file' do
    collections = Rindle::Collections.load(kindle_root)
    Hash[collections.map{|k,c| [k,c.indices] } ].should == {
      "collection1"  => ["*18be6fcd5d5df39c1a96cd22596bbe7fe01db9b7", "*0849dd9b85fc341d10104f56985e423b3848e1f3"],
      "collection2"  => ["*440f49b58ae78d34f4b8ad3233f04f6b8f5490c2"],
      "amazon books" => ["#B001UQ5HVA^EBSP","#B000JQU1VS^EBOK"]
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rindle-0.3.4 spec/rindle/collections_spec.rb
rindle-0.3.3 spec/rindle/collections_spec.rb
rindle-0.3.2 spec/rindle/collections_spec.rb
rindle-0.3.1 spec/rindle/collections_spec.rb
rindle-0.3.0 spec/rindle/collections_spec.rb
rindle-0.2.0 spec/rindle/collections_spec.rb
rindle-0.1.1 spec/rindle/collections_spec.rb
rindle-0.1.0 spec/rindle/collections_spec.rb