Sha256: cc52c0281cd229e8beac9634b7e5a8cf44533ce7e865c2fae49b59c1164afcbc

Contents?: true

Size: 686 Bytes

Versions: 10

Compression:

Stored size: 686 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         not null
#  updated_at       :datetime         not null
#

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre62 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre61 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre60 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre59 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre58 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre57 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre56 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre55 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre54 spec/models/import_request_spec.rb
enju_biblio-0.1.0.pre53 spec/models/import_request_spec.rb