Sign In/My Account | View Cart  
advertisement

Article:
 Putting REST on Rails
Subject: test functionals Failure
Date: 2006-04-21 11:49:22
From: Pedromatic

Is the source code available so I can compare?
I get the following from rake:


1) Failure:
test_routing(BookControllerTest)
[c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/optio
n_merger.rb:14:in `method_missing'
./test/functional/book_controller_test.rb:26:in `test_routing'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_
ext/object/misc.rb:28:in `with_options'
./test/functional/book_controller_test.rb:25:in `test_routing']:
The generated path <"/book/collection"> did not match <"/books">


No Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • test functionals Failure
    2006-04-21 12:45:57 Pedromatic

    Disregard,
    There was a syntax error in my book controller.
    Thanks for a great article.

    • test functionals Failure
      2006-04-27 21:00:19 djseng

      Hello, I was wondering what your syntax error was, because I am getting the same error.


      -Thanks

      • test functionals Failure
        2006-05-12 05:01:46 sumwai

        in routes.rb, shift the line "map.connect_resource :book" to the top within the block and you will pass the test.


Sponsored By: