#75 new
James Mead

MacRuby does not allow native (Objective-C) methods to be undefined

Reported by James Mead | 2010-11-25 17:08:34 UTC

Mocha currently undefines existing methods on a Mock so it can use method_missing. However this does not work for native methods in MacRuby.

See this commit and this gist by alloy for details of the problem and a suggested solution.

I wonder whether this would be better handled by inheriting Mock from BasicObject in Ruby 1.9 and a BlankSlate implementation in Ruby 1.8. Also see this related ticket.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A mocking & stubbing library for Ruby.

* GitHub repository
* Documentation
* Mailing List

People watching this ticket

Pages