Sha256: 0415319812ddce6ce7445e6f0452c1f55aa0850fe409a191c632cb1960316e6a

Contents?: true

Size: 447 Bytes

Versions: 11

Compression:

Stored size: 447 Bytes

Contents

require 'spec_helper'

require 'toiler/actor/processor'
RSpec.describe Toiler::Actor::Processor, type: :model do
  let(:fetcher) { double(:fetcher) }

  describe "#new" do
    it 'initializes properly' do
      allow(Toiler).to receive(:fetcher).and_return(fetcher)
      expect(fetcher).to receive(:tell).with(:processor_finished)
      processor = described_class.new('default')
      expect(processor.executing?).to eq(false)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
toiler-0.5.1 spec/models/processor_spec.rb
toiler-0.5.1.pre7 spec/models/processor_spec.rb
toiler-0.5.1.pre6 spec/models/processor_spec.rb
toiler-0.5.1.pre5 spec/models/processor_spec.rb
toiler-0.5.1.pre4 spec/models/processor_spec.rb
toiler-0.5.1.pre3 spec/models/processor_spec.rb
toiler-0.5.1.pre2 spec/models/processor_spec.rb
toiler-0.5.1.pre1 spec/models/processor_spec.rb
toiler-0.5.0 spec/models/processor_spec.rb
toiler-0.4.3 spec/models/processor_spec.rb
toiler-0.4.2 spec/models/processor_spec.rb