Skip to content

Commit

Permalink
Compare against expected value in RecyclerViewLayoutManagerAssert
Browse files Browse the repository at this point in the history
`RecyclerViewLayoutManagerAssert#hasMinimumHeight(int)` and `RecyclerViewLayoutManager#hasMinimumWidth(int)`
were comparing against the real value rather than the expected.
  • Loading branch information
MariusVolkhart committed Apr 4, 2016
1 parent 3fac7eb commit c9e1ef0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public RecyclerViewLayoutManagerAssert hasMinimumWidth(int width) {
int actualWidth = actual.getMinimumWidth();
assertThat(actualWidth) //
.overridingErrorMessage("Expected minimum width <%s> but was <%s>.", width, actualWidth) //
.isEqualTo(actualWidth);
.isEqualTo(width);
return this;
}

Expand All @@ -230,7 +230,7 @@ public RecyclerViewLayoutManagerAssert hasMinimumHeight(int height) {
assertThat(actualHeight) //
.overridingErrorMessage("Expected minimum height <%s> but was <%s>.", height,
actualHeight) //
.isEqualTo(actualHeight);
.isEqualTo(height);
return this;
}
}

0 comments on commit c9e1ef0

Please sign in to comment.