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

Version Path
mutant-0.3.0.beta21 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta20 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta19 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta18 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta17 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta16 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta15 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta14 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta13 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta12 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta11 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta10 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta9 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta8 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta7 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta6 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta5 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta4 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta3 spec/integration/mutant/rspec_killer_spec.rb
mutant-0.3.0.beta2 spec/integration/mutant/rspec_killer_spec.rb