danielsdeleo-moqueue 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -4
- data/VERSION.yml +1 -1
- data/lib/moqueue/mock_queue.rb +4 -0
- data/moqueue.gemspec +1 -1
- data/spec/unit/mock_queue_spec.rb +5 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -44,10 +44,8 @@ What's not working:
|
|
44
44
|
|
45
45
|
There are some things that Moqueue may never be able to do. As one prominent example, for queues that are configured to expect acknowledgements (the <tt>:ack=>true</tt> option), the behavior on shutdown is not emulated correctly.
|
46
46
|
|
47
|
-
==
|
48
|
-
|
49
|
-
* Support for RPC exchanges
|
50
|
-
* Make it pretty on the inside.
|
47
|
+
== Hacking
|
48
|
+
Moqueue is at a stage where it "works for me." That said, there may be methods or method signatures that aren't correct/ aren't supported. If this happens to you, fork me and send a pull request when you're done. Patches and feedback welcome.
|
51
49
|
|
52
50
|
== Moar
|
53
51
|
I wrote an introductory post on my blog, it's probably the best source of high-level discussion right now. Visit: http://kallistec.com/2009/06/21/introducing-moqueue/
|
data/VERSION.yml
CHANGED
data/lib/moqueue/mock_queue.rb
CHANGED
data/moqueue.gemspec
CHANGED
@@ -87,6 +87,10 @@ describe MockQueue do
|
|
87
87
|
pending ("should really remove the association with exchange")
|
88
88
|
@queue.should respond_to(:unsubscribe)
|
89
89
|
end
|
90
|
+
|
91
|
+
it "should ignore #prefetch but at least raise an error" do
|
92
|
+
lambda { @queue.prefetch(1337) }.should_not raise_error
|
93
|
+
end
|
90
94
|
|
91
95
|
it "should raise an error on double subscribe" do
|
92
96
|
@queue.subscribe { |msg| "once" }
|
@@ -138,4 +142,4 @@ describe MockQueue do
|
|
138
142
|
queue.received_message?("I'm feelin this").should be_true
|
139
143
|
end
|
140
144
|
|
141
|
-
end
|
145
|
+
end
|