activemessaging 0.13.0 → 0.13.1
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/.gitignore +6 -0
- data/.travis.yml +1 -2
- data/Appraisals +4 -2
- data/Gemfile +1 -18
- data/Rakefile +3 -27
- data/activemessaging.gemspec +24 -138
- data/gemfiles/activesupport23.gemfile +3 -5
- data/gemfiles/activesupport30.gemfile +3 -5
- data/gemfiles/activesupport31.gemfile +3 -5
- data/gemfiles/activesupport32.gemfile +3 -5
- data/lib/activemessaging/test_helper.rb +11 -74
- data/lib/activemessaging/threaded_poller.rb +16 -16
- data/lib/activemessaging/version.rb +3 -0
- metadata +59 -55
- checksums.yaml +0 -7
- data/Gemfile.lock +0 -87
- data/VERSION +0 -1
- data/gemfiles/activesupport23.gemfile.lock +0 -51
- data/gemfiles/activesupport30.gemfile.lock +0 -53
- data/gemfiles/activesupport31.gemfile.lock +0 -55
- data/gemfiles/activesupport32.gemfile.lock +0 -55
- data/init.rb +0 -1
- data/poller.rb +0 -14
- data/test/all_tests.rb +0 -10
- data/test/app/config/broker.yml +0 -4
- data/test/asqs_test.rb +0 -125
- data/test/config_test.rb +0 -42
- data/test/filter_test.rb +0 -131
- data/test/gateway_test.rb +0 -220
- data/test/jms_test.rb +0 -64
- data/test/reliable_msg_test.rb +0 -83
- data/test/stomp_test.rb +0 -168
- data/test/test_helper.rb +0 -36
- data/test/tracer_test.rb +0 -57
data/.gitignore
ADDED
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
appraise "activesupport23" do
|
2
2
|
gem "activesupport", "~> 2.3.11"
|
3
|
+
gem "rake", "~> 0.8.7"
|
3
4
|
end
|
4
5
|
|
5
6
|
appraise "activesupport30" do
|
6
7
|
gem "activesupport", "~> 3.0.8"
|
7
8
|
gem "i18n"
|
9
|
+
gem "rake", "~> 11.1.2"
|
8
10
|
end
|
9
11
|
|
10
12
|
appraise "activesupport31" do
|
11
13
|
gem "activesupport", "~> 3.1.2"
|
12
14
|
gem "i18n"
|
15
|
+
gem "rake", "~> 11.1.2"
|
13
16
|
end
|
14
17
|
|
15
18
|
appraise "activesupport32" do
|
16
19
|
gem "activesupport", "~> 3.2.2"
|
20
|
+
gem "rake", "~> 11.1.2"
|
17
21
|
end
|
18
|
-
|
19
|
-
# vim: filetype=ruby
|
data/Gemfile
CHANGED
@@ -1,19 +1,2 @@
|
|
1
|
-
source "
|
2
|
-
|
3
|
-
# We group everything into test because while a default bundle install
|
4
|
-
# pulls in this group, Jeweler does not include it when consulting the
|
5
|
-
# Gemfile for dependencies.
|
6
|
-
# The short syntax isn't used because the appraisal gem does not support it.
|
7
|
-
if RUBY_VERSION < '1.9'
|
8
|
-
gem 'reliable-msg', '~>1.1', :group => :test, :platform => :ruby
|
9
|
-
else
|
10
|
-
gem 'celluloid', '~>0.12', :group => :test, :platform => :ruby
|
11
|
-
end
|
12
|
-
|
13
|
-
gem 'jruby-activemq', :group => :test, :platform => :jruby
|
14
|
-
gem 'appraisal', :group => :test
|
15
|
-
|
16
|
-
gem 'jeweler', :group => :development
|
17
|
-
|
18
|
-
|
1
|
+
source "https://rubygems.org"
|
19
2
|
gemspec :development_group => :test
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require "bundler/setup"
|
3
4
|
|
4
5
|
require 'rake'
|
5
6
|
require 'rake/testtask'
|
@@ -22,28 +23,3 @@ task :rdoc do
|
|
22
23
|
rm_rf 'doc'
|
23
24
|
RDoc::RDoc.new.document(%w(--line-numbers --inline-source --title ActiveMessaging README lib))
|
24
25
|
end
|
25
|
-
|
26
|
-
begin
|
27
|
-
require 'jeweler'
|
28
|
-
Jeweler::Tasks.new do |gemspec|
|
29
|
-
|
30
|
-
# basic
|
31
|
-
gemspec.name = "activemessaging"
|
32
|
-
gemspec.summary = "Official activemessaging gem, now hosted on github.com/kookster. (kookster prefix temporary)"
|
33
|
-
gemspec.description = "ActiveMessaging is an attempt to bring the simplicity and elegance of rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries, etc. Now supporting Rails 3 as of version 0.8.0."
|
34
|
-
gemspec.email = "activemessaging-discuss@googlegroups.com"
|
35
|
-
gemspec.homepage = "http://github.com/kookster/activemessaging"
|
36
|
-
gemspec.authors = ["Jon Tirsen", "Andrew Kuklewicz", "Olle Jonsson", "Sylvain Perez", "Cliff Moon", 'Uwe Kubosch', 'Lance Cooper', 'Matt Campbell']
|
37
|
-
|
38
|
-
# added
|
39
|
-
gemspec.add_dependency('activesupport', '>= 2.3.11')
|
40
|
-
|
41
|
-
gemspec.add_development_dependency('jeweler')
|
42
|
-
gemspec.add_development_dependency('stomp')
|
43
|
-
gemspec.add_development_dependency('appraisal')
|
44
|
-
|
45
|
-
end
|
46
|
-
Jeweler::GemcutterTasks.new
|
47
|
-
rescue LoadError
|
48
|
-
puts "Jeweler not available. Install it with: gem install jeweler"
|
49
|
-
end
|
data/activemessaging.gemspec
CHANGED
@@ -1,143 +1,29 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
# stub: activemessaging 0.13.0 ruby lib
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'activemessaging/version'
|
6
5
|
|
7
|
-
Gem::Specification.new do |
|
8
|
-
|
9
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "activemessaging"
|
8
|
+
spec.version = ActiveMessaging::VERSION
|
9
|
+
spec.authors = ["Jon Tirsen", "Andrew Kuklewicz", "Olle Jonsson", "Sylvain Perez", "Cliff Moon", "Uwe Kubosch", "Lance Cooper", "Matt Campbell"]
|
10
|
+
spec.email = ["activemessaging-discuss@googlegroups.com"]
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
s.email = "activemessaging-discuss@googlegroups.com"
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".travis.yml",
|
21
|
-
"Appraisals",
|
22
|
-
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"activemessaging.gemspec",
|
28
|
-
"gemfiles/activesupport23.gemfile",
|
29
|
-
"gemfiles/activesupport23.gemfile.lock",
|
30
|
-
"gemfiles/activesupport30.gemfile",
|
31
|
-
"gemfiles/activesupport30.gemfile.lock",
|
32
|
-
"gemfiles/activesupport31.gemfile",
|
33
|
-
"gemfiles/activesupport31.gemfile.lock",
|
34
|
-
"gemfiles/activesupport32.gemfile",
|
35
|
-
"gemfiles/activesupport32.gemfile.lock",
|
36
|
-
"generators/a13g_test_harness/a13g_test_harness_generator.rb",
|
37
|
-
"generators/a13g_test_harness/templates/active_messaging_test.rhtml",
|
38
|
-
"generators/a13g_test_harness/templates/active_messaging_test_controller.rb",
|
39
|
-
"generators/a13g_test_harness/templates/index.rhtml",
|
40
|
-
"generators/filter/USAGE",
|
41
|
-
"generators/filter/filter_generator.rb",
|
42
|
-
"generators/filter/templates/filter.rb",
|
43
|
-
"generators/filter/templates/filter_test.rb",
|
44
|
-
"generators/processor/USAGE",
|
45
|
-
"generators/processor/processor_generator.rb",
|
46
|
-
"generators/processor/templates/application_processor.rb",
|
47
|
-
"generators/processor/templates/broker.yml",
|
48
|
-
"generators/processor/templates/jruby_poller",
|
49
|
-
"generators/processor/templates/messaging.rb",
|
50
|
-
"generators/processor/templates/poller",
|
51
|
-
"generators/processor/templates/poller.rb",
|
52
|
-
"generators/processor/templates/processor.rb",
|
53
|
-
"generators/processor/templates/processor_test.rb",
|
54
|
-
"generators/tracer/USAGE",
|
55
|
-
"generators/tracer/templates/controller.rb",
|
56
|
-
"generators/tracer/templates/helper.rb",
|
57
|
-
"generators/tracer/templates/index.rhtml",
|
58
|
-
"generators/tracer/templates/layout.rhtml",
|
59
|
-
"generators/tracer/templates/trace_processor.rb",
|
60
|
-
"generators/tracer/tracer_generator.rb",
|
61
|
-
"init.rb",
|
62
|
-
"lib/activemessaging.rb",
|
63
|
-
"lib/activemessaging/adapter.rb",
|
64
|
-
"lib/activemessaging/adapters/amqp.rb",
|
65
|
-
"lib/activemessaging/adapters/asqs.rb",
|
66
|
-
"lib/activemessaging/adapters/base.rb",
|
67
|
-
"lib/activemessaging/adapters/beanstalk.rb",
|
68
|
-
"lib/activemessaging/adapters/jms.rb",
|
69
|
-
"lib/activemessaging/adapters/reliable_msg.rb",
|
70
|
-
"lib/activemessaging/adapters/stomp.rb",
|
71
|
-
"lib/activemessaging/adapters/synch.rb",
|
72
|
-
"lib/activemessaging/adapters/test.rb",
|
73
|
-
"lib/activemessaging/adapters/wmq.rb",
|
74
|
-
"lib/activemessaging/base_message.rb",
|
75
|
-
"lib/activemessaging/filter.rb",
|
76
|
-
"lib/activemessaging/gateway.rb",
|
77
|
-
"lib/activemessaging/message_sender.rb",
|
78
|
-
"lib/activemessaging/named_base.rb",
|
79
|
-
"lib/activemessaging/processor.rb",
|
80
|
-
"lib/activemessaging/railtie.rb",
|
81
|
-
"lib/activemessaging/test_helper.rb",
|
82
|
-
"lib/activemessaging/threaded_poller.rb",
|
83
|
-
"lib/activemessaging/trace_filter.rb",
|
84
|
-
"lib/generators/active_messaging/install/USAGE",
|
85
|
-
"lib/generators/active_messaging/install/install_generator.rb",
|
86
|
-
"lib/generators/active_messaging/install/templates/application_processor.rb",
|
87
|
-
"lib/generators/active_messaging/install/templates/broker.yml",
|
88
|
-
"lib/generators/active_messaging/install/templates/poller",
|
89
|
-
"lib/generators/active_messaging/install/templates/poller.rb",
|
90
|
-
"lib/generators/active_messaging/install/templates/threaded_poller",
|
91
|
-
"lib/generators/active_messaging/processor/USAGE",
|
92
|
-
"lib/generators/active_messaging/processor/processor_generator.rb",
|
93
|
-
"lib/generators/active_messaging/processor/templates/messaging.rb",
|
94
|
-
"lib/generators/active_messaging/processor/templates/processor.rb",
|
95
|
-
"lib/generators/active_messaging/processor/templates/processor_spec.rb",
|
96
|
-
"lib/generators/active_messaging/processor/templates/processor_test.rb",
|
97
|
-
"lib/tasks/start_consumers.rake",
|
98
|
-
"poller.rb",
|
99
|
-
"test/all_tests.rb",
|
100
|
-
"test/app/config/broker.yml",
|
101
|
-
"test/asqs_test.rb",
|
102
|
-
"test/config_test.rb",
|
103
|
-
"test/filter_test.rb",
|
104
|
-
"test/gateway_test.rb",
|
105
|
-
"test/jms_test.rb",
|
106
|
-
"test/reliable_msg_test.rb",
|
107
|
-
"test/stomp_test.rb",
|
108
|
-
"test/test_helper.rb",
|
109
|
-
"test/tracer_test.rb"
|
110
|
-
]
|
111
|
-
s.homepage = "http://github.com/kookster/activemessaging"
|
112
|
-
s.require_paths = ["lib"]
|
113
|
-
s.rubygems_version = "2.1.11"
|
114
|
-
s.summary = "Official activemessaging gem, now hosted on github.com/kookster. (kookster prefix temporary)"
|
12
|
+
spec.summary = "Official activemessaging gem, now hosted on github.com/kookster. (kookster prefix temporary)"
|
13
|
+
spec.description = "ActiveMessaging is an attempt to bring the simplicity and elegance of rails development to the world of messaging. Messaging, (or event-driven architecture) is widely used for enterprise integration, with frameworks such as Java's JMS, and products such as ActiveMQ, Tibco, IBM MQSeries, etc. Now supporting Rails 3 as of version 0.8.0."
|
14
|
+
spec.homepage = "http://github.com/kookster/activemessaging"
|
15
|
+
spec.license = "MIT"
|
115
16
|
|
116
|
-
|
117
|
-
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
118
21
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
124
|
-
s.add_development_dependency(%q<stomp>, [">= 0"])
|
125
|
-
s.add_development_dependency(%q<appraisal>, [">= 0"])
|
126
|
-
else
|
127
|
-
s.add_dependency(%q<activemessaging>, [">= 0"])
|
128
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
129
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.11"])
|
130
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
131
|
-
s.add_dependency(%q<stomp>, [">= 0"])
|
132
|
-
s.add_dependency(%q<appraisal>, [">= 0"])
|
133
|
-
end
|
134
|
-
else
|
135
|
-
s.add_dependency(%q<activemessaging>, [">= 0"])
|
136
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
137
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.11"])
|
138
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
139
|
-
s.add_dependency(%q<stomp>, [">= 0"])
|
140
|
-
s.add_dependency(%q<appraisal>, [">= 0"])
|
141
|
-
end
|
142
|
-
end
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "test-unit"
|
24
|
+
spec.add_development_dependency "stomp"
|
25
|
+
spec.add_development_dependency "appraisal"
|
143
26
|
|
27
|
+
spec.add_runtime_dependency "activesupport"
|
28
|
+
spec.add_runtime_dependency "rake"
|
29
|
+
end
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# This file was generated by Appraisal
|
2
2
|
|
3
|
-
source "
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
|
6
|
-
gem "jruby-activemq", :group=>:test, :platform=>:jruby
|
7
|
-
gem "appraisal", :group=>:test
|
8
5
|
gem "activesupport", "~> 2.3.11"
|
6
|
+
gem "rake", "~> 0.8.7"
|
9
7
|
|
10
|
-
gemspec :development_group
|
8
|
+
gemspec :development_group => :test, :path => "../"
|
@@ -1,11 +1,9 @@
|
|
1
1
|
# This file was generated by Appraisal
|
2
2
|
|
3
|
-
source "
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
|
6
|
-
gem "jruby-activemq", :group=>:test, :platform=>:jruby
|
7
|
-
gem "appraisal", :group=>:test
|
8
5
|
gem "activesupport", "~> 3.0.8"
|
9
6
|
gem "i18n"
|
7
|
+
gem "rake", "~> 11.1.2"
|
10
8
|
|
11
|
-
gemspec :development_group
|
9
|
+
gemspec :development_group => :test, :path => "../"
|
@@ -1,11 +1,9 @@
|
|
1
1
|
# This file was generated by Appraisal
|
2
2
|
|
3
|
-
source "
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
|
6
|
-
gem "jruby-activemq", :group=>:test, :platform=>:jruby
|
7
|
-
gem "appraisal", :group=>:test
|
8
5
|
gem "activesupport", "~> 3.1.2"
|
9
6
|
gem "i18n"
|
7
|
+
gem "rake", "~> 11.1.2"
|
10
8
|
|
11
|
-
gemspec :development_group
|
9
|
+
gemspec :development_group => :test, :path => "../"
|
@@ -1,10 +1,8 @@
|
|
1
1
|
# This file was generated by Appraisal
|
2
2
|
|
3
|
-
source "
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "celluloid", "~>0.12", :group=>:test, :platform=>:ruby
|
6
|
-
gem "jruby-activemq", :group=>:test, :platform=>:jruby
|
7
|
-
gem "appraisal", :group=>:test
|
8
5
|
gem "activesupport", "~> 3.2.2"
|
6
|
+
gem "rake", "~> 11.1.2"
|
9
7
|
|
10
|
-
gemspec :development_group
|
8
|
+
gemspec :development_group => :test, :path => "../"
|
@@ -1,18 +1,11 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
#require "#{File.dirname(__FILE__)}/trace_filter"
|
3
|
-
|
4
|
-
|
5
1
|
module ActiveMessaging #:nodoc:
|
6
2
|
@@logger = nil
|
7
3
|
|
8
|
-
# def self.reload_activemessaging
|
9
|
-
# end
|
10
|
-
|
11
4
|
def self.logger
|
12
5
|
@@logger ||= MockLogger.new
|
13
6
|
@@logger
|
14
7
|
end
|
15
|
-
|
8
|
+
|
16
9
|
class AbortMessageException < Exception #:nodoc:
|
17
10
|
end
|
18
11
|
|
@@ -20,7 +13,7 @@ module ActiveMessaging #:nodoc:
|
|
20
13
|
end
|
21
14
|
|
22
15
|
class Gateway
|
23
|
-
|
16
|
+
|
24
17
|
def self.reset
|
25
18
|
unsubscribe
|
26
19
|
disconnect
|
@@ -30,24 +23,24 @@ module ActiveMessaging #:nodoc:
|
|
30
23
|
@processor_groups = {}
|
31
24
|
@current_processor_group = nil
|
32
25
|
@connections = {}
|
33
|
-
end
|
26
|
+
end
|
34
27
|
end
|
35
|
-
|
28
|
+
|
36
29
|
module MessageSender
|
37
|
-
|
30
|
+
|
38
31
|
@@__a13g_initialized__ = false
|
39
32
|
def publish_with_reset(destination_name, message, headers={}, timeout=10)
|
40
33
|
unless @@__a13g_initialized__
|
41
|
-
ActiveMessaging.reload_activemessaging
|
34
|
+
ActiveMessaging.reload_activemessaging
|
42
35
|
@@__a13g_initialized__ = true
|
43
36
|
end
|
44
37
|
publish_without_reset(destination_name, message, headers, timeout)
|
45
38
|
end
|
46
39
|
|
47
40
|
alias_method_chain :publish, :reset
|
48
|
-
|
41
|
+
|
49
42
|
end
|
50
|
-
|
43
|
+
|
51
44
|
class TestMessage < ActiveMessaging::BaseMessage
|
52
45
|
|
53
46
|
def initialize(body="", headers={}, destination="")
|
@@ -58,60 +51,6 @@ module ActiveMessaging #:nodoc:
|
|
58
51
|
end
|
59
52
|
|
60
53
|
module TestHelper
|
61
|
-
|
62
|
-
# #Many thanks must go to the ActiveRecord fixture code
|
63
|
-
# #for showing how to properly alias setup and teardown
|
64
|
-
# def self.included(base)
|
65
|
-
# base.extend(ClassMethods)
|
66
|
-
#
|
67
|
-
# class << base
|
68
|
-
# alias_method_chain :method_added, :a13g
|
69
|
-
# end
|
70
|
-
#
|
71
|
-
# end
|
72
|
-
|
73
|
-
# module ClassMethods
|
74
|
-
#
|
75
|
-
# def method_added_with_a13g(method)
|
76
|
-
# return if @__a13g_disable_method_added__
|
77
|
-
# @__a13g_disable_method_added__ = true
|
78
|
-
#
|
79
|
-
# case method.to_s
|
80
|
-
# when 'setup'
|
81
|
-
# unless method_defined?(:setup_without_a13g)
|
82
|
-
# alias_method :setup_without_a13g, :setup
|
83
|
-
# define_method(:full_setup) do
|
84
|
-
# setup_with_a13g
|
85
|
-
# setup_without_a13g
|
86
|
-
# end
|
87
|
-
# end
|
88
|
-
# alias_method :setup, :full_setup
|
89
|
-
# when 'teardown'
|
90
|
-
# unless method_defined?(:teardown_without_a13g)
|
91
|
-
# alias_method :teardown_without_a13g, :teardown
|
92
|
-
# define_method(:full_teardown) do
|
93
|
-
# teardown_without_a13g
|
94
|
-
# teardown_with_a13g
|
95
|
-
# end
|
96
|
-
# end
|
97
|
-
# alias_method :teardown, :full_teardown
|
98
|
-
# end
|
99
|
-
#
|
100
|
-
# method_added_without_a13g(method)
|
101
|
-
#
|
102
|
-
# @__a13g_disable_method_added__ = false
|
103
|
-
# end
|
104
|
-
#
|
105
|
-
# end
|
106
|
-
|
107
|
-
# def setup_with_a13g
|
108
|
-
# ActiveMessaging.reload_activemessaging
|
109
|
-
# end
|
110
|
-
#
|
111
|
-
# def teardown_with_a13g
|
112
|
-
# ActiveMessaging::Gateway.reset
|
113
|
-
# end
|
114
|
-
|
115
54
|
def mock_publish destination, body, publisher=nil, headers={}
|
116
55
|
ActiveMessaging::Gateway.publish destination, body, publisher, headers
|
117
56
|
end
|
@@ -125,7 +64,7 @@ module ActiveMessaging #:nodoc:
|
|
125
64
|
EOF
|
126
65
|
assert ActiveMessaging::Gateway.connection.find_message(destination, body), error_message
|
127
66
|
end
|
128
|
-
|
67
|
+
|
129
68
|
def assert_no_message_with destination, body
|
130
69
|
destination = ActiveMessaging::Gateway.find_destination(destination).value
|
131
70
|
error_message = <<-EOF
|
@@ -165,7 +104,7 @@ module ActiveMessaging #:nodoc:
|
|
165
104
|
EOF
|
166
105
|
assert_nil ActiveMessaging::Gateway.connection('default').find_subscription(destination), error_message
|
167
106
|
end
|
168
|
-
|
107
|
+
|
169
108
|
def assert_has_messages destination
|
170
109
|
destination_name = ActiveMessaging::Gateway.find_destination(destination).value
|
171
110
|
error_message = <<-EOF
|
@@ -177,13 +116,11 @@ module ActiveMessaging #:nodoc:
|
|
177
116
|
assert !destination.nil? && !destination.messages.empty?, error_message
|
178
117
|
end
|
179
118
|
end
|
180
|
-
|
119
|
+
|
181
120
|
class MockLogger
|
182
121
|
def error(*args) ; end
|
183
122
|
def warn(*args) ; end
|
184
123
|
def info(*args) ; end
|
185
124
|
def debug(*args) ; end
|
186
125
|
end
|
187
|
-
|
188
126
|
end
|
189
|
-
|