Sha256: 26a7cc61c11844410fc30e7e359fc62bbf082a43f59b16f4f746f2e1bb1a5da4
Contents?: true
Size: 584 Bytes
Versions: 26
Compression:
Stored size: 584 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_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
26 entries across 26 versions & 1 rubygems