Adjust metrics
* Add some specs to make coveralls happy
This commit is contained in:
parent
251dd1a13f
commit
dfffbb3b25
3 changed files with 25 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
threshold: 16
|
||||
total_score: 739
|
||||
total_score: 734
|
||||
|
|
|
@ -13,7 +13,6 @@ module Mutant
|
|||
SUCCESS = '.'.freeze
|
||||
FAILURE = 'F'.freeze
|
||||
|
||||
|
||||
# Run printer
|
||||
#
|
||||
# @return [undefined]
|
||||
|
|
|
@ -84,6 +84,30 @@ describe Mutant::CLI, '.new' do
|
|||
it_should_behave_like 'a cli parser'
|
||||
end
|
||||
|
||||
context 'with debug flag' do
|
||||
let(:matcher) { '::TestApp*' }
|
||||
let(:arguments) { %W(--debug --rspec #{matcher}) }
|
||||
let(:expected_matcher) { ns::Namespace::Recursive.new(cache, matcher) }
|
||||
|
||||
it_should_behave_like 'a cli parser'
|
||||
|
||||
it 'should set the debug option' do
|
||||
subject.config.debug.should be(true)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with zombie flag' do
|
||||
let(:matcher) { '::TestApp*' }
|
||||
let(:arguments) { %W(--zombie --rspec #{matcher}) }
|
||||
let(:expected_matcher) { ns::Namespace::Recursive.new(cache, matcher) }
|
||||
|
||||
it_should_behave_like 'a cli parser'
|
||||
|
||||
it 'should set the zombie option' do
|
||||
subject.config.zombie.should be(true)
|
||||
end
|
||||
end
|
||||
|
||||
context 'with namespace matcher' do
|
||||
let(:matcher) { '::TestApp*' }
|
||||
let(:arguments) { %W(--rspec #{matcher}) }
|
||||
|
|
Loading…
Add table
Reference in a new issue