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

Version Path
mutest-0.0.10 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.9 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.8 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.7 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.6 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.5 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.4 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.3 spec/unit/mutest/result/mutation_spec.rb
mutest-0.0.2 spec/unit/mutest/result/mutation_spec.rb