From d05f7fde253015d6044f1ae3aba14543db7eaa4f Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 4 Apr 2014 16:30:16 +0000 Subject: [PATCH] Fix a test selection bug violating 1:1 principle --- lib/mutant/rspec/killer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mutant/rspec/killer.rb b/lib/mutant/rspec/killer.rb index 1c368b7c..fc8c0c05 100644 --- a/lib/mutant/rspec/killer.rb +++ b/lib/mutant/rspec/killer.rb @@ -67,7 +67,7 @@ module Mutant # def find_with(match_expression) all_example_groups.select do |example_group| - example_group.description.start_with?(match_expression) + example_group.description == match_expression end end