Make tests pass on both RSpec 2 and 3
This commit is contained in:
parent
6405c6532f
commit
b60fb47fd1
3 changed files with 6 additions and 6 deletions
|
@ -32,7 +32,7 @@ module Mutant
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
reporter = RSpec::Core::Reporter.new
|
reporter = RSpec.configuration.reporter
|
||||||
|
|
||||||
example_groups.each do |group|
|
example_groups.each do |group|
|
||||||
return true unless group.run(reporter)
|
return true unless group.run(reporter)
|
||||||
|
|
|
@ -13,9 +13,9 @@ end
|
||||||
shared_examples_for 'a cli parser' do
|
shared_examples_for 'a cli parser' do
|
||||||
subject { cli.config }
|
subject { cli.config }
|
||||||
|
|
||||||
its(:strategy) { should eql(expected_strategy) }
|
it { expect(subject.strategy).to eql(expected_strategy) }
|
||||||
its(:reporter) { should eql(expected_reporter) }
|
it { expect(subject.reporter).to eql(expected_reporter) }
|
||||||
its(:matcher) { should eql(expected_matcher) }
|
it { expect(subject.matcher).to eql(expected_matcher) }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe Mutant::CLI, '.new' do
|
describe Mutant::CLI, '.new' do
|
||||||
|
|
|
@ -42,7 +42,7 @@ describe Mutant::Rspec::Killer, '.new' do
|
||||||
context 'when run exits zero' do
|
context 'when run exits zero' do
|
||||||
let(:exit_status) { 0 }
|
let(:exit_status) { 0 }
|
||||||
|
|
||||||
its(:killed?) { should be(false) }
|
it { expect(subject.killed?).to be(false) }
|
||||||
|
|
||||||
it { should be_a(described_class) }
|
it { should be_a(described_class) }
|
||||||
end
|
end
|
||||||
|
@ -50,7 +50,7 @@ describe Mutant::Rspec::Killer, '.new' do
|
||||||
context 'when run exits nonzero' do
|
context 'when run exits nonzero' do
|
||||||
let(:exit_status) { 1 }
|
let(:exit_status) { 1 }
|
||||||
|
|
||||||
its(:killed?) { should be(true) }
|
it { expect(subject.killed?).to be(true) }
|
||||||
|
|
||||||
it { should be_a(described_class) }
|
it { should be_a(described_class) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue