[MacRuby-devel] [MacRuby] #378: Macruby 0.5 allows instantiation of a Module instance
MacRuby
ruby-noreply at macosforge.org
Mon Oct 19 12:37:47 PDT 2009
#378: Macruby 0.5 allows instantiation of a Module instance
---------------------------------------+------------------------------------
Reporter: keith.gautreaux@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
---------------------------------------+------------------------------------
Comment(by eloy.de.enige@…):
Hey,
About writing specs, the rubyspec disallows the use of ‘should’. And it
should be enough to verify that calling #new results in a NoMethodError,
all the others should then fail as well. Also, if you want specify that an
exception is raised, you should do so inside a proc. For instance: lambda
{ Fred.new }.should raise_error(NoMethodError). (For more info see the
rubyspec wiki.)
However, the rubyspec is about specifying what actually _does_ work on
MRI, not about what doesn't. For these cases we have the test_vm test
suite. In fact there was already a failing test similar to this case.
Nonetheless I've added an extra failing test, based on your example, in
r2851.
Thanks.
--
Ticket URL: <http://www.macruby.org/trac/ticket/378#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list