[MacRuby-devel] Shoulda incompatible with MacRuby
Eloy Duran
eloy.de.enige at gmail.com
Sun Mar 20 14:51:44 PDT 2011
There's a ticket for that problem: http://www.macruby.org/trac/ticket/336, so it should be fixed, at some point :)
On 20 mrt 2011, at 03:43, Morgan Schweers wrote:
> Greetings,
> Shoulda defines tests via:
>
> test_name = ["test: ", full_name, "should", "#{should[:name]}. "].flatten.join(' ').to_sym
> test_unit_class.send(:define_method, test_name) do
> .
> .
> .
> end
>
> which fails because the ':' is treated as a selector part of the function name...
>
> I've patched it in my gem, for now... I'm not sure what the right answer is; maybe a patch for Shoulda that eliminates the ':' when running in MacRuby.
>
> -- Morgan
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110320/612e4b94/attachment.html>
More information about the MacRuby-devel
mailing list