From 6a935fecf0e22e24c8362cf4579d1da44f61a62d Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 7 Dec 2012 19:06:56 +0100 Subject: [PATCH] Expand foo= to foo_writer_spec.rb in dm-2 strategy --- lib/mutant/strategy/rspec/example_lookup.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mutant/strategy/rspec/example_lookup.rb b/lib/mutant/strategy/rspec/example_lookup.rb index bdb77fef..52439c69 100644 --- a/lib/mutant/strategy/rspec/example_lookup.rb +++ b/lib/mutant/strategy/rspec/example_lookup.rb @@ -65,6 +65,7 @@ module Mutant def spec_file matcher.method_name.to_s. gsub(/\?\z/, '_predicate'). + gsub(/\=\z/, '_writer'). gsub(/!\z/, '_bang') + '_spec.rb' end memoize :spec_file