Skip to content

Commit

Permalink
Compare against expected value in ToastAssert#hasGravity(int)
Browse files Browse the repository at this point in the history
`ToastAssert#hasGravity(int)` was comparing against the real value instead of
the expected value.
  • Loading branch information
MariusVolkhart committed Apr 4, 2016
1 parent e2065c0 commit fbc8801
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ToastAssert hasGravity(int gravity) {
int actualGravity = actual.getGravity();
assertThat(actualGravity) //
.overridingErrorMessage("Expected gravity <%s> but was <%s>.", gravity, actualGravity) //
.isEqualTo(actualGravity);
.isEqualTo(gravity);
return this;
}

Expand Down

0 comments on commit fbc8801

Please sign in to comment.