Let's say x
should be bigger than y
. How do I encode this in rspec?
Using rspec 2.14 and the expectation syntax, this can be expressed like this:
expect(x).to be > y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With