Sha256: 421366147569dc424dee192de80b16d8c72b3ed248d3b30efdd64ae1152cd1a6
Contents?: true
Size: 678 Bytes
Versions: 20
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' describe Mutant,'rspec integration' do around do |example| Dir.chdir(TestApp.root) do example.run end end let(:strategy) { Mutant::Strategy::Rspec::DM2 } specify 'allows to kill mutations' do Kernel.system('bundle exec mutant --rspec-dm2 ::TestApp::Literal#string').should be(true) end specify 'fails to kill mutations when they are not covered' do Kernel.system('bundle exec mutant --rspec-dm2 ::TestApp::Literal#uncovered_string').should be(false) end specify 'fails when some mutations when are not covered' do Kernel.system('bundle exec mutant --rspec-dm2 ::TestApp::Literal').should be(false) end end
Version data entries
20 entries across 20 versions & 1 rubygems