require 'spec_helper'

describe Mutant::Mutator::Node::Literal, 'nil' do
  let(:source) { 'nil' }

  let(:mutations) do
    [ '::Object.new' ]
  end

  it_should_behave_like 'a mutator'
end

require 'spec_helper'

describe Mutant::Mutator::Node::Literal, 'nil' do
  let(:source) { 'nil' }

  let(:mutations) do
    mutations = []

    mutations << 'Object.new'
  end

  it_should_behave_like 'a mutator'
end

--- 
+++ 
@@ -4,9 +4,7 @@
   let(:source) { 'nil' }
 
   let(:mutations) do
-    mutations = []
-
-    mutations << 'Object.new'
+    [ '::Object.new' ]
   end
 
   it_should_behave_like 'a mutator'
Fix literal nil mutator specs
