trumpify icon indicating copy to clipboard operation
trumpify copied to clipboard

Need a test for a non-existent method

Open NullVoxPopuli opened this issue 9 years ago • 2 comments

might be possible to infini-loop, as is.

NullVoxPopuli avatar Jul 10 '16 02:07 NullVoxPopuli

Can you include an example?

rickr avatar Jul 11 '16 18:07 rickr

  test "calls super's method_missing on non-existent method"
    err = ->{ 'hairpiece'.make_america_great_again('') }.must_raise NoMethodError
    err.message.must_match /undefined method `america/
  end

NullVoxPopuli avatar Jul 11 '16 23:07 NullVoxPopuli