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