Skip to content

Commit

Permalink
fail_with_message: Switch expect/actual in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmire committed Dec 31, 2015
1 parent 6d47528 commit 6a48715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/unit/matchers/fail_with_message_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def failure_message
lines << Shoulda::Matchers::Util.indent(@actual, 2)
lines << "Diff:"
lines << Shoulda::Matchers::Util.indent(
differ.diff(expected, @actual)[1..-1],
differ.diff(@actual, expected)[1..-1],
2
)
else
Expand Down

0 comments on commit 6a48715

Please sign in to comment.