Correct method expansion

This commit is contained in:
Markus Schirp 2012-12-07 17:00:31 +01:00
parent 7be00708b6
commit ef25d84326

View file

@ -62,8 +62,8 @@ module Mutant
#
def spec_file
matcher.method_name.to_s.
gsub(/\?\z/, 'predicate').
gsub(/!\z/, 'bang') + '_spec.rb'
gsub(/\?\z/, '_predicate').
gsub(/!\z/, '_bang') + '_spec.rb'
end
memoize :spec_file