<commit_before># -*- encoding: utf-8 -*-
require 'spec_helper'

describe ImportRequest do
  context "import" do
    it "should import bibliographic record", :vcr => true, :solr => 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)
#  state            :string(255)
#  manifestation_id :integer
#  user_id          :integer
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#

<commit_msg>fixed spec file<commit_after># -*- encoding: utf-8 -*-
require 'spec_helper'

describe ImportRequest do
  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)
#  state            :string(255)
#  manifestation_id :integer
#  user_id          :integer
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#


{'fraction_non_alphanumeric': 0.0907244414353419, 'fraction_numerical': 0.02843601895734597, 'mean_word_length': 2.3438914027149322, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6419431', 'n_tokens_mistral': 463, 'n_tokens_neox': 433, 'n_words': 122}