Sha256: ed824c6c7fe56750003da8c8b338b54e1b4a37becf3238e074a9614fefe5b520

Contents?: true

Size: 648 Bytes

Versions: 5

Compression:

Stored size: 648 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'rails_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

5 entries across 5 versions & 1 rubygems

Version Path
enju_ndl-0.2.3 spec/models/manifestation_spec.rb
enju_ndl-0.2.2 spec/models/manifestation_spec.rb
enju_ndl-0.2.1 spec/models/manifestation_spec.rb
enju_ndl-0.2.0 spec/models/manifestation_spec.rb
enju_ndl-0.2.0.beta.3 spec/models/manifestation_spec.rb