Sha256: c5b2eef8df2879a5f273e4a1aecbabc16a8f3bff52ec0d820fce073e34d0055d
Contents?: true
Size: 699 Bytes
Versions: 9
Compression:
Stored size: 699 Bytes
Contents
RSpec.describe Mutest::Result::Mutation do let(:object) do described_class.new( mutation: mutation, test_result: test_result ) end let(:mutation) { instance_double(Mutest::Mutation) } let(:test_result) do instance_double( Mutest::Result::Test, runtime: 1.0 ) end describe '#runtime' do subject { object.runtime } it { is_expected.to be(1.0) } end describe '#success?' do subject { object.success? } let(:result) { double('result boolean') } before do expect(mutation.class).to receive(:success?) .with(test_result) .and_return(result) end it { is_expected.to be(result) } end end
Version data entries
9 entries across 9 versions & 1 rubygems