From 1d18ce5a7a8ac73c8dcf38c1605c0bec4cc954c0 Mon Sep 17 00:00:00 2001 From: Dan Kubb Date: Tue, 23 Jul 2013 00:03:57 -0700 Subject: [PATCH] Rename Assignment as VariableAssignment --- lib/mutant.rb | 2 +- .../named_value/{assignment.rb => variable_assignment.rb} | 6 +++--- .../{assignment => variable_assignment}/mutation_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename lib/mutant/mutator/node/named_value/{assignment.rb => variable_assignment.rb} (87%) rename spec/unit/mutant/mutator/node/named_value/{assignment => variable_assignment}/mutation_spec.rb (93%) diff --git a/lib/mutant.rb b/lib/mutant.rb index bc1b98d2..1d5745c0 100644 --- a/lib/mutant.rb +++ b/lib/mutant.rb @@ -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' diff --git a/lib/mutant/mutator/node/named_value/assignment.rb b/lib/mutant/mutator/node/named_value/variable_assignment.rb similarity index 87% rename from lib/mutant/mutator/node/named_value/assignment.rb rename to lib/mutant/mutator/node/named_value/variable_assignment.rb index 17631b0c..7460798b 100644 --- a/lib/mutant/mutator/node/named_value/assignment.rb +++ b/lib/mutant/mutator/node/named_value/variable_assignment.rb @@ -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 diff --git a/spec/unit/mutant/mutator/node/named_value/assignment/mutation_spec.rb b/spec/unit/mutant/mutator/node/named_value/variable_assignment/mutation_spec.rb similarity index 93% rename from spec/unit/mutant/mutator/node/named_value/assignment/mutation_spec.rb rename to spec/unit/mutant/mutator/node/named_value/variable_assignment/mutation_spec.rb index 05a26ab4..59449390 100644 --- a/spec/unit/mutant/mutator/node/named_value/assignment/mutation_spec.rb +++ b/spec/unit/mutant/mutator/node/named_value/variable_assignment/mutation_spec.rb @@ -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)