Skip to content

Commit

Permalink
Make have_file_content diffable
Browse files Browse the repository at this point in the history
Only if expected value is a string, to ensure existing behavior stays
the same.
  • Loading branch information
cllns committed May 3, 2018
1 parent 53741ea commit 3153f69
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 3153f69

Please sign in to comment.