diff --git a/spec/integration/loader_spec.rb b/spec/integration/loader_spec.rb index e3a07680..42937251 100644 --- a/spec/integration/loader_spec.rb +++ b/spec/integration/loader_spec.rb @@ -11,7 +11,7 @@ if "".respond_to?(:to_ast) let(:context) { Mutant::Context::Constant.build(CodeLoadingSubject) } let(:node) { 'def foo; :bar; end'.to_ast } let(:root) { context.root(node) } - + subject { Mutant::Loader.load(root) } before { subject } diff --git a/spec/integration/method_matching_spec.rb b/spec/integration/method_matching_spec.rb index 7005d7d6..77815efd 100644 --- a/spec/integration/method_matching_spec.rb +++ b/spec/integration/method_matching_spec.rb @@ -12,7 +12,7 @@ if "".respond_to?(:to_ast) eval(body) File.stub(:read => body) end - + let(:defaults) { {} } context 'on instance methods' do diff --git a/spec/unit/mutant/mutator/call/class_methods/each_spec.rb b/spec/unit/mutant/mutator/call/class_methods/each_spec.rb index 66b260dc..f9b5a7dd 100644 --- a/spec/unit/mutant/mutator/call/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/call/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Call,'.each' do +describe Mutant::Mutator::Call, '.each' do pending 'send' do context 'to self' do diff --git a/spec/unit/mutant/mutator/each_spec.rb b/spec/unit/mutant/mutator/each_spec.rb index 9f2a99f0..d7502835 100644 --- a/spec/unit/mutant/mutator/each_spec.rb +++ b/spec/unit/mutant/mutator/each_spec.rb @@ -1,5 +1,5 @@ # This file is the sandbox for new mutations. -# Once finished mutation test will be moved to class specfic +# Once finished mutation test will be moved to class specfic # file. require 'spec_helper' @@ -28,14 +28,14 @@ describe Mutant::Mutator, '.each' do let(:mutations) do mutations = [] - + # Mutation of each statement in block mutations << "foo\nself.bar" mutations << "self.foo\nbar" ## Remove statement in block - mutations << [:block,'self.foo'.to_sexp] - mutations << [:block,'self.bar'.to_sexp] + mutations << [:block, 'self.foo'.to_sexp] + mutations << [:block, 'self.bar'.to_sexp] end it_should_behave_like 'a mutation enumerator method' diff --git a/spec/unit/mutant/mutator/literal/array/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/array/class_methods/each_spec.rb index 41f67949..ddf86a27 100644 --- a/spec/unit/mutant/mutator/literal/array/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/array/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Array,'.each' do +describe Mutant::Mutator::Literal::Array, '.each' do context 'array literal' do let(:source) { '[true, false]' } @@ -9,7 +9,7 @@ describe Mutant::Mutator::Literal::Array,'.each' do # Literal replaced with nil mutations << [:nil] - + # Mutation of each element in array mutations << '[nil, false]' mutations << '[false, false]' @@ -26,7 +26,7 @@ describe Mutant::Mutator::Literal::Array,'.each' do # Extra element mutations << '[true, false, nil]' end - + it_should_behave_like 'a mutation enumerator method' end end diff --git a/spec/unit/mutant/mutator/literal/boolean/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/boolean/class_methods/each_spec.rb index 1751bb71..ed5d08b5 100644 --- a/spec/unit/mutant/mutator/literal/boolean/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/boolean/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Boolean,'.each' do +describe Mutant::Mutator::Literal::Boolean, '.each' do context 'true literal' do let(:source) { 'true' } diff --git a/spec/unit/mutant/mutator/literal/empty_array/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/empty_array/class_methods/each_spec.rb index 687358ea..d712fe54 100644 --- a/spec/unit/mutant/mutator/literal/empty_array/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/empty_array/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::EmptyArray,'.each' do +describe Mutant::Mutator::Literal::EmptyArray, '.each' do context 'empty array literal' do let(:source) { '[]' } diff --git a/spec/unit/mutant/mutator/literal/fixnum/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/fixnum/class_methods/each_spec.rb index 049ba192..a716cb04 100644 --- a/spec/unit/mutant/mutator/literal/fixnum/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/fixnum/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Fixnum,'.each' do +describe Mutant::Mutator::Literal::Fixnum, '.each' do let(:random_fixnum) { 5 } context 'fixnum literal' do diff --git a/spec/unit/mutant/mutator/literal/float/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/float/class_methods/each_spec.rb index de14143d..e291bf3f 100644 --- a/spec/unit/mutant/mutator/literal/float/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/float/class_methods/each_spec.rb @@ -15,7 +15,7 @@ describe Mutant::Mutator::Literal::Float, '.each' do mutations << [:negate, [:call, [:lit, 1.0], :/, [:arglist, [:lit, 0.0]]]] mutations << [:lit, -10.0] end - + let(:random_float) { 7.123 } before do diff --git a/spec/unit/mutant/mutator/literal/range/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/range/class_methods/each_spec.rb index 6fc04a56..b7cdcec8 100644 --- a/spec/unit/mutant/mutator/literal/range/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/range/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Range,'.each' do +describe Mutant::Mutator::Literal::Range, '.each' do context 'inclusive range literal' do let(:source) { '1..100' } diff --git a/spec/unit/mutant/mutator/literal/regex/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/regex/class_methods/each_spec.rb index 8dda0cbb..7dac8625 100644 --- a/spec/unit/mutant/mutator/literal/regex/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/regex/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Regex,'.each' do +describe Mutant::Mutator::Literal::Regex, '.each' do let(:random_string) { 'bar' } context 'regexp literal' do diff --git a/spec/unit/mutant/mutator/literal/string/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/string/class_methods/each_spec.rb index 6881e8fe..2e62ead4 100644 --- a/spec/unit/mutant/mutator/literal/string/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/string/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::String,'.each' do +describe Mutant::Mutator::Literal::String, '.each' do let(:random_string) { 'bar' } context 'string literal' do diff --git a/spec/unit/mutant/mutator/literal/symbol/class_methods/each_spec.rb b/spec/unit/mutant/mutator/literal/symbol/class_methods/each_spec.rb index c242a586..9469af2b 100644 --- a/spec/unit/mutant/mutator/literal/symbol/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/literal/symbol/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Literal::Symbol,'.each' do +describe Mutant::Mutator::Literal::Symbol, '.each' do let(:random_string) { 'bar' } context 'symbol literal' do diff --git a/spec/unit/mutant/mutator/self/class_methods/each_spec.rb b/spec/unit/mutant/mutator/self/class_methods/each_spec.rb index e1b43bee..5f8db2e1 100644 --- a/spec/unit/mutant/mutator/self/class_methods/each_spec.rb +++ b/spec/unit/mutant/mutator/self/class_methods/each_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Mutant::Mutator::Self,'.each' do +describe Mutant::Mutator::Self, '.each' do let(:source) { 'self' } let(:mutations) do