diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-04-19 13:46:33 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-04-19 13:46:33 -0700 |
| commit | 0d1e81948fb4c5430714d63a2e3ef66b32f98fad (patch) | |
| tree | b0d43c6b6cc32c8bf65897b91039ea58edecd57d /spec/unit/util | |
| parent | 485501a55e99b51cf8c9affa07a9f873a6cbc951 (diff) | |
| parent | 7d3c30323efa5c2de2282395bc4105fef8b19e50 (diff) | |
| download | puppet-0d1e81948fb4c5430714d63a2e3ef66b32f98fad.tar.gz puppet-0d1e81948fb4c5430714d63a2e3ef66b32f98fad.tar.xz puppet-0d1e81948fb4c5430714d63a2e3ef66b32f98fad.zip | |
Merge remote-tracking branch 'jamtur01/tickets/master/7166' into next
Diffstat (limited to 'spec/unit/util')
| -rwxr-xr-x | spec/unit/util/queue/stomp_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/unit/util/queue/stomp_spec.rb b/spec/unit/util/queue/stomp_spec.rb index f67189cf5..99c77d0b4 100755 --- a/spec/unit/util/queue/stomp_spec.rb +++ b/spec/unit/util/queue/stomp_spec.rb @@ -63,26 +63,26 @@ describe 'Puppet::Util::Queue::Stomp', :if => Puppet.features.stomp? do end end - describe "when sending a message" do + describe "when publishing a message" do before do @client = stub 'client' Stomp::Client.stubs(:new).returns @client @queue = Puppet::Util::Queue::Stomp.new end - it "should send it to the queue client instance" do - @client.expects(:send).with { |queue, msg, options| msg == "Smite!" } - @queue.send_message('fooqueue', 'Smite!') + it "should publish it to the queue client instance" do + @client.expects(:publish).with { |queue, msg, options| msg == "Smite!" } + @queue.publish_message('fooqueue', 'Smite!') end - it "should send it to the transformed queue name" do - @client.expects(:send).with { |queue, msg, options| queue == "/queue/fooqueue" } - @queue.send_message('fooqueue', 'Smite!') + it "should publish it to the transformed queue name" do + @client.expects(:publish).with { |queue, msg, options| queue == "/queue/fooqueue" } + @queue.publish_message('fooqueue', 'Smite!') end - it "should send it as a persistent message" do - @client.expects(:send).with { |queue, msg, options| options[:persistent] == true } - @queue.send_message('fooqueue', 'Smite!') + it "should publish it as a persistent message" do + @client.expects(:publish).with { |queue, msg, options| options[:persistent] == true } + @queue.publish_message('fooqueue', 'Smite!') end end |
