Sha256: 2b29c9c57d38407ea52f06ea21dbbc1b26121b0ab6c3bab2b562d02101346550
Contents?: true
Size: 732 Bytes
Versions: 8
Compression:
Stored size: 732 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class SitesTest < ActionDispatch::IntegrationTest def test_get_admin_pages_index http_auth :get, cms_admin_pages_path assert_response :success end def test_get_admin_pages_index_with_no_site CmsSite.delete_all http_auth :get, cms_admin_pages_path assert_response :redirect assert_redirected_to new_cms_admin_site_path end def test_get_admin_sites_index_with_no_site CmsSite.delete_all http_auth :get, cms_admin_sites_path assert_response :success end def test_get_public_page_for_non_existent_site host! 'bogus.host' get '/' assert_response 404 assert_equal 'Site Not Found', response.body end end
Version data entries
8 entries across 8 versions & 1 rubygems