Question: THIS IS RUBY ON RAILS QUESTION, PLEASE IF YOU KNOW YOUR ANSWER IS 100% IS CORRECT ANSWER IT OTHERWISE DON'T ANSWER THANK YOU PLEASE WRITE

THIS IS RUBY ON RAILS QUESTION, PLEASE IF YOU KNOW YOUR ANSWER IS 100% IS CORRECT ANSWER IT OTHERWISE DON'T ANSWER THANK YOU

PLEASE WRITE DOWN IN BOTTOM WHICH ANSWER IS CORRECT (a, b , c or d) and explain it.

4)expect((1..5).to_a).to have(5).red_pencils

a. will obviously fail, since integers are not red_pencils

b. will pass only if we have defined red_pencils method somewhere in our code

c. will throw a NoRedPencil exception

d. will pass just fine and print out a nice message when run in the documentation format

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!