Fix whitespace ater comma

This commit is contained in:
Markus Schirp 2012-08-01 13:30:08 +02:00
parent b9b95ebe94
commit db96c0cfab
14 changed files with 19 additions and 19 deletions

View file

@ -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 }

View file

@ -12,7 +12,7 @@ if "".respond_to?(:to_ast)
eval(body)
File.stub(:read => body)
end
let(:defaults) { {} }
context 'on instance methods' do

View file

@ -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

View file

@ -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'

View file

@ -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

View file

@ -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' }

View file

@ -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) { '[]' }

View file

@ -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

View file

@ -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

View file

@ -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' }

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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