In RSpec - how can I test if one attribute is less (or more) than another
It is generally recommended to use expect, not should.
For instance:
expect(@car.date_from).to be <= @car.date_till
Resources:- BetterSpecs examples- Rspec Docs
It is generally recommended to use expect, not should.
For instance:
expect(@car.date_from).to be <= @car.date_till
Resources:- BetterSpecs examples- Rspec Docs