Is it possible to test threads in RSpec? For example (FYI: Jukebox is a
module):
it "should have a current_song" do
thread = Thread.new do
Jukebox.play # forks a music process and waits till
completion
end
sleep 0.1
Jukebox.current_song.is_a?(Song)
end
If RSpec can't test threaded programs, any suggestions how threaded
programs can be tested?
Thanks!
James
--
Posted via http://www.ruby-forum.com/.