You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements ac3. You have an instance variable ‘@result’ and you want to use an Repec-based assertion to test the value of ‘@result’ with an argument identified as ‘expected_output’ in a Then Step. Which of the following statements accomplish this for you?complish this for you?
1.expect(@result) eq expect(executed_output)
2.expect(@result).eq executed_output
3.expect(@result).to eq executed_output
4.expect(@result) = expect(executed_output)
Posted Date:-2022-11-18 11:12:25