8 lines
213 B
Ruby
8 lines
213 B
Ruby
Mutant::Meta::Example.add :restarg do
|
|
source 'def foo(*bar); end'
|
|
|
|
mutation 'def foo; end'
|
|
mutation 'def foo(*bar); bar = []; end'
|
|
mutation 'def foo(*bar); raise; end'
|
|
mutation 'remove_method(:foo)'
|
|
end
|