Sha256: 826fbb72e33bf5e5c6dee0c06dc8aa8217bbccf87b14d0cdf240a35f24af6e3d
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
require File.expand_path('../test_helper', File.dirname(__FILE__)) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.0.37 | test/integration/sites_test.rb |