Sha256: 51fdcc24deb3ede49099ce9c940a5a497e3645201ed41db8f5dca1db36f7a868
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe ThinkingSphinx::Deltas::ResqueDelta::DeltaJob do subject do ThinkingSphinx::Deltas::ResqueDelta::DeltaJob end describe '.perform' do let(:job) { double 'Job', :perform => true } before :each do ThinkingSphinx::Deltas::ResqueDelta.stub :locked? => false ThinkingSphinx::Deltas::IndexJob.stub :new => job end it "sets up the internal Thinking Sphinx job with the provided index" do ThinkingSphinx::Deltas::IndexJob.should_receive(:new).with('foo_delta'). and_return(job) subject.perform 'foo_delta' end it "should execute the internal job" do job.should_receive :perform subject.perform 'foo_delta' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ts-resque-delta-2.0.0 | spec/thinking_sphinx/deltas/resque_delta/delta_job_spec.rb |