Skip to content

Commit

Permalink
Fixed failure messages for file size matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Günnewig authored and maxmeyer committed May 11, 2015
1 parent e421d33 commit 2a15b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aruba/matchers/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@
end

failure_message do |actual|
format("expected that file \"%s\" has size \"%s\"", actual)
format("expected that file \"%s\" has size \"%s\", but has \"%s\"", actual, File.size(expand_path(actual)), expected)
end

failure_message_when_negated do |actual|
format("expected that file \"%s\" does not have size \"%s\"", actual)
format("expected that file \"%s\" does not have size \"%s\", but has \"%s\"", actual, File.size(expand_path(actual)), expected)
end
end

0 comments on commit 2a15b76

Please sign in to comment.