cony 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/VERSION +1 -1
- data/lib/cony/active_record.rb +1 -0
- data/lib/cony.rb +2 -1
- data/spec/cony/active_record_spec.rb +11 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/cony/active_record.rb
CHANGED
data/lib/cony.rb
CHANGED
@@ -50,4 +50,15 @@ describe Cony::ActiveRecord do
|
|
50
50
|
subject.cony_send_destroy_notify
|
51
51
|
end
|
52
52
|
end
|
53
|
+
|
54
|
+
context 'test mode enabled' do
|
55
|
+
before do
|
56
|
+
Cony.config.stub(:test_mode).and_return(true)
|
57
|
+
end
|
58
|
+
it 'does not send the message' do
|
59
|
+
expect(Cony::AMQPConnectionHandler).to_not receive(:new)
|
60
|
+
subject.cony_send_create_notify
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
53
64
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash: -
|
123
|
+
hash: -2722824331661880657
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
none: false
|
126
126
|
requirements:
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
segments:
|
131
131
|
- 0
|
132
|
-
hash: -
|
132
|
+
hash: -2722824331661880657
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
135
|
rubygems_version: 1.8.23
|