Sha256: 49b7727bc600ba70be5e979b898941d214c2735f97740d5deff769ebe908c402

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Kindai::Spread do
  before do
    @book = Kindai::Book.new_from_permalink('http://dl.ndl.go.jp/info:ndljp/pid/922693')
    @spread = @book.spreads[4]
  end

  it 'has spread number' do
    @spread.spread_number.should == 5
  end

  it 'has book' do
    @spread.book.should == @book
  end

  it 'has uri' do
    @spread.uri.should == 'http://dl.ndl.go.jp/info:ndljp/pid/922693/5'
  end

  it 'has image_uri' do
    @spread.image_uri.should == "http://dl.ndl.go.jp/view/jpegOutput?itemId=info%3Andljp%2Fpid%2F922693&contentNo=5&outputScale=1"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kindai-2.8.0 spec/spread_spec.rb