OSDN Git Service
(root)
/
twpd
/
master.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44e7a50
)
Regular updates
author
Erik
<erikgronwal@users.osdn.me>
Thu, 7 Apr 2022 14:55:05 +0000
(23:55 +0900)
committer
Erik
<erikgronwal@users.osdn.me>
Thu, 7 Apr 2022 14:55:05 +0000
(23:55 +0900)
rspec.md
patch
|
blob
|
history
diff --git
a/rspec.md
b/rspec.md
index
9c4301f
..
415b4cc
100644
(file)
--- a/
rspec.md
+++ b/
rspec.md
@@
-79,6
+79,14
@@
expect(5).to be_between(1, 10)
expect(5).to be_within(0.05).of value
```
+### Compound expectations
+
+```rb
+expect(1).to (be < 2).or be > 5
+```
+
+Use `or`/`and` to string multiple matchers together. See: [Compound expectations](https://relishapp.com/rspec/rspec-expectations/docs/compound-expectations)
+
### Comparison
```rb