Sha256: 265100a5d7cdd1ae5111b6927c2465ce2c06a04e942af2d942cd6c7afb465285

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

RSpec.describe Mutest::Integration do
  let(:class_under_test) do
    Class.new(described_class)
  end

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

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

  describe '.setup' do
    subject { described_class.setup(requirer, name) }

    let(:name)     { 'null'               }
    let(:requirer) { Mutest::Requirer.new }

    before do
      expect(requirer).to receive(:require)
        .with('mutest/integration/null')
    end

    it { is_expected.to be(Mutest::Integration::Null) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutest-0.0.6 spec/unit/mutest/integration_spec.rb
mutest-0.0.5 spec/unit/mutest/integration_spec.rb