Sha256: 1c84edb8dd91bc7bf60c275ddb092b132044ba56daef79729c1949e839d184c9
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
require "test_helper" require "azure/service_bus/queues/queue" require "time" require "uri" describe Azure::ServiceBus::Queues::Queue do describe ".from_node" do let :node do Nokogiri::XML(Fixtures[:sb_default_create_queue_response]).remove_namespaces! end subject do Azure::ServiceBus::Queues::Queue.from_node(node) end it "parses the node and gets the correct values for each attribute" do subject.id.must_equal URI("https://gmonfort.servicebus.windows.net/gfyhfiwdqg") subject.title.must_equal "gfyhfiwdqg" subject.published.must_equal Time.parse("2012-06-06T05:00:06Z") subject.updated.must_equal Time.parse("2012-06-06T05:00:06Z") subject.author_name.must_equal "gmonfort" subject.description.must_be :kind_of?, Hash subject.description.size.must_equal 11 subject.description["LockDuration"].must_equal "PT1M" subject.description["MaxSizeInMegabytes"].must_equal "1024" subject.description["RequiresDuplicateDetection"].must_equal "false" subject.description["RequiresSession"].must_equal "false" subject.description["DefaultMessageTimeToLive"].must_equal "P10675199DT2H48M5.4775807S" subject.description["DeadLetteringOnMessageExpiration"].must_equal "false" subject.description["DuplicateDetectionHistoryTimeWindow"].must_equal "PT10M" subject.description["MaxDeliveryCount"].must_equal "10" subject.description["EnableBatchedOperations"].must_equal "true" subject.description["SizeInBytes"].must_equal "0" subject.description["MessageCount"].must_equal "0" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
azure-0.1.1 | test/unit/service_bus/queues/queue_test.rb |
azure-0.1.0 | test/unit/service_bus/queues/queue_test.rb |