free_mutant/spec/unit/mutant/mutator_spec.rb
Markus Schirp 9edb375ef3 Use more modern spec layout
* This specs still have spec per method granularity
* But one file specs multiple methods
* Compatible with mutant spec selector
* Deduplicates boilerplate unit setup
2013-12-29 23:29:58 +01:00

29 lines
583 B
Ruby

# encoding: utf-8
# This file is the sandbox for new mutations.
# Once finished mutation test will be moved to class specfic
# file.
require 'spec_helper'
describe Mutant::Mutator do
describe '.each' do
pending 'interpolated string literal (DynamicString)' do
let(:source) { '"foo#{1}bar"' }
let(:random_string) { 'this-is-random' }
let(:mutations) do
mutations = []
mutations << 'nil'
end
before do
Mutant::Random.stub(hex_string: random_string)
end
it_should_behave_like 'a mutator'
end
end
end