Sha256: 076606e11e447d36534ee40bd6a4685913073dcc83108cfe36911cbe4511a1ef

Contents?: true

Size: 478 Bytes

Versions: 7

Compression:

Stored size: 478 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'a mutator'
end

Version data entries

7 entries across 7 versions & 1 rubygems

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