Sha256: 42abf8a72646ef7c62621634769d77e97d149b19bcfd97a02f88ddff5e460dc1

Contents?: true

Size: 343 Bytes

Versions: 11

Compression:

Stored size: 343 Bytes

Contents

module RoutingTestHelper
  
  def setup_custom_routes
    map = ActionController::Routing::RouteSet::Mapper.new(routes)
    map.connect ':controller/:action/:id'
    routes.named_routes.install
  end
  
  def teardown_custom_routes
    routes.reload
  end
  
  private
  
    def routes
      ActionController::Routing::Routes
    end
    
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-0.6.1 test/helpers/routing_test_helper.rb
radiant-0.6.0 test/helpers/routing_test_helper.rb
radiant-0.6.2 test/helpers/routing_test_helper.rb
radiant-0.6.3 test/helpers/routing_test_helper.rb
radiant-0.6.5.1 test/helpers/routing_test_helper.rb
radiant-0.6.4 test/helpers/routing_test_helper.rb
radiant-0.6.5 test/helpers/routing_test_helper.rb
radiant-0.6.6 test/helpers/routing_test_helper.rb
radiant-0.6.7 test/helpers/routing_test_helper.rb
radiant-0.6.8 test/helpers/routing_test_helper.rb
radiant-0.6.9 test/helpers/routing_test_helper.rb