Sha256: 060f6b1de19c956cbfdb73041916c36906762a72ca3b2aca899953261bc8b0db

Contents?: true

Size: 394 Bytes

Versions: 24

Compression:

Stored size: 394 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::NamedValue::VariableAssignment, 'mutations' do
  before do
    Mutant::Random.stub(hex_string: 'random')
  end

  let(:source) { 'A = true' }

  let(:mutations) do
    mutations = []
    mutations << 'SRANDOM = true'
    mutations << 'A = false'
    mutations << 'A = nil'
  end

  it_should_behave_like 'a mutator'
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mutant-0.5.12 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.11 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.10 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.9 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.8 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.7 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.6 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.5 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.4 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.3 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.2 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.1 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.5.0 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.6 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.5 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.4 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.3 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.2 spec/unit/mutant/mutator/node/named_value/constant_assignment_spec.rb
mutant-0.3.1 spec/unit/mutant/mutator/node/named_value/constant_assignment/mutation_spec.rb
mutant-0.3.0 spec/unit/mutant/mutator/node/named_value/constant_assignment/mutation_spec.rb