Sha256: 7dccd5f2345160c0dd2eac543aec0a60fb043bab23363ea71d36e04aced6e216

Contents?: true

Size: 809 Bytes

Versions: 3

Compression:

Stored size: 809 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.logger.level = Logger::DEBUG
    @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

3 entries across 3 versions & 1 rubygems

Version Path
ironmq-1.2.5 test/ironmq_tests.rb
ironmq-1.2.4 test/ironmq_tests.rb
ironmq-1.2.3 test/ironmq_tests.rb