Rename Assignment as VariableAssignment

This commit is contained in:
Dan Kubb 2013-07-23 00:03:57 -07:00
parent 951c27c411
commit 1d18ce5a7a
3 changed files with 5 additions and 5 deletions

View file

@ -58,7 +58,7 @@ require 'mutant/mutator/node/argument'
require 'mutant/mutator/node/arguments'
require 'mutant/mutator/node/begin'
require 'mutant/mutator/node/named_value/access'
require 'mutant/mutator/node/named_value/assignment'
require 'mutant/mutator/node/named_value/variable_assignment'
require 'mutant/mutator/node/while'
require 'mutant/mutator/node/super'
require 'mutant/mutator/node/send'

View file

@ -3,8 +3,8 @@ module Mutant
class Node
module NamedValue
# Mutation emitter to handle value assignment nodes
class Assignment < Node
# Mutation emitter to handle variable assignment nodes
class VariableAssignment < Node
children :name, :value
@ -43,7 +43,7 @@ module Mutant
end
end
end # Assignment
end # VariableAssignment
end # NamedValue
end # Node
end # Mutator

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe Mutant::Mutator::Node::NamedValue::Assignment, 'mutations' do
describe Mutant::Mutator::Node::NamedValue::VariableAssignment, 'mutations' do
before do
Mutant::Random.stub(:hex_string => :random)