Skip to content

Commit

Permalink
Merge pull request #562 from cllns/make-have-file-content-diffable
Browse files Browse the repository at this point in the history
Make have_file_content diffable
  • Loading branch information
xtrasimplicity authored May 14, 2018
2 parents 53741ea + 3153f69 commit 7d32b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/aruba/matchers/file/have_file_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
values_match?(@expected, @actual)
end

diffable if expected.is_a? String

description { "have file content: #{description_of expected}" }
end

Expand Down

0 comments on commit 7d32b8e

Please sign in to comment.