Sha256: 847e681941c42ec29c13c25bee97003a281edbdd5f2b58caa3d455882a544364

Contents?: true

Size: 580 Bytes

Versions: 9

Compression:

Stored size: 580 Bytes

Contents

require File.expand_path('../test_helper', File.dirname(__FILE__))

class RoutingTest < ActionDispatch::IntegrationTest
  
  def setup
    reset_config
    Rails.application.reload_routes!
  end
  
  def test_admin_route_prefix
    ComfyBlog.config.admin_route_prefix = 'custom-admin'
    Rails.application.reload_routes!
    
    get '/custom-admin/blog/posts'
    assert_response :success
  end
  
  def test_public_route_prefix
    ComfyBlog.config.public_route_prefix = 'blog'
    Rails.application.reload_routes!
    
    get '/blog'
    assert_response :success
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
comfy_blog-0.1.8 test/integration/routing_test.rb
comfy_blog-0.1.7 test/integration/routing_test.rb
comfy_blog-0.1.6 test/integration/routing_test.rb
comfy_blog-0.1.5 test/integration/routing_test.rb
comfy_blog-0.1.4 test/integration/routing_test.rb
comfy_blog-0.1.3 test/integration/routing_test.rb
comfy_blog-0.1.2 test/integration/routing_test.rb
comfy_blog-0.1.1 test/integration/routing_test.rb
comfy_blog-0.1.0 test/integration/routing_test.rb