summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/queue/stomp_spec.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-04-19 15:34:31 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-04-19 15:34:31 -0700
commit8a3071caf4e470ca9dcb9d3a0f80218ee9a8ebb7 (patch)
treed7e7255721198e391f916379912dc6c1bc9410ea /spec/unit/util/queue/stomp_spec.rb
parent40a5bca736a31784d341aef389edfdde915938ec (diff)
parentc87d6c98ec1a315d435be38e7eb2258984c7d88c (diff)
downloadpuppet-8a3071caf4e470ca9dcb9d3a0f80218ee9a8ebb7.tar.gz
puppet-8a3071caf4e470ca9dcb9d3a0f80218ee9a8ebb7.tar.xz
puppet-8a3071caf4e470ca9dcb9d3a0f80218ee9a8ebb7.zip
Merge branch 'ticket/2.7.x/7166' into 2.7.x
Diffstat (limited to 'spec/unit/util/queue/stomp_spec.rb')
-rwxr-xr-xspec/unit/util/queue/stomp_spec.rb20
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