Sha256: b363858ccd387e49e853509d4986cc0d46380ee6143455a217b02111fea62c6e

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

require_relative '../../test_helper'

class CmsAdmin::BaseControllerTest < ActionController::TestCase

  def test_get_jump
    get :jump
    assert_response :redirect
    assert_redirected_to cms_admin_site_pages_path(cms_sites(:default))
  end
  
  def test_get_jump_with_redirect_setting
    ComfortableMexicanSofa.config.admin_route_redirect = '/cms-admin/sites'
    get :jump
    assert_response :redirect
    assert_redirected_to '/cms-admin/sites'
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.9.3 test/controllers/cms_admin/base_controller_test.rb
comfortable_mexican_sofa-1.9.2 test/controllers/cms_admin/base_controller_test.rb
comfortable_mexican_sofa-1.8.5 test/functional/cms_admin/base_controller_test.rb
comfortable_mexican_sofa-1.9.1 test/controllers/cms_admin/base_controller_test.rb
comfortable_mexican_sofa-1.9.0 test/controllers/cms_admin/base_controller_test.rb
comfortable_mexican_sofa-1.8.4 test/functional/cms_admin/base_controller_test.rb