Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 848fcb4

Browse files
adimasuhidmyronmarston
authored andcommitted
Update Should.md to suggest is_expected in one-liners (#1061)
1 parent 20788e1 commit 848fcb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Should.md

+8
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ describe User do
4343
end
4444
```
4545

46+
It can also be expressed with the `is_expected` syntax:
47+
48+
```ruby
49+
describe User do
50+
it { is_expected.to validate_presence_of :email }
51+
end
52+
```
53+
4654
### Using either `expect` or `should` or both
4755

4856
By default, both `expect` and `should` syntaxes are available. In the future,

0 commit comments

Comments
 (0)