From: James Lavin Date: 2011-09-01T04:49:41+09:00 Subject: Re: Testing threads in RSpec One issue could be scoping. Can the main thread see into the named thread? Do I need to reference Jukebox in the main thread before playing it in the named thread? it "should have a current_song" do jj = Jukebox thread = Thread.new do jj.play_once end sleep 0.1 jj.current_song.is_a?(Song) end I'll test and report back. -- Posted via http://www.ruby-forum.com/.