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