Sha256: 5e6ded358eba85d5555d4462a2d06cbd5f455a4edb1a65e66cdcb3e8eb48f215
Contents?: true
Size: 860 Bytes
Versions: 18
Compression:
Stored size: 860 Bytes
Contents
require 'spec_helper' describe Mutant::Killer,'#fail?' do subject { object.fail? } let(:object) { class_under_test.new(strategy, mutation) } let(:strategy) { mock('Strategy') } let(:mutation) { mock('Mutation') } before do mutation.stub(:insert) mutation.stub(:reset) end let(:class_under_test) do kill_state = self.kill_state Class.new(described_class) do define_method :run do kill_state end end end context 'when mutant was killed' do let(:kill_state) { true } it_should_behave_like 'an idempotent method' it { should be(false) } end context 'when mutant was NOT killed' do let(:kill_state) { false } it_should_behave_like 'an idempotent method' it { should be(true) } end end
Version data entries
18 entries across 18 versions & 1 rubygems