Sha256: 12f4bff611a8e1e302e3f42c1552e08d32f731156e574025a75407366c2349d7

Contents?: true

Size: 501 Bytes

Versions: 24

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'

describe Rearview::ResultsHandler do
  let(:job) { create(:job) }
  context 'run' do
    before do
      @job_data = mock
      Rearview::JobData.stubs(:find_or_create_by_job_id).returns(@job_data)
    end
    it 'returns itself' do
      Rearview::JobData.stubs(:find_or_create_by_job_id).returns(stub_everything)
      results_handler = Rearview::ResultsHandler.new(job,{})
      expect(results_handler.run).to be_an_instance_of(Rearview::ResultsHandler)
    end
  end

end


Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.2.2.rc.2-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.2.2.rc.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.2.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.2.0-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.1.2-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.1.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.1.0-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.3.rc.4-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.3.rc.3-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.3.rc.2-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.3.rc.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.2-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.2.rc.4-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.2.rc.3-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.2.rc.2-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.2.rc.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.1-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.0-jruby spec/lib/rearview/results_handler_spec.rb
rearview-1.0.0.rc5-jruby spec/lib/rearview/results_handler_spec.rb