2018-11-29 17:07:24 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add :block, :lambda do
|
|
|
|
source '->() {}'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
|
|
|
|
mutation '->() { raise }'
|
|
|
|
end
|
2018-12-23 19:50:19 -05:00
|
|
|
|
|
|
|
Mutant::Meta::Example.add :block, :lambda do
|
|
|
|
source '->() { foo.bar }'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
|
|
|
|
mutation '->() { }'
|
|
|
|
mutation '->() { self }'
|
|
|
|
mutation '->() { nil }'
|
|
|
|
mutation '->() { raise }'
|
|
|
|
mutation '->() { self.bar }'
|
|
|
|
mutation '->() { foo }'
|
|
|
|
mutation 'foo.bar'
|
|
|
|
end
|