Fix shared mutator spec failure reporting

This commit is contained in:
Markus Schirp 2012-12-06 19:51:44 +01:00
parent cf2d685dfc
commit 5a2f71abec

View file

@ -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)