huh. weirdness. I haven't messed with the test code in awhile, I'll have to
see if I can figure out why the teardown is working now, but the setup is
not. bizarre. I am pretty sure this used to be fine, what version of rails
are you messing with?
In the meantime, you can call "ActiveMessaging.reload_activemessaging" at
the start of the failing test method, and that should work around the reload
problem for now.
-Andrew
On Dec 19, 2007 7:59 PM, Xavier Shay <Xavier.S...@gmail.com> wrote:
> When I run my functionals using rake test:functional I get the
> following error:
> RuntimeError: You have not yet defined a destination named
> model_events. Destinations currently defined are []
> vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:216:in
> `find_destination'
> vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:238:in
> `publish'
> vendor/plugins/activemessaging/lib/activemessaging/processor.rb:21:in
> `publish'
> If I run the test file using ruby (ruby test/functional/
> my_controller_test.rb) the test works. My messaging.rb file looks
> like:
> ActiveMessaging::Gateway.define do |s|
> s.destination :model_events, '/queue/model_events'
> end
> I am publishing the message from within a model
> Any ideas?
> Xavier
--
Andrew Kuklewicz