Fix test failures

This commit is contained in:
John Firebaugh 2013-11-15 15:36:54 -08:00
parent 44629832dd
commit e91956d0f7
58 changed files with 231 additions and 363 deletions

View file

@ -40,10 +40,10 @@ class SiteControllerTest < ActionController::TestCase
)
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(
@ -74,7 +74,6 @@ class SiteControllerTest < ActionController::TestCase
get :index
assert_response :success
assert_template 'index'
assert_site_partials
end
def test_index_redirect
@ -122,12 +121,6 @@ class SiteControllerTest < ActionController::TestCase
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