Does rspec have anything more specific than target.should be < 6?

Viewed 21945

http://cheat.errtheblog.com/s/rspec/ has for inequalities (such as less than or greater than)

target.should be < 6

Has anything better been created since the cheat sheet was created?

3 Answers

In RSpec's new expectation syntax, you would express it as:

expect(target).to be < 6
Related