Sha256: 45ecf9bc58e616cea155de99aaef3dc17c9fb267c84de83014722e0b36d89766

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 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

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.9 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.8 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.7 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.6 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.5 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.4 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.3 test/integration/routing_test.rb