Fix shared mutator spec failure reporting
This commit is contained in:
parent
cf2d685dfc
commit
5a2f71abec
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ shared_examples_for 'a mutator' do
|
||||||
generated = self.subject.map(&:to_sexp).to_set
|
generated = self.subject.map(&:to_sexp).to_set
|
||||||
|
|
||||||
missing = (expected_mutations - generated).to_a
|
missing = (expected_mutations - generated).to_a
|
||||||
unexpected = (generated - generated).to_a
|
unexpected = (generated - expected_mutations).to_a
|
||||||
|
|
||||||
unless generated == expected_mutations
|
unless generated == expected_mutations
|
||||||
message = "Missing mutations: %s\nUnexpected mutations: %s" % [missing, unexpected].map(&:inspect)
|
message = "Missing mutations: %s\nUnexpected mutations: %s" % [missing, unexpected].map(&:inspect)
|
||||||
|
|
Loading…
Reference in a new issue