Sha256: 721b7d01ea958b82631f0eec2d06ccc863d81f247910370bb4140ca51d9e69ea

Contents?: true

Size: 469 Bytes

Versions: 7

Compression:

Stored size: 469 Bytes

Contents

require_relative '../../../test_helper'

class Admin::Cms::BaseControllerTest < ActionController::TestCase

  def test_get_jump
    get :jump
    assert_response :redirect
    assert_redirected_to admin_cms_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

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.11.1 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.11.0 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.10.3 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.10.2 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.10.1 test/controllers/admin/cms/base_controller_test.rb
comfortable_mexican_sofa-1.10.0 test/controllers/admin/cms/base_controller_test.rb