Expand foo= to foo_writer_spec.rb in dm-2 strategy

This commit is contained in:
Markus Schirp 2012-12-07 19:06:56 +01:00
parent 3fc07deaff
commit 6a935fecf0

View file

@ -65,6 +65,7 @@ module Mutant
def spec_file def spec_file
matcher.method_name.to_s. matcher.method_name.to_s.
gsub(/\?\z/, '_predicate'). gsub(/\?\z/, '_predicate').
gsub(/\=\z/, '_writer').
gsub(/!\z/, '_bang') + '_spec.rb' gsub(/!\z/, '_bang') + '_spec.rb'
end end
memoize :spec_file memoize :spec_file