Sha256: a66472ffc1ed86f8a1828f405829b8fda2959abcd3332a908a7c6e6fc39e12cb

Contents?: true

Size: 652 Bytes

Versions: 15

Compression:

Stored size: 652 Bytes

Contents

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

describe ImportRequest do
  fixtures :all

  context "import" do
    it "should import bibliographic record", :vcr => true do
      old_count = Manifestation.count
      import_request = ImportRequest.create(:isbn => '9784797350999')
      import_request.import!
      Manifestation.count.should eq old_count + 1
    end
  end
end

# == Schema Information
#
# Table name: import_requests
#
#  id               :integer          not null, primary key
#  isbn             :string(255)
#  manifestation_id :integer
#  user_id          :integer
#  created_at       :datetime
#  updated_at       :datetime
#

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.2 spec/models/import_request_spec.rb
enju_biblio-0.2.0.beta.1 spec/models/import_request_spec.rb
enju_biblio-0.1.3 spec/models/import_request_spec.rb
enju_biblio-0.1.2 spec/models/import_request_spec.rb
enju_biblio-0.1.1 spec/models/import_request_spec.rb
enju_biblio-0.1.0 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre71 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre70 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre69 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre68 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre67 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre66 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre65 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre64 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre63 spec/models/import_request_spec.rb