Sha256: 9af83c36c7b95f937e06b8cb83ce7bcd936c57f8cfe78a52370f66aacd6af8be

Contents?: true

Size: 727 Bytes

Versions: 15

Compression:

Stored size: 727 Bytes

Contents

require 'spec_helper'

describe Gurke::RunList do
  let(:reporter) { Gurke::Reporters::NullReporter.new }
  let(:runner)   { double 'runner' }
  let(:object)   { double 'object' }
  let(:list)     { Gurke::RunList.new }

  before do
    list << object
    allow(object).to receive(:run)
  end

  describe '#run' do
    subject { list.run runner, reporter }

    it 'should run all objects' do
      expect(object).to receive(:run).with(runner, reporter)
      subject
    end

    context 'with additional args' do
      subject { list.run runner, reporter, 0, :sym }

      it 'should pass additional args' do
        expect(object).to receive(:run).with(runner, reporter, 0, :sym)
        subject
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gurke-2.4.2 spec/gurke/run_list_spec.rb
gurke-2.4.1 spec/gurke/run_list_spec.rb
gurke-2.4.0 spec/gurke/run_list_spec.rb
gurke-2.3.0 spec/gurke/run_list_spec.rb
gurke-2.2.2 spec/gurke/run_list_spec.rb
gurke-2.2.1 spec/gurke/run_list_spec.rb
gurke-2.1.0 spec/gurke/run_list_spec.rb
gurke-2.0.3 spec/gurke/run_list_spec.rb
gurke-2.0.2 spec/gurke/run_list_spec.rb
gurke-2.0.1 spec/gurke/run_list_spec.rb
gurke-2.0.0 spec/gurke/run_list_spec.rb
gurke-2.0.0.dev.1.b25 spec/gurke/run_list_spec.rb
gurke-2.0.0.dev.1.b24 spec/gurke/run_list_spec.rb
gurke-2.0.0.dev.1.b23 spec/gurke/run_list_spec.rb
gurke-2.0.0.dev.1.b22 spec/gurke/run_list_spec.rb