[MacRuby] #1161: minitest + mocha + macruby == BOOM!
#1161: minitest + mocha + macruby == BOOM! --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: --------------------------------------+------------------------------------- This is a minimal repro of the problem. The code works fine under mri, and under both w/o mocha: {{{ require "rubygems" require "isolate" Isolate.now! :system => false do gem "minitest" gem "mocha" end gem "minitest" require "minitest/autorun" require "mocha" class QuickTest < MiniTest::Unit::TestCase def test_quick obj = mock("obj") end end }}} results in: {{{ uncaught Objective-C/C++ exception... 2011-02-14 15:13:05.129 macruby[98953:903] *** Terminating app due to uncaught exception 'NoMethodError', reason: '/Users/ryan/x/tmp/isolate/macruby-1.9.2/gems/minitest-2.0.2/lib/minitest/unit.rb:664:in `block': undefined method `run' for #<QuickTest:0x20083f880 ...> (NoMethodError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1161> MacRuby <http://macruby.org/>
#1161: minitest + mocha + macruby == BOOM! --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: --------------------------------------+------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: Seems to be related to the following line in mocha/integration/mini_test.rb: {{{ remove_method :run }}} Commenting that line seems to fix the problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/1161#comment:1> MacRuby <http://macruby.org/>
#1161: minitest + mocha + macruby == BOOM! --------------------------------------+------------------------------------- Reporter: ryand-ruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: --------------------------------------+------------------------------------- Comment(by leothompson@…): Some time before, I needed to buy a car for my firm but I didn't have enough money and couldn't purchase something. Thank heaven my fellow proposed to try to get the <a href="http://goodfinance-blog.com/topics /mortgage-loans">mortgage loans</a> at trustworthy bank. So, I did so and used to be happy with my student loan. -- Ticket URL: <http://www.macruby.org/trac/ticket/1161#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby