Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6231

Show
Ignore:
Timestamp:
02/25/07 20:11:18 (2 years ago)
Author:
david
Message:

Fixed broken test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/routing_test.rb

    r6185 r6231  
    311311      map.content '/content/:query', :controller => 'content', :action => 'show' 
    312312    end 
     313 
    313314    exception = assert_raise(ActionController::RoutingError) { rs.generate(:controller => 'content', :action => 'show', :use_route => "content") } 
    314     expected_message = %[content_url failed to generate from {:action=>"show", :controller=>"content"} - you may have ambiguous routes, or you may need to supply additional parameters for this route.  content_url has the following required parameters: ["content", :query] - are they all satisifed?] 
    315     assert_equal expected_message, exception.message 
     315    assert_match %r[:action=>"show"], exception.message 
     316    assert_match %r[:controller=>"content"], exception.message 
     317    assert_match %r[you may have ambiguous routes, or you may need to supply additional parameters for this route], exception.message 
     318    assert_match %r[content_url has the following required parameters: \["content", :query\] - are they all satisifed?], exception.message 
    316319  end 
    317320