Sha256: 2c62dad2fbbc54024a3a66139c4cbe687da751dd0ae487ecaf16a16e09f634c2

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require 'spec_helper'

shared_examples_for 'a preprocessor' do
  let(:preprocessor) { described_class.new(industry_map: {1423=>3, 523=>54}) }
  let(:job) { FactoryGirl.build(:job) }
  let(:jobs) { [job] }

  before(:each) do
    job.stubs(:classification_id)
    job.stubs(:label)
  end
  it { preprocessor.should respond_to :process }
  it "should return a PreprocessedData object" do
    preprocessor.process(job).should be_a(PreprocessedData)
  end
  it "should be able to process multiple jobs" do
    preprocessor.process(jobs).each do |e|
      e.should be_a(PreprocessedData)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
svm_helper-0.1.0 spec/support/preprocessor_spec.rb