Created
June 17, 2011 04:15
-
-
Save jcrossley3/1030856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "#{File.dirname(__FILE__)}/../../twitter/spec/spec_helper" | |
require 'torquebox-core' | |
remote_describe "tweet consumption testing" do | |
# Necessary for injection in examples | |
include TorqueBox::Injectors | |
# Deploy our apps | |
deploy <<-END.gsub(/^ {4}/,'') | |
application: | |
root: #{File.dirname(__FILE__)}/.. | |
queues: | |
tweets: | |
environment: | |
USERNAME: "#{ENV['USERNAME']}" | |
PASSWORD: "#{ENV['PASSWORD']}" | |
END | |
it "should receive a message generated by the service" do | |
queue = inject_queue('tweets') | |
message = queue.receive(:timeout => 30000) | |
message.should_not be_nil | |
puts "", message.inspect, "" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment