RSpec Comparison Operators
You can use comparison operators like <
, <=
, >
, and >=
(and more!) in rspec tests:
RSpec.describe "Comparison Operators" do
it do
expect(5).to be < 7
expect(5).to be >= 5
end
end
Tweet