16. Control flow


#1

Hey guys, I receive such error:

undefined method `be' for #

My results:

test_1 should be false
test_1 = 10 > 12

test_2 = should be false
test_2 = 100 == 10

test_3 = should be true
test_3 = 2 < 5


#2

You have to place

test_1 should be false

and the other ones under a comment section.

That is, use a # followed by those sentences. Otherwise, the Ruby interpreter is going to think you are trying to refer to some variable or operation.

In short, do:

# test_1 should be false
test_1 = 10 > 12

etc