<commit_before>require 'spec_helper'

describe Import do
  describe Import::OfficeImporter do
    it 'should create mapping correctly' do
      subject = Import::OfficeImporter.new(xml_fixture('office'), '2012-2013').build_model
      expect(subject).to be_a(Office)
      expect(subject.leo_id).to eq 1000
      expect(subject.year).to eq '2012-2013'
      #expect(subject.name).to eq :dspr
      expect(subject.member_id).to eq 27146
    end
  end
end<commit_msg>enable test for office name<commit_after>require 'spec_helper'

describe Import do
  describe Import::OfficeImporter do
    it 'should create mapping correctly' do
      subject = Import::OfficeImporter.new(xml_fixture('office'), '2012-2013').build_model
      expect(subject).to be_a(Office)
      expect(subject.leo_id).to eq 1000
      expect(subject.year).to eq '2012-2013'
      expect(subject.name).to eq :president
      expect(subject.member_id).to eq 27146
    end
  end
end
{'fraction_non_alphanumeric': 0.10443037974683544, 'fraction_numerical': 0.052742616033755275, 'mean_word_length': 3.817258883248731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6187938', 'n_tokens_mistral': 340, 'n_tokens_neox': 288, 'n_words': 71}