Sha256: 14f6705035d9dbe76b7106e2124be299376241651b4245ede415ea8ac03137ec

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

require "integration/test_helper"
require "azure/service_bus/queues"
require "azure/service_bus/brokered_message"

describe "Sending a Message to a Queue" do

  after do
    ServiceBusQueueNameHelper.clean
  end

  before do
    @queue = Azure::ServiceBus::Queues.create(ServiceBusQueueNameHelper.name)
  end

  it "should be able to send a message to a queue" do
    message = Azure::ServiceBus::BrokeredMessage.new("some text") do |m|
      m.to = "yo"
    end
    res = Azure::ServiceBus::Queues.send_message_to_queue(@queue, message)
    res.must_equal true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 test/integration/service_bus/queues/send_message_to_queue_test.rb
azure-0.1.0 test/integration/service_bus/queues/send_message_to_queue_test.rb