Sha256: c6842f5f14db0a3a87f432eafa3c31d0add17ac5cb734ba0e7032a9a7835a035
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
# Put config.yml file in ~/Dropbox/configs/ironmq_gem/test/config.yml gem 'test-unit' require 'test/unit' require 'yaml' begin require File.join(File.dirname(__FILE__), '../lib/ironmq') rescue Exception => ex puts "Could NOT load current ironmq: " + ex.message raise ex end class IronMQTests < Test::Unit::TestCase def setup puts 'setup' @config = YAML::load_file(File.expand_path(File.join("~", "Dropbox", "configs", "ironmq_gem", "test", "config.yml"))) @client = IronMQ::Client.new(@config['ironmq']) @client.queue_name = 'ironmq-gem-tests' end def test_basics res = @client.messages.post("hello world!") p res res = @client.messages.get() p res res = @client.messages.delete(res["id"]) p res end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ironmq-1.2.2 | test/ironmq_tests.rb |
ironmq-1.2.1 | test/ironmq_tests.rb |