Sha256: fd150c35336520294ff852084b71e7d9a19255ef120f1cb5526649caff8db1aa

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

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

  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

2 entries across 2 versions & 1 rubygems

Version Path
svm_helper-0.2.1 spec/support/preprocessor_spec.rb
svm_helper-0.1.1 spec/support/preprocessor_spec.rb