Sha256: d96ed7efea3fe484bda1e339de7ed7c43c9c728c26a459e7eb406dbbf54a8a7d

Contents?: true

Size: 647 Bytes

Versions: 6

Compression:

Stored size: 647 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe Manifestation do
  fixtures :all

  it "should imporrt a bibliographic record", :vcr => true do
    manifestation = Manifestation.import_from_ndl_search(:isbn => '406258087X')
    manifestation.should be_valid
  end

  it "should import isbn", :vcr => true do
    Manifestation.import_isbn('4797327030').should be_valid
  end

  it "should import series statement", :vcr => true do
    manifestation = Manifestation.import_isbn('4106101491')
    manifestation.series_statements.count.should eq  1
    manifestation.series_statements.first.original_title.should eq '新潮新書'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_ndl-0.2.0.beta.2 spec/models/manifestation_spec.rb
enju_ndl-0.2.0.beta.1 spec/models/manifestation_spec.rb
enju_ndl-0.1.1 spec/models/manifestation_spec.rb
enju_ndl-0.1.0 spec/models/manifestation_spec.rb
enju_ndl-0.1.0.pre38 spec/models/manifestation_spec.rb
enju_ndl-0.1.0.pre37 spec/models/manifestation_spec.rb