On Sat, Sep 26, 2009 at 9:44 AM, giuseb <[email protected]> wrote:
>> > So sorry, I must be missing something.
>> > I am looking right now at this page:
>>
>> >http://www.ruby-forum.com/topic/195172
>>
>> Well - that _should_ be one of two correct URLs. The forum is mirrored
>> w/ a google group. I see there are posts missing from the forum, but I
>> see all the posts in the google group
>
> Yes, now I see, thanks.
> So, back to the original issue, I have rails 2.3.4, rspec 1.2.8, rspec-
> rails 1.2.7.1, ruby 1.8.6 (universal darwin9.0)
>
> I too have created a new app with only the above-mentioned code added
> to the rails-generated and rspec-generated stuff. I am still getting
> the "No route matches..." error
>
> I have posted the app here:
> git://github.com/giuseb/spec_named_route.git
>
> I am somewhat nervous that this is going to turn out a silly mistake
> on my part as Matt suggested, but still...
>
> Giuseppe
Thanks for posting the app - that was very helpful.
I've got good news and bad news: The good news is that I hadn't set up
my routes as cleanly as yours, and when I did I was able to reproduce
the error.
The bad news is that this is a deficiency the underlying Rails testing
framework that rspec-rails wraps. I tried the same example in a rails
functional test and got the same failure:
class InvitationsControllerTest < ActionController::TestCase
test "the post accept invitation should be successful" do
get :accept, :id => "1"
assert_response :success
end
end
test_the_post_accept_invitation_should_be_successful(InvitationsControllerTest):
ActionController::RoutingError: No route matches {:action=>"accept",
:controller=>"invitations", :id=>"1"}
/test/functional/invitations_controller_test.rb:6:in
`test_the_post_accept_invitation_should_be_successful'
You wanna raise a ticket in the rails lighthouse?
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users