free_mutant/spec/unit/mutant/mutator/literal/string_spec.rb
2012-08-01 14:58:24 +02:00

17 lines
303 B
Ruby

require 'spec_helper'
describe Mutant::Mutator::Literal, 'string' do
let(:random_string) { 'bar' }
let(:source) { '"foo"' }
let(:mutations) do
%W(nil "#{random_string}")
end
before do
Mutant::Random.stub(:hex_string => random_string)
end
it_should_behave_like 'a mutator'
end