Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Functional tests can't find destinations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xavier Shay  
View profile  
 More options Dec 19 2007, 7:59 pm
From: Xavier Shay <Xavier.S...@gmail.com>
Date: Wed, 19 Dec 2007 16:59:27 -0800 (PST)
Local: Wed, Dec 19 2007 7:59 pm
Subject: Functional tests can't find destinations
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Kuklewicz  
View profile  
 More options Dec 19 2007, 11:44 pm
From: "Andrew Kuklewicz" <kooks...@gmail.com>
Date: Wed, 19 Dec 2007 23:44:11 -0500
Local: Wed, Dec 19 2007 11:44 pm
Subject: Re: Functional tests can't find destinations

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:

--
Andrew Kuklewicz

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Shay  
View profile  
 More options Dec 20 2007, 5:20 pm
From: Xavier Shay <Xavier.S...@gmail.com>
Date: Thu, 20 Dec 2007 14:20:46 -0800 (PST)
Local: Thurs, Dec 20 2007 5:20 pm
Subject: Re: Functional tests can't find destinations
On Dec 20, 3:44 pm, "Andrew Kuklewicz" <kooks...@gmail.com> wrote:
> 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?

Using rails 2.0.2
I did some research, maybe this will help:
http://rhnh.net/2007/12/20/test-setup-broken-in-rails-2-0-2

> 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.

Yes that works a treat

Cheers,
Xavier


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google