ruby - how "expect(9).to be > 6" is valid expression? -
in rspec doc, found looking strange like
expect(9).to > 6
i have no idea how above expression can valid.
how can >
come this? search rspec github, found no clue.
it's equivalent to
expect(9).to(be > 6)
which equivalent to:
expect(9).to(be.>(6))
Comments
Post a Comment