Sha256: 4d722b9963d4ad525ae3fb9a68473233cf68a3a8e63b3e9090f17be24d4f9eb3

Contents?: true

Size: 845 Bytes

Versions: 8

Compression:

Stored size: 845 Bytes

Contents

RSpec.describe Mutant::Integration do

  let(:class_under_test) do
    Class.new(described_class)
  end

  let(:object) { class_under_test.new(Mutant::Config::DEFAULT) }

  describe '#setup' do
    subject { object.setup }
    it_should_behave_like 'a command method'
  end
end

RSpec.describe Mutant::Integration::Null do

  let(:object) { described_class.new(Mutant::Config::DEFAULT) }

  describe '#all_tests' do
    subject { object.all_tests }

    it { should eql([]) }

    it_should_behave_like 'an idempotent method'
  end

  describe '#call' do
    let(:tests) { double('Tests') }

    subject { object.call(tests) }

    it 'returns test result' do
      should eql(
        Mutant::Result::Test.new(
          tests:   tests,
          runtime: 0.0,
          passed:  true,
          output:  ''
        )
      )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.8 spec/unit/mutant/integration_spec.rb
mutant-0.8.7 spec/unit/mutant/integration_spec.rb
mutant-0.8.6 spec/unit/mutant/integration_spec.rb
mutant-0.8.5 spec/unit/mutant/integration_spec.rb
mutant-0.8.4 spec/unit/mutant/integration_spec.rb
mutant-0.8.3 spec/unit/mutant/integration_spec.rb
mutant-0.8.2 spec/unit/mutant/integration_spec.rb
mutant-0.8.1 spec/unit/mutant/integration_spec.rb