Sha256: 251b3cc9c19304c9c226e826979d4817e2987c7f50fa2f8954e808d13a09c941

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

RSpec.describe Mutant::Test do
  let(:object) { described_class.new(integration, expression) }

  let(:integration) { double('Integration', name: 'test-integration') }
  let(:expression)  { double('Expression', syntax: 'test-syntax') }

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

    it { should eql('test-integration:test-syntax') }
  end

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

    let(:report) { double('Report') }

    it 'runs test via integration' do
      expect(integration).to receive(:run).with(object).and_return(report)
      expect(subject).to be(report)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.6.7 spec/unit/mutant/test_spec.rb
mutant-0.6.6 spec/unit/mutant/test_spec.rb
mutant-0.6.5 spec/unit/mutant/test_spec.rb
mutant-0.6.4 spec/unit/mutant/test_spec.rb
mutant-0.6.3 spec/unit/mutant/test_spec.rb
mutant-0.6.2 spec/unit/mutant/test_spec.rb
mutant-0.6.0 spec/unit/mutant/test_spec.rb