Sha256: 2283134e1ee99773e8c81f607b92fec9d17539f1db26ad44f445a4a45778ee74

Contents?: true

Size: 347 Bytes

Versions: 23

Compression:

Stored size: 347 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator, 'nthref' do
  context '$1' do
    let(:source)    { '$1' }
    let(:mutations) { ['$2', '$0']   }

    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

23 entries across 23 versions & 1 rubygems

Version Path
mutant-0.5.10 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.9 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.8 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.7 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.6 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.5 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.4 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.3 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.2 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.1 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.5.0 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.6 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.5 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.4 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.3 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.2 spec/unit/mutant/mutator/node/nthref_spec.rb
mutant-0.3.1 spec/unit/mutant/mutator/node/nthref/mutation_spec.rb
mutant-0.3.0 spec/unit/mutant/mutator/node/nthref/mutation_spec.rb
mutant-0.3.0.rc5 spec/unit/mutant/mutator/node/nthref/mutation_spec.rb
mutant-0.3.0.rc4 spec/unit/mutant/mutator/node/nthref/mutation_spec.rb