Sha256: 0e24b60e296d8bfac743bbd7f29943cc1d36e343ded87227fb6c834d382ebfec

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

# 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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.5.17 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.16 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.15 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.14 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.13 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.12 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.11 spec/unit/mutant/mutator/node/nthref_spec.rb