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

Version Path
comfortable_mexican_sofa-1.0.36 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.35 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.34 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.33 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.32 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.31 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.30 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.29 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.28 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.27 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.26 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.25 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.24 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.23 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.22 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.21 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.20 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.19 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.18 test/integration/sites_test.rb
comfortable_mexican_sofa-1.0.17 test/integration/sites_test.rb