Fix whitespace ater comma
This commit is contained in:
parent
b9b95ebe94
commit
db96c0cfab
14 changed files with 19 additions and 19 deletions
|
@ -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 }
|
||||
|
|
|
@ -12,7 +12,7 @@ if "".respond_to?(:to_ast)
|
|||
eval(body)
|
||||
File.stub(:read => body)
|
||||
end
|
||||
|
||||
|
||||
let(:defaults) { {} }
|
||||
|
||||
context 'on instance methods' do
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' }
|
||||
|
||||
|
|
|
@ -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) { '[]' }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue