Adjust metrics

* Add some specs to make coveralls happy
This commit is contained in:
Markus Schirp 2013-08-04 23:52:38 +02:00
parent 251dd1a13f
commit dfffbb3b25
3 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,3 @@
---
threshold: 16
total_score: 739
total_score: 734

View file

@ -13,7 +13,6 @@ module Mutant
SUCCESS = '.'.freeze
FAILURE = 'F'.freeze
# Run printer
#
# @return [undefined]

View file

@ -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}) }