spec/validator_run_matcher.rb in genomer-plugin-validate-0.0.1 vs spec/validator_run_matcher.rb in genomer-plugin-validate-0.0.2
- old
+ new
@@ -14,11 +14,11 @@
diffable
end
RSpec::Matchers.define :return_errors_for do |annotations,errors|
match do
- @actual = errors_for(actual,annotations)
- @expected = errors
+ @actual = errors_for(actual,annotations).sort
+ @expected = errors.sort
actual == expected
end
diffable
end