Sha256: 8f65278ffd76844d2ff04da920ed1741de90436c39f3651a7de1b60c4e7133d0
Contents?: true
Size: 714 Bytes
Versions: 5
Compression:
Stored size: 714 Bytes
Contents
require 'spec_helper' describe Mutant::Killer::Rspec, '.new' do subject { object.new(strategy, mutation) } let(:strategy) { mock('Strategy', :spec_files => ['foo']) } let(:context) { mock('Context') } let(:mutation) { mock('Mutation') } let(:object) { described_class } before do mutation.stub(:insert) mutation.stub(:reset) RSpec::Core::Runner.stub(:run => exit_status) end context 'when run exits zero' do let(:exit_status) { 0 } its(:fail?) { should be(true) } it { should be_a(described_class) } end context 'when run exits nonzero' do let(:exit_status) { 1 } its(:fail?) { should be(false) } it { should be_a(described_class) } end end
Version data entries
5 entries across 5 versions & 1 rubygems