Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a test for a non-existent method #3

Open
NullVoxPopuli opened this issue Jul 10, 2016 · 2 comments
Open

Need a test for a non-existent method #3

NullVoxPopuli opened this issue Jul 10, 2016 · 2 comments

Comments

@NullVoxPopuli
Copy link

NullVoxPopuli commented Jul 10, 2016

might be possible to infini-loop, as is.

@rickr
Copy link
Owner

rickr commented Jul 11, 2016

Can you include an example?

@NullVoxPopuli
Copy link
Author

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants