Commit MetaInfo

修订版465626572a38cdedf00f2b99eed1bd48228f5c12 (tree)
时间2022-04-07 23:55:05
作者Erik <erikgronwal@user...>
CommiterErik

Log Message

Regular updates

更改概述

差异

--- a/rspec.md
+++ b/rspec.md
@@ -79,6 +79,14 @@ expect(5).to be_between(1, 10)
7979 expect(5).to be_within(0.05).of value
8080 ```
8181
82+### Compound expectations
83+
84+```rb
85+expect(1).to (be < 2).or be > 5
86+```
87+
88+Use `or`/`and` to string multiple matchers together. See: [Compound expectations](https://relishapp.com/rspec/rspec-expectations/docs/compound-expectations)
89+
8290 ### Comparison
8391
8492 ```rb
Show on old repository browser