Sha256: 646f7ce631e689b3f79f2a1e7265d5f90b48fccd7ec8f63fa858a008032110d1

Contents?: true

Size: 445 Bytes

Versions: 7

Compression:

Stored size: 445 Bytes

Contents

require_relative '../test_helper'

class RoutingIntergrationTest < ActionDispatch::IntegrationTest
  
  def teardown
    Rails.application.reload_routes!
  end

  def test_cms_public_prefix
    
    assert_equal nil, ComfortableMexicanSofa.config.public_cms_path
    
    Rails.application.routes.draw do
      comfy_route :cms, :path => '/custom'
    end
    
    assert_equal '/custom', ComfortableMexicanSofa.config.public_cms_path
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.9 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.8 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.7 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.6 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.5 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.4 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.3 test/integration/routing_test.rb