Skip to content

Instantly share code, notes, and snippets.

@jcrossley3
Created October 1, 2010 19:58
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jcrossley3/606761 to your computer and use it in GitHub Desktop.
it "should be able to publish to and receive from a topic" do
topic = TorqueBox::Messaging::Topic.new "/topics/foo"
topic.start
t1 = Thread.new { topic.publish "howdy"; puts "JC: published" }
message = topic.receive
topic.destroy
message.should eql( "howdy" )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment