Add mutation from #method to #public_method

Closes #509
This commit is contained in:
John Backus 2016-02-06 01:59:49 -08:00
parent 0cd0f26140
commit abfa49d0a5
2 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,7 @@ module Mutant
map: %i[each],
send: %i[public_send __send__],
__send__: %i[public_send],
method: %i[public_method],
gsub: %i[sub],
eql?: %i[equal?],
to_s: %i[to_str],

View file

@ -40,6 +40,17 @@ Mutant::Meta::Example.add do
mutation 'self.const_get(bar)'
end
Mutant::Meta::Example.add do
source 'method(bar)'
singleton_mutations
mutation 'public_method(bar)'
mutation 'method'
mutation 'bar'
mutation 'method(nil)'
mutation 'method(self)'
end
Mutant::Meta::Example.add do
source 'a >= b'