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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -