Sha256: 87edfa0086b72f06051ffde30aa8f5ed9246da65e9a762f65bf33214068c1a74

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Mutant::Mutator::Node::Generic, 'match_current_line' do
  let(:source) { 'true if //' }

  let(:mutations) do
    mutations = []
    mutations << 'false if //'
    mutations << 'nil if //'
    mutations << 'true if true'
    mutations << 'true if false'
    mutations << 'true if nil'
    mutations << 'true if !//'
    mutations << 'true if /a\A/'
  end

  it_should_behave_like 'a mutator'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.3.0.rc1 spec/unit/mutant/mutator/node/match_current_line/mutation_spec.rb
mutant-0.3.0.beta22 spec/unit/mutant/mutator/node/match_current_line/mutation_spec.rb