free_mutant/spec/unit/mutant/mutator/node/nthref_spec.rb
2014-04-20 22:06:37 +00:00

19 lines
341 B
Ruby

# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator, 'nthref' do
context '$1' do
let(:source) { '$1' }
let(:mutations) { ['$2'] }
it_should_behave_like 'a mutator'
end
context '$2' do
let(:source) { '$2' }
let(:mutations) { ['$3', '$1'] }
it_should_behave_like 'a mutator'
end
end