Sha256: d81966fcc1b5863f21b59a132ce5211b5df3ba07b4376629bd92a7369dec1890

Contents?: true

Size: 477 Bytes

Versions: 20

Compression:

Stored size: 477 Bytes

Contents

require 'spec_helper'

describe Mutant::Mutator::Node::While do

  context 'with more than one statement' do
    let(:source) { "while true; foo; bar; end" }

    let(:mutations) do
      mutations = []
      mutations << 'while true; bar; end'
      mutations << 'while true; foo; end'
      mutations << 'while true; end'
      mutations << 'while false; foo; bar; end'
      mutations << 'while nil;   foo; bar; end'
    end

    it_should_behave_like 'a mutator'
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

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