Sha256: b47f507aea3136bb761c9575545a9eb7ce6b7bb085ac6fda5bcf95446a91479a

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 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; nil; 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

9 entries across 9 versions & 1 rubygems

Version Path
mutant-0.2.20 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.17 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.16 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.15 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.14 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.13 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.12 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.11 spec/unit/mutant/mutator/node/while/mutation_spec.rb
mutant-0.2.9 spec/unit/mutant/mutator/node/while/mutation_spec.rb