Skip to content

Commit

Permalink
Update docs for the Truth migration from an actual() method to an `…
Browse files Browse the repository at this point in the history
…actual` field.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=250982073
  • Loading branch information
cpovirk authored and ronshapiro committed Jun 12, 2019
1 parent 266ffcc commit 9dc8eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/bugpattern/ChainedAssertionLosesContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Before:
```
class MyProtoSubject {
public void hasFoo(Foo expected) {
assertThat(actual().foo()).isEqualTo(expected);
assertThat(actual.foo()).isEqualTo(expected);
}
}
```
Expand All @@ -16,7 +16,7 @@ After:
```
class MyProtoSubject {
public void hasFoo(Foo expected) {
check("foo()").that(actual().foo()).isEqualTo(expected);
check("foo()").that(actual.foo()).isEqualTo(expected);
}
}
```
Expand Down

0 comments on commit 9dc8eaf

Please sign in to comment.