2012-08-14 22:45:34 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Mutant, 'runner' do
|
|
|
|
around do |example|
|
|
|
|
Dir.chdir(TestApp.root) do
|
|
|
|
example.run
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'allows to run mutant over a project' do
|
2012-08-16 04:10:54 +02:00
|
|
|
runner = Mutant::Runner.run(
|
|
|
|
:pattern => /\ATestApp::/,
|
|
|
|
:killer => Mutant::Killer::Rspec,
|
|
|
|
:reporter => Mutant::Reporter::CLI.new($stdout)
|
|
|
|
)
|
|
|
|
runner.fail?.should be(true)
|
2012-08-14 22:45:34 +02:00
|
|
|
end
|
|
|
|
end
|