cpi-event-connector 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cpi/connector.rb +0 -1
- data/lib/cpi/version.rb +1 -1
- data/spec/connector_spec.rb +6 -2
- metadata +2 -2
data/lib/cpi/connector.rb
CHANGED
data/lib/cpi/version.rb
CHANGED
data/spec/connector_spec.rb
CHANGED
@@ -62,13 +62,17 @@ describe Cpi::Connector do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
it "connects to the default queue" do
|
65
|
-
|
65
|
+
exchange.should_receive(:publish) do |message, params|
|
66
|
+
params[:key].should == "cpi"
|
67
|
+
end
|
66
68
|
|
67
69
|
connector.transmit(event)
|
68
70
|
end
|
69
71
|
|
70
72
|
it "connects to the specified queue" do
|
71
|
-
|
73
|
+
exchange.should_receive(:publish) do |message, params|
|
74
|
+
params[:key].should == "my queue"
|
75
|
+
end
|
72
76
|
|
73
77
|
connector.transmit(event, :queue => "my queue")
|
74
78
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpi-event-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|