#75 new
James Mead

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

Reported by James Mead | November 25th, 2010 @ 05:08 PM

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.

* <a href="http://github.com/floehopper/mocha">GitHub repository</a>
* <a href="http://mocha.rubyforge.org">Documentation</a>
* <a href="http://groups.google.com/group/mocha-developer">Mailing List</a>

People watching this ticket

Pages