Sha256: 83ced29dadfbd7e73c7bac4f9526106efb682240ba7a884b217096937d58504c

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

# encoding: utf-8

module Caterpillar #:nodoc:
  # Routes for Portlet Test Bench.
  module Routing
    module MapperExtensions # :nodoc:
      def caterpillar

        @set.add_named_route(
          'portlet_test_bench',
          'caterpillar/test_bench',
          {:controller => 'Caterpillar::Application', :action => 'portlet_test_bench'})

        @set.add_route(
          'caterpillar/test_bench/http_methods/:action',
          {:controller => 'Caterpillar::HttpMethods'})

        @set.add_route(
          'caterpillar/test_bench/javascript/:action',
          {:controller => 'Caterpillar::Js'})

        @set.add_route(
          'caterpillar/test_bench/css/:action',
          {:controller => 'Caterpillar::Css'})

        @set.add_route(
          'caterpillar/test_bench/login/:action',
          {:controller => 'Caterpillar::Login'})

        @set.add_route(
          'caterpillar/test_bench/resource/:action',
          {:controller => 'Caterpillar::Resource'})

        @set.add_route(
          'caterpillar/test_bench/session/:action',
          {:controller => 'Caterpillar::Session'})

        @set.add_route(
          'caterpillar/test_bench/user/:action',
          {:controller => 'Caterpillar::User'})

        @set.add_route(
          'caterpillar/test_bench/liferay/:action',
          {:controller => 'Caterpillar::Liferay'})

        @set.add_route(
          'caterpillar/test_bench/xhr/:action',
          {:controller => 'Caterpillar::Xhr'})

        # Liferay GID
        @set.add_route(
          'caterpillar/test_bench/liferay/:action/gid/:gid',
          {:controller => 'Caterpillar::Liferay'})

        # xUnit test routes
        @set.add_route(
          'caterpillar/test_bench/junit/:action',
          {:controller => 'Caterpillar::Junit'})

        # index
        @set.add_named_route(
          'caterpillar',
          'caterpillar/',
          {:controller => 'Caterpillar::Application'})

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caterpillar-1.6.0 portlet_test_bench/routing.rb
caterpillar-1.4.4 portlet_test_bench/routing.rb