From 5a2f71abec9bf52571fa5430747700eb63d7f386 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Thu, 6 Dec 2012 19:51:44 +0100 Subject: [PATCH] Fix shared mutator spec failure reporting --- spec/shared/mutator_behavior.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/shared/mutator_behavior.rb b/spec/shared/mutator_behavior.rb index 429a73ef..78c41aea 100644 --- a/spec/shared/mutator_behavior.rb +++ b/spec/shared/mutator_behavior.rb @@ -29,7 +29,7 @@ shared_examples_for 'a mutator' do generated = self.subject.map(&:to_sexp).to_set missing = (expected_mutations - generated).to_a - unexpected = (generated - generated).to_a + unexpected = (generated - expected_mutations).to_a unless generated == expected_mutations message = "Missing mutations: %s\nUnexpected mutations: %s" % [missing, unexpected].map(&:inspect)