diff --git a/lib/mutant/reporter/cli/printer/subject.rb b/lib/mutant/reporter/cli/printer/subject.rb index db0cb811..25214ba6 100644 --- a/lib/mutant/reporter/cli/printer/subject.rb +++ b/lib/mutant/reporter/cli/printer/subject.rb @@ -145,4 +145,3 @@ module Mutant end # CLI end # Reporter end # Mutant - diff --git a/spec/unit/mutant/matcher/method/instance/each_spec.rb b/spec/unit/mutant/matcher/method/instance/each_spec.rb index 023a6297..f2a3c1e7 100644 --- a/spec/unit/mutant/matcher/method/instance/each_spec.rb +++ b/spec/unit/mutant/matcher/method/instance/each_spec.rb @@ -6,7 +6,7 @@ describe Mutant::Matcher::Method::Instance, '#each' do let(:yields) { [] } - let(:namespace) do + let(:namespace) do klass = self.class end @@ -56,7 +56,7 @@ describe Mutant::Matcher::Method::Instance, '#each' do class self::Foo def bar; end; def bar(arg); end end - + let(:method_line) { 2 } let(:method_arity) { 1 } diff --git a/spec/unit/mutant/matcher/method/singleton/each_spec.rb b/spec/unit/mutant/matcher/method/singleton/each_spec.rb index 1fd0ca39..64911fe9 100644 --- a/spec/unit/mutant/matcher/method/singleton/each_spec.rb +++ b/spec/unit/mutant/matcher/method/singleton/each_spec.rb @@ -6,7 +6,7 @@ describe Mutant::Matcher::Method::Singleton, '#each' do let(:yields) { [] } - let(:namespace) do + let(:namespace) do klass = self.class end diff --git a/spec/unit/mutant/runner/config/subjects_spec.rb b/spec/unit/mutant/runner/config/subjects_spec.rb index f0509a6a..2cea27b7 100644 --- a/spec/unit/mutant/runner/config/subjects_spec.rb +++ b/spec/unit/mutant/runner/config/subjects_spec.rb @@ -5,7 +5,7 @@ describe Mutant::Runner::Config, '#subjects' do subject { object.subjects } - let(:config) do + let(:config) do mock( 'Config', :subjects => [mutation_subject], diff --git a/spec/unit/mutant/runner/mutation/killer_spec.rb b/spec/unit/mutant/runner/mutation/killer_spec.rb index 0be83d8b..731218d3 100644 --- a/spec/unit/mutant/runner/mutation/killer_spec.rb +++ b/spec/unit/mutant/runner/mutation/killer_spec.rb @@ -5,8 +5,8 @@ describe Mutant::Runner::Mutation, '#killer' do let(:config) do mock( - 'Config', - :reporter => reporter, + 'Config', + :reporter => reporter, :strategy => strategy ) end @@ -17,7 +17,7 @@ describe Mutant::Runner::Mutation, '#killer' do let(:killer) { mock('Killer') } subject { object.killer } - + before do reporter.stub(:report => reporter) strategy.stub(:kill => killer)