Sha256: 5a43b9696037426fb010eb676652e9c24a410257b3402adde9f6ea4d894e79a1

Contents?: true

Size: 708 Bytes

Versions: 15

Compression:

Stored size: 708 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://kindai.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://kindai.da.ndl.go.jp/scrpt/ndlimageviewer-rgc.aspx?pid=info%3Andljp%2Fpid%2F922693&jp=42016454&vol=10010&koma=5&vs=10000,10000,0,0,0,0,0,0"
  end

  it 'has image_uri' do
    @spread.image_uri.should match /http:\/\/kindai.da.ndl.go.jp\/JPEG\/\w+\.jpg/
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kindai-1.9.0 spec/spread_spec.rb
kindai-1.8.0 spec/spread_spec.rb
kindai-1.7.4 spec/spread_spec.rb
kindai-1.7.2 spec/spread_spec.rb
kindai-1.7.1 spec/spread_spec.rb
kindai-1.7.0 spec/spread_spec.rb
kindai-1.6.2 spec/spread_spec.rb
kindai-1.6.1 spec/spread_spec.rb
kindai-1.6.0 spec/spread_spec.rb
kindai-1.5.1 spec/spread_spec.rb
kindai-1.5.0 spec/spread_spec.rb
kindai-1.4.0 spec/spread_spec.rb
kindai-1.3.0 spec/spread_spec.rb
kindai-1.1.0 spec/spread_spec.rb
kindai-1.0.0 spec/spread_spec.rb