Guest User

Untitled

a guest
Apr 28th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. require "#{File.dirname(__FILE__)}/../../twitter/spec/spec_helper"
  2. require 'torquebox-core'
  3.  
  4. remote_describe "tweet consumption testing" do
  5.  
  6. # Necessary for injection in examples
  7. include TorqueBox::Injectors
  8.  
  9. # Deploy our apps
  10. deploy <<-END.gsub(/^ {4}/,'')
  11. application:
  12. root: #{File.dirname(__FILE__)}/..
  13. queues:
  14. tweets:
  15. environment:
  16. USERNAME: "#{ENV['USERNAME']}"
  17. PASSWORD: "#{ENV['PASSWORD']}"
  18. END
  19.  
  20. it "should receive a message generated by the service" do
  21. queue = inject_queue('tweets')
  22. message = queue.receive(:timeout => 30000)
  23. message.should_not be_nil
  24. puts "", message.inspect, ""
  25. end
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment