2012-08-01 13:27:35 +02:00
|
|
|
# This file is the sandbox for new mutations.
|
2012-08-01 13:30:08 +02:00
|
|
|
# Once finished mutation test will be moved to class specfic
|
2012-08-01 13:27:35 +02:00
|
|
|
# file.
|
2012-07-27 22:39:31 +02:00
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2012-07-31 04:00:05 +02:00
|
|
|
describe Mutant::Mutator, '.each' do
|
2012-10-26 13:12:42 +02:00
|
|
|
|
2012-08-01 13:27:35 +02:00
|
|
|
pending 'interpolated string literal (DynamicString)' do
|
|
|
|
let(:source) { '"foo#{1}bar"' }
|
2012-07-27 22:39:31 +02:00
|
|
|
|
2012-10-26 13:12:42 +02:00
|
|
|
let(:random_string) { 'this-is-random' }
|
|
|
|
|
2012-07-27 22:39:31 +02:00
|
|
|
let(:mutations) do
|
2012-07-31 04:00:05 +02:00
|
|
|
mutations = []
|
|
|
|
mutations << 'nil'
|
2012-07-30 22:18:00 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
before do
|
2012-07-31 20:11:37 +02:00
|
|
|
Mutant::Random.stub(:hex_string => random_string)
|
2012-07-30 22:18:00 +02:00
|
|
|
end
|
|
|
|
|
2012-08-01 14:58:24 +02:00
|
|
|
it_should_behave_like 'a mutator'
|
2012-07-30 22:18:00 +02:00
|
|
|
end
|
2012-07-27 22:39:31 +02:00
|
|
|
end
|