Sha256: c381a469ab37c0dbc57d62a2a41810dc994406a386c85d24dca2ef8b62dc7055
Contents?: true
Size: 475 Bytes
Versions: 18
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' describe Mutant::Mutator::Node::Literal, 'regex' do let(:random_string) { 'bar' } let(:source) { '/foo/' } let(:base_mutations) do mutations = [] mutations << 'nil' mutations << "/#{random_string}/" mutations << '//' # match all mutations << '/a\A/' # match nothing end before do Mutant::Random.stub(:hex_string => random_string) end let(:mutations) { base_mutations } it_should_behave_like 'a mutator' end
Version data entries
18 entries across 18 versions & 1 rubygems