)
assert_routing(
{ :path => "/export", :method => :get },
- { :controller => "site", :action => "index", :export => true }
+ { :controller => "site", :action => "export" }
)
assert_recognizes(
- { :controller => "site", :action => "index", :export => true, :format => "html" },
+ { :controller => "site", :action => "export", :format => "html" },
{ :path => "/export.html", :method => :get }
)
assert_routing(
get :index
assert_response :success
assert_template 'index'
- assert_site_partials
end
def test_index_redirect
get :offline
assert_response :success
assert_template 'offline'
- assert_site_partials 0
- end
-
- def assert_site_partials(count = 1)
- assert_template :partial => '_search', :count => count
- assert_template :partial => '_sidebar', :count => count
end
# test the right editor gets used when the user hasn't set a preference