Sha256: f8be354370280dc59ad61293f8da1c142087f398bbed4db7bf9bf72a810ac108
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
RSpec.describe Mutest::Reporter::Sequence do let(:object) { described_class.new([reporter_a, reporter_b]) } let(:value) { instance_double(Object) } let(:reporter_a) { instance_double(Mutest::Reporter, delay: 1.0) } let(:reporter_b) { instance_double(Mutest::Reporter, delay: 2.0) } %i[report progress warn start].each do |name| describe "##{name}" do subject { object.public_send(name, value) } before do [reporter_a, reporter_b].each do |receiver| expect(receiver).to receive(name) .ordered .with(value) .and_return(receiver) end end it_behaves_like 'a command method' end end describe '#delay' do it 'returns the lowest value' do expect(object.delay).to be(1.0) end end end
Version data entries
4 entries across 4 versions & 1 rubygems