Displaying 6 results from an estimated 6 matches for "test_routes".
Did you mean:
test_route
2006 May 18
6
Routes and Testing Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. If someone could possibly point me in the right
direction, I would really
2006 May 09
1
name_url in tests
...URL rewriting tests.
dorian
Test:
# named routes
opts = { :action => "dotest", :test => "test1" }
assert_recognizes opts, taste_url(:action => "dotest", :test => "test1")
Error ( I have a route named ''taste''):
test_routes(FilmsControllerTest):
NoMethodError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rewrite
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:461:in `url_for''
generated/routing/named_routes/taste.rb:2:in `t...
2006 May 08
0
testing named routes
...etc...
end
and my test:
opts = { :controller => "films", :action => "index", :index => "indexdate.html" }
assert_routing overviews_url(:controller => "films", :index => "indexdate.html"), opts
which gives me:
2) Error:
test_routes(FilmsControllerTest):
NoMethodError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rewrite
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:459:in `url_for''
generated/routing/named_routes/overviews.rb:2:i...
2006 Jan 21
2
Testing ActiveRecord associations
How do I write a test which proves something like "Post :has_many
Comments" and "Comment :belongs_to Post"? It doesn''t seem to be covered
in "A Guide to Testing the Rails" on manuals.rubyonrails.com.
Cheers, Robert.
--
Posted via http://www.ruby-forum.com/.
2006 May 18
2
Help with Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. I will try to explain my understanding of how routes
work. Via this
2006 Apr 22
5
selenium plugin not working with rails 1.1
Hi,
I really like selenium, and I just tried the plugin created Jonas
Bengtsson. However I cannot get it to run on rails 1.1 and coundn''t find
anyone complaining about it?
Did anyone get it to run on rails 1.1.2?
Greets,
Abdur-Rahman