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