Sha256: 55129c4c9f33d581c73039a40fa02e95b03a0d1a9cd19945c28359dff81ec8a2

Contents?: true

Size: 533 Bytes

Versions: 7

Compression:

Stored size: 533 Bytes

Contents

require_relative "../../../../test_helper"

class Comfy::Admin::Cms::BaseControllerTest < ActionDispatch::IntegrationTest

  def test_get_jump
    r :get, comfy_admin_cms_path
    assert_response :redirect
    assert_redirected_to comfy_admin_cms_site_pages_path(comfy_cms_sites(:default))
  end

  def test_get_jump_with_redirect_setting
    ComfortableMexicanSofa.config.admin_route_redirect = "/cms-admin/sites"
    r :get, comfy_admin_cms_path
    assert_response :redirect
    assert_redirected_to "/cms-admin/sites"
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.9 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.8 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.7 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.6 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.5 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.4 test/controllers/comfy/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-2.0.3 test/controllers/comfy/admin/cms/base_controller_test.rb