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

17 lines
309 B
Ruby

require 'spec_helper'
describe Mutant::Mutator::Literal, 'fixnum' do
let(:random_fixnum) { 5 }
let(:source) { '10' }
let(:mutations) do
%W(nil 0 1 #{random_fixnum}) << [:lit, -10]
end
before do
Mutant::Random.stub(:fixnum => random_fixnum)
end
it_should_behave_like 'a mutator'
end