Sha256: 88d8dcfdb671dfd194a0f794efb4f8956c93529ea5af85aa5aef8950156c03e5

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require_relative '../test_helper'

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

  def test_cms_public_prefix
    
    assert_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

2 entries across 2 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.11 test/integration/routing_test.rb
comfortable_mexican_sofa-1.12.10 test/integration/routing_test.rb