free_mutant/spec/unit/mutant/mutator/each_spec.rb

28 lines
543 B
Ruby
Raw Normal View History

# encoding: utf-8
# 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
# file.
require 'spec_helper'
describe Mutant::Mutator, '.each' do
2012-10-26 07:12:42 -04:00
pending 'interpolated string literal (DynamicString)' do
let(:source) { '"foo#{1}bar"' }
2012-10-26 07:12:42 -04:00
let(:random_string) { 'this-is-random' }
let(:mutations) do
mutations = []
mutations << 'nil'
end
before do
Mutant::Random.stub(:hex_string => random_string)
end
2012-08-01 08:58:24 -04:00
it_should_behave_like 'a mutator'
end
end