diff options
| author | Teddy Wing | 2017-11-14 15:19:51 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-11-14 16:04:50 +0100 |
| commit | 081522bbd459742e81ba8733be2198622c92fb87 (patch) | |
| tree | 29a99eb3ae762ad700a0794bd3759f789e081692 /spec/support/with_commit.rb | |
| parent | d851ee1375aaaf2f3add1c48d75a0667b1b2bff5 (diff) | |
| download | chouette-core-081522bbd459742e81ba8733be2198622c92fb87.tar.bz2 | |
schema_spec: Move spec to a custom RSpec matcher
This enables us to add custom formatting to the failure message. For
now, the logic works the same way as before. The offending lines are
compared to an empty array and appear in the output. We're missing line
numbers. I think we'll want to actually compare to an entirely new
in-memory version of the schema ideally so that it can output the right
line numbers and corrections.
The differ is based on Alexey Shin's:
https://stackoverflow.com/questions/32477104/rspec-custom-diffable-matcher#32479025
Refs #4951
Diffstat (limited to 'spec/support/with_commit.rb')
0 files changed, 0 insertions, 0 deletions
