require File.dirname(__FILE__) + '/../test_helper'

class RoutesTest < Test::Rails::TestCase
  
  # map.rating_create 'rater/create/:rating_type/:subject_id', :controller => 'rater', :action => 'create'
  def test_rating_create_url
    # assert_recognizes ( expected_options, path, extras={}, [msg] )
    # assert_generates(expected_path, options, defaults={}, extras = {}, message=nil) 
    # assert_routing
    assert_recognizes({:controller => 'rater', :action => 'create', :rating_type => 'cow', :subject_id => "5"}, "rater/create/cow/5")
    assert_generates("rater/create/cow/5", {:controller => 'rater', :action => 'create', :rating_type => 'cow', :subject_id => "5"})
  end
    
end

