Sha256: ed266ca5e8d6eb76d5e85449b2150e0db0c190bb700d2f58b8ad584b9bd12704
Contents?: true
Size: 540 Bytes
Versions: 15
Compression:
Stored size: 540 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 << s(:if, s(:send, s(:match_current_line, s(:regexp, s(:regopt))), :!), s(:true), nil) mutations << 'true if /a\A/' mutations << 'nil' end it_should_behave_like 'a mutator' end
Version data entries
15 entries across 15 versions & 1 rubygems