Sha256: 414d06c458ae5e51b7929c51b9e2abbeb9576dc0c5c63a4882328ef9b0775b3a
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
require "integration/test_helper" require "azure/service_bus/topics" require "azure/service_bus/brokered_message" describe "Sending a Message to a Topic" do after do ServiceBusTopicNameHelper.clean end before do @topic = Azure::ServiceBus::Topics.create(ServiceBusTopicNameHelper.name) end it "should be able to send a message to a topic" do message = Azure::ServiceBus::BrokeredMessage.new("some text", :prop1 => "val1") do |m| m.to = "me" m.label = 'my_label' end res = Azure::ServiceBus::Topics.send_message_to_topic(@topic, 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/topics/send_message_to_topic_test.rb |
azure-0.1.0 | test/integration/service_bus/topics/send_message_to_topic_test.rb |