2018-09-12 10:21:24 -04:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 09:15:43 -04:00
|
|
|
|
2014-12-12 20:06:04 -05:00
|
|
|
RSpec.describe 'null integration', mutant: false do
|
2014-05-11 10:43:15 -04:00
|
|
|
|
2014-06-08 19:33:15 -04:00
|
|
|
let(:base_cmd) { 'bundle exec mutant -I lib --require test_app "TestApp*"' }
|
2014-05-11 10:43:15 -04:00
|
|
|
|
|
|
|
around do |example|
|
|
|
|
Dir.chdir(TestApp.root) do
|
|
|
|
example.run
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
specify 'it allows to kill mutations' do
|
2014-05-11 10:45:16 -04:00
|
|
|
expect(Kernel.system(base_cmd)).to be(false)
|
2014-05-11 10:43:15 -04:00
|
|
|
end
|
|
|
|
end
|