Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Clarify how to use the custom assertions message (AdevintaSpain#257)
Browse files Browse the repository at this point in the history
* Clarify how to use the custom assertions message

* Give only one example of the assertion description because it's enough
  • Loading branch information
rocboronat authored Oct 22, 2018
1 parent c856e9c commit af1357b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ assertAny<Progressbar>(withId(R.id.progressBar)) {
it.progress == 42
}

// You can also define the assertion error message that will be shown if the assertion fails
assertAny<TextView>(R.id.textView, "text wasn't Hello!") {
it.text.toString() == "Hello!"
// You can also define the assertion description that will be shown if the assertion fails
assertAny<RadioGroup>(R.id.radioGroup, "selected option is the second one") {
it.checkedRadioButtonId == R.id.option1
}
```

Expand Down

0 comments on commit af1357b

Please sign in to comment.