#378: Macruby 0.5 allows instantiation of a Module instance
---------------------------------------+------------------------------------
 Reporter:  keith.gautre...@…          |       Owner:  lsansone...@…        
     Type:  defect                     |      Status:  new                  
 Priority:  minor                      |   Milestone:  MacRuby 0.5          
Component:  MacRuby                    |    Keywords:                       
---------------------------------------+------------------------------------

Comment(by eloy.de.en...@…):

 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/>

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to