From ef25d8432683acffcac97754ff096274de7d3590 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 7 Dec 2012 17:00:31 +0100 Subject: [PATCH] Correct method expansion --- lib/mutant/strategy/rspec/example_lookup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mutant/strategy/rspec/example_lookup.rb b/lib/mutant/strategy/rspec/example_lookup.rb index 914f17bc..f19be474 100644 --- a/lib/mutant/strategy/rspec/example_lookup.rb +++ b/lib/mutant/strategy/rspec/example_lookup.rb @@ -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