free_mutant/spec/unit/mutant/mutator/node/nthref_spec.rb

20 lines
341 B
Ruby
Raw Normal View History

2013-08-02 19:36:13 -04:00
# encoding: utf-8
require 'spec_helper'
describe Mutant::Mutator, 'nthref' do
context '$1' do
2014-04-20 18:05:57 -04:00
let(:source) { '$1' }
let(:mutations) { ['$2'] }
2013-08-02 19:36:13 -04:00
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