small medium large xlarge

Me_pragsmall
27 Mar 2015, 14:26
Fletcher Bonds (4 posts)

Chapter 2 Bottom of page 19

Line using should method

—> @output.should == expected_output

This results in a depreciation warning that appears in the middle of the cucumber output like so:

Examples: 
  | input | output |
   |DEPRECATION: Using `should` from rspec-...   2+2   | 4      |
  | 98+1  | 99     |

Solution was to replace should with expect like so:

—> expect(@output).to eq(expected_output)

Generic-user-small
07 Jul 2016, 05:12
Tim O'Connor (3 posts)

Thanks for posting this!

You must be logged in to comment