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