[MacRuby-devel] Shoulda incompatible with MacRuby
Morgan Schweers
cyberfox at gmail.com
Sat Mar 19 19:43:42 PDT 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110319/24c8be38/attachment.html>
More information about the MacRuby-devel
mailing list