Sha256: 56e2c8c851f5f440595e53b59905292eccf4627af548991d7ba293a48fd0dd03

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.2 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.1 test/integration/routing_test.rb
comfortable_mexican_sofa-2.0.0 test/integration/routing_test.rb