Add mutations from #to_a => #to_set

Fixes #497
This commit is contained in:
Devon Kristine Zuegel 2016-02-05 22:36:01 -08:00
parent b1854ef061
commit 7f351fdb6a
2 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,7 @@ module Mutant
eql?: %i[equal?],
to_s: %i[to_str],
to_i: %i[to_int],
to_a: %i[to_ary],
to_a: %i[to_ary to_set],
to_h: %i[to_hash],
at: %i[fetch key?],
fetch: %i[key?],

View file

@ -144,6 +144,7 @@ Mutant::Meta::Example.add do
mutation 'foo'
mutation 'self.to_a'
mutation 'foo.to_ary'
mutation 'foo.to_set'
end
Mutant::Meta::Example.add do