diff options
Diffstat (limited to 'spec/support/matchers.rb')
-rw-r--r-- | spec/support/matchers.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index c56aa56a00..18ccf38fb1 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -121,6 +121,14 @@ module Spec end end + RSpec::Matchers.define :be_well_formed do + match(&:empty?) + + failure_message do |actual| + actual.join("\n") + end + end + define_compound_matcher :read_as, [exist] do |file_contents| diffable |