[rspec-devel] [ rspec-Bugs-13433 ] RSpec hangs when used with QtRuby

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 18 23:08:53 EST 2007


Bugs item #13433, was opened at 2007-08-27 15:30
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13433&group_id=797

Category: mock module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Stefano Crocco (stcrocco)
Assigned to: Nobody (None)
Summary: RSpec hangs when used with QtRuby

Initial Comment:
Creating mocks/stubs for a method called 'type' and requiring (even if not actually using) QtRuby makes spec (or rake, when using the Spec task) hang indefinitly. This doesn't happen when mocking any other method or when using a mocking framework different from RSpec's default framework (at least, it works using flexmock).

This is the smallest piece of code which causes the problem:

require 'Qt4'

describe 'something' do

  it 'should work passing the :type parameter' do
    m = mock('test')
    m.should_receive(:type)
  end

end

The attached file contains the backtrace obtained running spec -b on the file prova.rb containing the above code (obtained after using Ctrl+C to stop spec after it hangs).

System description:

gentoo linux (kernel 2.6.21-gentoo-r3)
ruby: ruby 1.8.6 (2007-06-07 patchlevel 36)
rspec: RSpec-1.0.8 (r2338) (gem) (RSpec 1.0.5 didn't cause this problem)
Qt: 4.3.1 open source or Qt 3.3.8 (the problem happens with both qt3 and qt4)
QtRuby: 1.4.9 (for Qt4) and Korundum 3.5.5 (for KDE/Qt3)



----------------------------------------------------------------------

Comment By: Chad Humphries (spicycode)
Date: 2007-11-18 23:08

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/62-13433-rspec-hangs-when-used-with-qtruby#ticket-62-1



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=13433&group_id=797


More information about the rspec-devel mailing list