translatable_routes 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +46 -0
  4. data/Rakefile +32 -0
  5. data/lib/translatable_routes/action_controller/base.rb +38 -0
  6. data/lib/translatable_routes/action_dispatch/mapper.rb +72 -0
  7. data/lib/translatable_routes/action_dispatch/named_route_collection.rb +27 -0
  8. data/lib/translatable_routes/railtie.rb +14 -0
  9. data/lib/translatable_routes/version.rb +5 -0
  10. data/lib/translatable_routes.rb +8 -0
  11. data/test/dummy/README.rdoc +28 -0
  12. data/test/dummy/Rakefile +6 -0
  13. data/test/dummy/app/assets/javascripts/application.js +13 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  15. data/test/dummy/app/controllers/application_controller.rb +5 -0
  16. data/test/dummy/app/controllers/namespace/nested_controller.rb +6 -0
  17. data/test/dummy/app/controllers/namespace/nested_resources_controller.rb +6 -0
  18. data/test/dummy/app/controllers/pages_controller.rb +6 -0
  19. data/test/dummy/app/controllers/params_controller.rb +6 -0
  20. data/test/dummy/app/controllers/resources_controller.rb +6 -0
  21. data/test/dummy/app/controllers/simple_controller.rb +6 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/app/views/pages/show.html.erb +0 -0
  25. data/test/dummy/bin/bundle +3 -0
  26. data/test/dummy/bin/rails +4 -0
  27. data/test/dummy/bin/rake +4 -0
  28. data/test/dummy/config/application.rb +29 -0
  29. data/test/dummy/config/boot.rb +5 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +29 -0
  33. data/test/dummy/config/environments/production.rb +80 -0
  34. data/test/dummy/config/environments/test.rb +36 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  37. data/test/dummy/config/initializers/inflections.rb +16 -0
  38. data/test/dummy/config/initializers/mime_types.rb +5 -0
  39. data/test/dummy/config/initializers/secret_token.rb +12 -0
  40. data/test/dummy/config/initializers/session_store.rb +3 -0
  41. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/test/dummy/config/locales/en-US.yml +9 -0
  43. data/test/dummy/config/locales/es-AR.yml +9 -0
  44. data/test/dummy/config/locales/es-UY.yml +9 -0
  45. data/test/dummy/config/routes.rb +59 -0
  46. data/test/dummy/config.ru +4 -0
  47. data/test/dummy/db/development.sqlite3 +0 -0
  48. data/test/dummy/db/schema.rb +16 -0
  49. data/test/dummy/log/development.log +7 -0
  50. data/test/dummy/log/test.log +827 -0
  51. data/test/dummy/public/404.html +58 -0
  52. data/test/dummy/public/422.html +58 -0
  53. data/test/dummy/public/500.html +57 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  61. data/test/locale_test.rb +34 -0
  62. data/test/routes_test.rb +96 -0
  63. data/test/test_helper.rb +21 -0
  64. metadata +188 -0
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require 'translatable_routes'
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
+ # config.time_zone = 'Central Time (US & Canada)'
17
+
18
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
+ # config.i18n.default_locale = :de
21
+
22
+ config.translatable_routes.selection = :subdomain
23
+ config.translatable_routes.mapping = {
24
+ en: :us,
25
+ es: [:uy, :ar]
26
+ }
27
+ end
28
+ end
29
+
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: ":memory:"
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Dummy::Application.initialize!
@@ -0,0 +1,29 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+ end
@@ -0,0 +1,80 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both thread web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
+ # config.action_dispatch.rack_cache = true
21
+
22
+ # Disable Rails's static asset server (Apache or nginx will already do this).
23
+ config.serve_static_assets = false
24
+
25
+ # Compress JavaScripts and CSS.
26
+ config.assets.js_compressor = :uglifier
27
+ # config.assets.css_compressor = :sass
28
+
29
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
30
+ config.assets.compile = false
31
+
32
+ # Generate digests for assets URLs.
33
+ config.assets.digest = true
34
+
35
+ # Version of your assets, change this if you want to expire all your assets.
36
+ config.assets.version = '1.0'
37
+
38
+ # Specifies the header that your server uses for sending files.
39
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
+
42
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
+ # config.force_ssl = true
44
+
45
+ # Set to :debug to see everything in the log.
46
+ config.log_level = :info
47
+
48
+ # Prepend all log lines with the following tags.
49
+ # config.log_tags = [ :subdomain, :uuid ]
50
+
51
+ # Use a different logger for distributed setups.
52
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
+
54
+ # Use a different cache store in production.
55
+ # config.cache_store = :mem_cache_store
56
+
57
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
58
+ # config.action_controller.asset_host = "http://assets.example.com"
59
+
60
+ # Precompile additional assets.
61
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
62
+ # config.assets.precompile += %w( search.js )
63
+
64
+ # Ignore bad email addresses and do not raise email delivery errors.
65
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
66
+ # config.action_mailer.raise_delivery_errors = false
67
+
68
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
69
+ # the I18n.default_locale when a translation can not be found).
70
+ config.i18n.fallbacks = true
71
+
72
+ # Send deprecation notices to registered listeners.
73
+ config.active_support.deprecation = :notify
74
+
75
+ # Disable automatic flushing of the log to improve performance.
76
+ # config.autoflush_log = false
77
+
78
+ # Use default logging formatter so that PID and timestamp are not suppressed.
79
+ config.log_formatter = ::Logger::Formatter.new
80
+ end
@@ -0,0 +1,36 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = "public, max-age=3600"
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '94bacb757cb090cba6681745bdf0b277d02b62765f5a593cf267c51ec4d2c138c51a1c414fa82a1d8b5429db29926ec56bcacbab6c2e1e74492c8c0274b65077'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,9 @@
1
+ en-US:
2
+ routes:
3
+ new: "new"
4
+ edit: "edit"
5
+ namespace: "namespace"
6
+ nested: "nested"
7
+ simple: "simple"
8
+ resources: "resources"
9
+ nested_resources: "nested-resources"
@@ -0,0 +1,9 @@
1
+ es-AR:
2
+ routes:
3
+ new: "nuevo"
4
+ edit: "editar"
5
+ namespace: "nombre-de-espacio"
6
+ nested: "anidado"
7
+ simple: "simple"
8
+ resources: "recursos"
9
+ nested_resources: "recursos-anidados"
@@ -0,0 +1,9 @@
1
+ es-UY:
2
+ routes:
3
+ new: "nuevo"
4
+ edit: "editar"
5
+ namespace: "nombre-de-espacio"
6
+ nested: "anidado"
7
+ simple: "simple"
8
+ resources: "recursos"
9
+ nested_resources: "recursos-anidados"
@@ -0,0 +1,59 @@
1
+ Dummy::Application.routes.draw do
2
+
3
+ root to: 'pages#show'
4
+
5
+ # The priority is based upon order of creation: first created -> highest priority.
6
+ # See how all your routes lay out with "rake routes".
7
+
8
+ # You can have the root of your site routed with "root"
9
+ # root 'welcome#index'
10
+
11
+ # Example of regular route:
12
+ # get 'products/:id' => 'catalog#view'
13
+
14
+ # Example of named route that can be invoked with purchase_url(id: product.id)
15
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
16
+
17
+ # Example resource route (maps HTTP verbs to controller actions automatically):
18
+ # resources :products
19
+
20
+ # Example resource route with options:
21
+ # resources :products do
22
+ # member do
23
+ # get 'short'
24
+ # post 'toggle'
25
+ # end
26
+ #
27
+ # collection do
28
+ # get 'sold'
29
+ # end
30
+ # end
31
+
32
+ # Example resource route with sub-resources:
33
+ # resources :products do
34
+ # resources :comments, :sales
35
+ # resource :seller
36
+ # end
37
+
38
+ # Example resource route with more complex sub-resources:
39
+ # resources :products do
40
+ # resources :comments
41
+ # resources :sales do
42
+ # get 'recent', on: :collection
43
+ # end
44
+ # end
45
+
46
+ # Example resource route with concerns:
47
+ # concern :toggleable do
48
+ # post 'toggle'
49
+ # end
50
+ # resources :posts, concerns: :toggleable
51
+ # resources :photos, concerns: :toggleable
52
+
53
+ # Example resource route within a namespace:
54
+ # namespace :admin do
55
+ # # Directs /admin/products/* to Admin::ProductsController
56
+ # # (app/controllers/admin/products_controller.rb)
57
+ # resources :products
58
+ # end
59
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ end
@@ -0,0 +1,7 @@
1
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
5
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.1ms) SELECT version FROM "schema_migrations"
7
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
@@ -0,0 +1,827 @@
1
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+  (0.1ms) SELECT version FROM "schema_migrations"
4
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
5
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
6
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.1ms) SELECT version FROM "schema_migrations"
8
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
9
+  (0.1ms) begin transaction
10
+ -------------------------------------------------------
11
+ LocaleTest: test_should_select_correct_locale_by_prefix
12
+ -------------------------------------------------------
13
+  (0.1ms) rollback transaction
14
+  (0.1ms) begin transaction
15
+ ----------------------------------------------------------
16
+ LocaleTest: test_should_select_correct_locale_by_subdomain
17
+ ----------------------------------------------------------
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+ -----------------------------------------------
21
+ RoutesTest: test_should_translate_prefix_routes
22
+ -----------------------------------------------
23
+  (0.1ms) rollback transaction
24
+  (0.0ms) begin transaction
25
+ --------------------------------------------------
26
+ RoutesTest: test_should_translate_subdomain_routes
27
+ --------------------------------------------------
28
+  (0.0ms) rollback transaction
29
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
30
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
31
+  (0.1ms) SELECT version FROM "schema_migrations"
32
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
33
+  (0.1ms) begin transaction
34
+ -------------------------------------------------------
35
+ LocaleTest: test_should_select_correct_locale_by_prefix
36
+ -------------------------------------------------------
37
+  (0.1ms) rollback transaction
38
+  (0.1ms) begin transaction
39
+ ----------------------------------------------------------
40
+ LocaleTest: test_should_select_correct_locale_by_subdomain
41
+ ----------------------------------------------------------
42
+  (0.1ms) rollback transaction
43
+  (0.0ms) begin transaction
44
+ -----------------------------------------------
45
+ RoutesTest: test_should_translate_prefix_routes
46
+ -----------------------------------------------
47
+  (0.1ms) rollback transaction
48
+  (0.0ms) begin transaction
49
+ --------------------------------------------------
50
+ RoutesTest: test_should_translate_subdomain_routes
51
+ --------------------------------------------------
52
+  (0.0ms) rollback transaction
53
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
55
+  (0.1ms) SELECT version FROM "schema_migrations"
56
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
57
+  (0.1ms) begin transaction
58
+ -------------------------------------------------------
59
+ LocaleTest: test_should_select_correct_locale_by_prefix
60
+ -------------------------------------------------------
61
+  (0.1ms) rollback transaction
62
+  (0.1ms) begin transaction
63
+ ----------------------------------------------------------
64
+ LocaleTest: test_should_select_correct_locale_by_subdomain
65
+ ----------------------------------------------------------
66
+  (0.0ms) rollback transaction
67
+  (0.0ms) begin transaction
68
+ -----------------------------------------------
69
+ RoutesTest: test_should_translate_prefix_routes
70
+ -----------------------------------------------
71
+  (0.1ms) rollback transaction
72
+  (0.0ms) begin transaction
73
+ --------------------------------------------------
74
+ RoutesTest: test_should_translate_subdomain_routes
75
+ --------------------------------------------------
76
+  (0.0ms) rollback transaction
77
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
78
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
79
+  (0.1ms) SELECT version FROM "schema_migrations"
80
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
81
+  (0.1ms) begin transaction
82
+ -------------------------------------------------------
83
+ LocaleTest: test_should_select_correct_locale_by_prefix
84
+ -------------------------------------------------------
85
+  (0.1ms) rollback transaction
86
+  (0.1ms) begin transaction
87
+ ----------------------------------------------------------
88
+ LocaleTest: test_should_select_correct_locale_by_subdomain
89
+ ----------------------------------------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.1ms) begin transaction
92
+ -----------------------------------------------
93
+ RoutesTest: test_should_translate_prefix_routes
94
+ -----------------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.0ms) begin transaction
97
+ --------------------------------------------------
98
+ RoutesTest: test_should_translate_subdomain_routes
99
+ --------------------------------------------------
100
+  (0.1ms) rollback transaction
101
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
102
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
103
+  (0.1ms) SELECT version FROM "schema_migrations"
104
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
105
+  (0.1ms) begin transaction
106
+ -------------------------------------------------------
107
+ LocaleTest: test_should_select_correct_locale_by_prefix
108
+ -------------------------------------------------------
109
+  (0.1ms) rollback transaction
110
+  (0.1ms) begin transaction
111
+ ----------------------------------------------------------
112
+ LocaleTest: test_should_select_correct_locale_by_subdomain
113
+ ----------------------------------------------------------
114
+ Processing by PagesController#index as HTML
115
+ Completed 500 Internal Server Error in 119ms
116
+  (0.1ms) rollback transaction
117
+  (0.1ms) begin transaction
118
+ -----------------------------------------------
119
+ RoutesTest: test_should_translate_prefix_routes
120
+ -----------------------------------------------
121
+  (0.1ms) rollback transaction
122
+  (0.1ms) begin transaction
123
+ --------------------------------------------------
124
+ RoutesTest: test_should_translate_subdomain_routes
125
+ --------------------------------------------------
126
+  (0.0ms) rollback transaction
127
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
128
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
129
+  (0.1ms) SELECT version FROM "schema_migrations"
130
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
131
+  (0.1ms) begin transaction
132
+ -------------------------------------------------------
133
+ LocaleTest: test_should_select_correct_locale_by_prefix
134
+ -------------------------------------------------------
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ ----------------------------------------------------------
138
+ LocaleTest: test_should_select_correct_locale_by_subdomain
139
+ ----------------------------------------------------------
140
+ Processing by PagesController#index as HTML
141
+ Completed 200 OK in 124ms (Views: 123.6ms | ActiveRecord: 0.0ms)
142
+ Processing by PagesController#index as HTML
143
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
144
+ Processing by PagesController#index as HTML
145
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
146
+  (0.1ms) rollback transaction
147
+  (0.0ms) begin transaction
148
+ -----------------------------------------------
149
+ RoutesTest: test_should_translate_prefix_routes
150
+ -----------------------------------------------
151
+  (0.1ms) rollback transaction
152
+  (0.0ms) begin transaction
153
+ --------------------------------------------------
154
+ RoutesTest: test_should_translate_subdomain_routes
155
+ --------------------------------------------------
156
+  (0.0ms) rollback transaction
157
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
158
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
159
+  (0.1ms) SELECT version FROM "schema_migrations"
160
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
161
+  (0.1ms) begin transaction
162
+ -------------------------------------------------------
163
+ LocaleTest: test_should_select_correct_locale_by_prefix
164
+ -------------------------------------------------------
165
+  (0.1ms) rollback transaction
166
+  (0.1ms) begin transaction
167
+ ----------------------------------------------------------
168
+ LocaleTest: test_should_select_correct_locale_by_subdomain
169
+ ----------------------------------------------------------
170
+ Processing by PagesController#index as HTML
171
+ Completed 200 OK in 85ms (Views: 84.6ms | ActiveRecord: 0.0ms)
172
+ Processing by PagesController#index as HTML
173
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
174
+ Processing by PagesController#index as HTML
175
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
176
+  (0.1ms) rollback transaction
177
+  (0.0ms) begin transaction
178
+ -----------------------------------------------
179
+ RoutesTest: test_should_translate_prefix_routes
180
+ -----------------------------------------------
181
+  (0.1ms) rollback transaction
182
+  (0.0ms) begin transaction
183
+ --------------------------------------------------
184
+ RoutesTest: test_should_translate_subdomain_routes
185
+ --------------------------------------------------
186
+  (0.1ms) rollback transaction
187
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
188
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
189
+  (0.1ms) SELECT version FROM "schema_migrations"
190
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
191
+  (0.1ms) begin transaction
192
+ -------------------------------------------------------
193
+ LocaleTest: test_should_select_correct_locale_by_prefix
194
+ -------------------------------------------------------
195
+  (0.1ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+ ----------------------------------------------------------
198
+ LocaleTest: test_should_select_correct_locale_by_subdomain
199
+ ----------------------------------------------------------
200
+ Processing by PagesController#index as HTML
201
+ Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms)
202
+ Processing by PagesController#index as HTML
203
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
204
+ Processing by PagesController#index as HTML
205
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
206
+  (0.1ms) rollback transaction
207
+  (0.0ms) begin transaction
208
+ -----------------------------------------------
209
+ RoutesTest: test_should_translate_prefix_routes
210
+ -----------------------------------------------
211
+  (0.1ms) rollback transaction
212
+  (0.0ms) begin transaction
213
+ --------------------------------------------------
214
+ RoutesTest: test_should_translate_subdomain_routes
215
+ --------------------------------------------------
216
+  (0.0ms) rollback transaction
217
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
218
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
219
+  (0.0ms) SELECT version FROM "schema_migrations"
220
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
221
+  (0.1ms) begin transaction
222
+ -------------------------------------------------------
223
+ LocaleTest: test_should_select_correct_locale_by_prefix
224
+ -------------------------------------------------------
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ ----------------------------------------------------------
228
+ LocaleTest: test_should_select_correct_locale_by_subdomain
229
+ ----------------------------------------------------------
230
+ Processing by PagesController#index as HTML
231
+ Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms)
232
+ Processing by PagesController#index as HTML
233
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
234
+ Processing by PagesController#index as HTML
235
+ Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)
236
+  (0.1ms) rollback transaction
237
+  (0.0ms) begin transaction
238
+ -----------------------------------------------
239
+ RoutesTest: test_should_translate_prefix_routes
240
+ -----------------------------------------------
241
+  (0.1ms) rollback transaction
242
+  (0.0ms) begin transaction
243
+ --------------------------------------------------
244
+ RoutesTest: test_should_translate_subdomain_routes
245
+ --------------------------------------------------
246
+  (0.0ms) rollback transaction
247
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
248
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
249
+  (0.1ms) SELECT version FROM "schema_migrations"
250
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
251
+  (0.1ms) begin transaction
252
+ -------------------------------------------------------
253
+ LocaleTest: test_should_select_correct_locale_by_prefix
254
+ -------------------------------------------------------
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+ ----------------------------------------------------------
258
+ LocaleTest: test_should_select_correct_locale_by_subdomain
259
+ ----------------------------------------------------------
260
+ Processing by PagesController#index as HTML
261
+ Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
262
+ Processing by PagesController#index as HTML
263
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
264
+ Processing by PagesController#index as HTML
265
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
266
+  (0.1ms) rollback transaction
267
+  (0.0ms) begin transaction
268
+ -----------------------------------------------
269
+ RoutesTest: test_should_translate_prefix_routes
270
+ -----------------------------------------------
271
+  (0.1ms) rollback transaction
272
+  (0.0ms) begin transaction
273
+ --------------------------------------------------
274
+ RoutesTest: test_should_translate_subdomain_routes
275
+ --------------------------------------------------
276
+  (0.1ms) rollback transaction
277
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
278
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
279
+  (0.1ms) SELECT version FROM "schema_migrations"
280
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
281
+  (0.1ms) begin transaction
282
+ -------------------------------------------------------
283
+ LocaleTest: test_should_select_correct_locale_by_prefix
284
+ -------------------------------------------------------
285
+  (0.1ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+ ----------------------------------------------------------
288
+ LocaleTest: test_should_select_correct_locale_by_subdomain
289
+ ----------------------------------------------------------
290
+ Processing by PagesController#index as HTML
291
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
292
+ Processing by PagesController#index as HTML
293
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
294
+ Processing by PagesController#index as HTML
295
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
296
+  (0.1ms) rollback transaction
297
+  (0.0ms) begin transaction
298
+ -----------------------------------------------
299
+ RoutesTest: test_should_translate_prefix_routes
300
+ -----------------------------------------------
301
+  (0.1ms) rollback transaction
302
+  (0.1ms) begin transaction
303
+ --------------------------------------------------
304
+ RoutesTest: test_should_translate_subdomain_routes
305
+ --------------------------------------------------
306
+  (0.1ms) rollback transaction
307
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
308
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
309
+  (0.1ms) SELECT version FROM "schema_migrations"
310
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
311
+  (0.1ms) begin transaction
312
+ -------------------------------------------------------
313
+ LocaleTest: test_should_select_correct_locale_by_prefix
314
+ -------------------------------------------------------
315
+  (0.1ms) rollback transaction
316
+  (0.1ms) begin transaction
317
+ ----------------------------------------------------------
318
+ LocaleTest: test_should_select_correct_locale_by_subdomain
319
+ ----------------------------------------------------------
320
+ Processing by PagesController#index as HTML
321
+ Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms)
322
+ Processing by PagesController#index as HTML
323
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
324
+ Processing by PagesController#index as HTML
325
+ Completed 200 OK in 2ms (Views: 2.3ms | ActiveRecord: 0.0ms)
326
+  (0.1ms) rollback transaction
327
+  (0.0ms) begin transaction
328
+ -----------------------------------------------
329
+ RoutesTest: test_should_translate_prefix_routes
330
+ -----------------------------------------------
331
+  (0.1ms) rollback transaction
332
+  (0.0ms) begin transaction
333
+ --------------------------------------------------
334
+ RoutesTest: test_should_translate_subdomain_routes
335
+ --------------------------------------------------
336
+  (0.0ms) rollback transaction
337
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
338
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
339
+  (0.1ms) SELECT version FROM "schema_migrations"
340
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
341
+  (0.1ms) begin transaction
342
+ -------------------------------------------------------
343
+ LocaleTest: test_should_select_correct_locale_by_prefix
344
+ -------------------------------------------------------
345
+  (0.1ms) rollback transaction
346
+  (0.1ms) begin transaction
347
+ ----------------------------------------------------------
348
+ LocaleTest: test_should_select_correct_locale_by_subdomain
349
+ ----------------------------------------------------------
350
+ Processing by PagesController#index as HTML
351
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.0ms)
352
+ Processing by PagesController#index as HTML
353
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
354
+ Processing by PagesController#index as HTML
355
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
356
+  (0.1ms) rollback transaction
357
+  (0.0ms) begin transaction
358
+ -----------------------------------------------
359
+ RoutesTest: test_should_translate_prefix_routes
360
+ -----------------------------------------------
361
+  (0.1ms) rollback transaction
362
+  (0.0ms) begin transaction
363
+ --------------------------------------------------
364
+ RoutesTest: test_should_translate_subdomain_routes
365
+ --------------------------------------------------
366
+  (0.0ms) rollback transaction
367
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
368
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
369
+  (0.0ms) SELECT version FROM "schema_migrations"
370
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
371
+  (0.1ms) begin transaction
372
+ -------------------------------------------------------
373
+ LocaleTest: test_should_select_correct_locale_by_prefix
374
+ -------------------------------------------------------
375
+  (0.1ms) rollback transaction
376
+  (0.1ms) begin transaction
377
+ ----------------------------------------------------------
378
+ LocaleTest: test_should_select_correct_locale_by_subdomain
379
+ ----------------------------------------------------------
380
+ Processing by PagesController#index as HTML
381
+ Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms)
382
+ Processing by PagesController#index as HTML
383
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
384
+ Processing by PagesController#index as HTML
385
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
386
+  (0.1ms) rollback transaction
387
+  (0.0ms) begin transaction
388
+ -----------------------------------------------
389
+ RoutesTest: test_should_translate_prefix_routes
390
+ -----------------------------------------------
391
+  (0.1ms) rollback transaction
392
+  (0.1ms) begin transaction
393
+ --------------------------------------------------
394
+ RoutesTest: test_should_translate_subdomain_routes
395
+ --------------------------------------------------
396
+  (0.1ms) rollback transaction
397
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
398
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
399
+  (0.1ms) SELECT version FROM "schema_migrations"
400
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
401
+  (0.1ms) begin transaction
402
+ -------------------------------------------------------
403
+ LocaleTest: test_should_select_correct_locale_by_prefix
404
+ -------------------------------------------------------
405
+ Processing by PagesController#index as HTML
406
+ Parameters: {"locale"=>"en-US"}
407
+ Rendered pages/index.html.erb within layouts/application (1.1ms)
408
+ Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.0ms)
409
+ Processing by PagesController#index as HTML
410
+ Parameters: {"locale"=>"en-US"}
411
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
412
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
413
+ Processing by PagesController#index as HTML
414
+ Parameters: {"locale"=>"en-US"}
415
+ Rendered pages/index.html.erb within layouts/application (0.2ms)
416
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
417
+  (0.1ms) rollback transaction
418
+  (0.1ms) begin transaction
419
+ ----------------------------------------------------------
420
+ LocaleTest: test_should_select_correct_locale_by_subdomain
421
+ ----------------------------------------------------------
422
+ Processing by PagesController#index as HTML
423
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
424
+ Processing by PagesController#index as HTML
425
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
426
+ Processing by PagesController#index as HTML
427
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
428
+  (0.1ms) rollback transaction
429
+  (0.0ms) begin transaction
430
+ -----------------------------------------------
431
+ RoutesTest: test_should_translate_prefix_routes
432
+ -----------------------------------------------
433
+  (0.1ms) rollback transaction
434
+  (0.0ms) begin transaction
435
+ --------------------------------------------------
436
+ RoutesTest: test_should_translate_subdomain_routes
437
+ --------------------------------------------------
438
+  (0.1ms) rollback transaction
439
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
440
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
441
+  (0.1ms) SELECT version FROM "schema_migrations"
442
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
443
+  (0.1ms) begin transaction
444
+ -------------------------------------------------------
445
+ LocaleTest: test_should_select_correct_locale_by_prefix
446
+ -------------------------------------------------------
447
+ Processing by PagesController#index as HTML
448
+ Parameters: {"locale"=>"en-US"}
449
+ Rendered pages/index.html.erb within layouts/application (0.9ms)
450
+ Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
451
+ Processing by PagesController#index as HTML
452
+ Parameters: {"locale"=>"en-US"}
453
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
454
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
455
+ Processing by PagesController#index as HTML
456
+ Parameters: {"locale"=>"en-US"}
457
+ Rendered pages/index.html.erb within layouts/application (0.3ms)
458
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
459
+  (0.1ms) rollback transaction
460
+  (0.1ms) begin transaction
461
+ ----------------------------------------------------------
462
+ LocaleTest: test_should_select_correct_locale_by_subdomain
463
+ ----------------------------------------------------------
464
+ Processing by PagesController#index as HTML
465
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
466
+ Processing by PagesController#index as HTML
467
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
468
+ Processing by PagesController#index as HTML
469
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
470
+  (0.1ms) rollback transaction
471
+  (0.0ms) begin transaction
472
+ -----------------------------------------------
473
+ RoutesTest: test_should_translate_prefix_routes
474
+ -----------------------------------------------
475
+  (0.1ms) rollback transaction
476
+  (0.1ms) begin transaction
477
+ --------------------------------------------------
478
+ RoutesTest: test_should_translate_subdomain_routes
479
+ --------------------------------------------------
480
+  (0.1ms) rollback transaction
481
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
482
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
483
+  (0.1ms) SELECT version FROM "schema_migrations"
484
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
485
+  (0.1ms) begin transaction
486
+ -------------------------------------------------------
487
+ LocaleTest: test_should_select_correct_locale_by_prefix
488
+ -------------------------------------------------------
489
+  (0.1ms) rollback transaction
490
+  (0.1ms) begin transaction
491
+ ----------------------------------------------------------
492
+ LocaleTest: test_should_select_correct_locale_by_subdomain
493
+ ----------------------------------------------------------
494
+  (0.1ms) rollback transaction
495
+  (0.0ms) begin transaction
496
+ -----------------------------------------------
497
+ RoutesTest: test_should_translate_prefix_routes
498
+ -----------------------------------------------
499
+  (0.1ms) rollback transaction
500
+  (0.1ms) begin transaction
501
+ --------------------------------------------------
502
+ RoutesTest: test_should_translate_subdomain_routes
503
+ --------------------------------------------------
504
+  (0.3ms) rollback transaction
505
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
506
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
507
+  (0.1ms) SELECT version FROM "schema_migrations"
508
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
509
+  (0.1ms) begin transaction
510
+ -------------------------------------------------------
511
+ LocaleTest: test_should_select_correct_locale_by_prefix
512
+ -------------------------------------------------------
513
+ Processing by PagesController#show as HTML
514
+ Parameters: {"locale"=>"en-US"}
515
+ Completed 500 Internal Server Error in 5ms
516
+  (0.1ms) rollback transaction
517
+  (0.1ms) begin transaction
518
+ ----------------------------------------------------------
519
+ LocaleTest: test_should_select_correct_locale_by_subdomain
520
+ ----------------------------------------------------------
521
+ Processing by PagesController#show as HTML
522
+ Completed 500 Internal Server Error in 0ms
523
+  (0.1ms) rollback transaction
524
+  (0.0ms) begin transaction
525
+ -----------------------------------------------
526
+ RoutesTest: test_should_translate_prefix_routes
527
+ -----------------------------------------------
528
+  (0.1ms) rollback transaction
529
+  (0.1ms) begin transaction
530
+ --------------------------------------------------
531
+ RoutesTest: test_should_translate_subdomain_routes
532
+ --------------------------------------------------
533
+  (0.2ms) rollback transaction
534
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
535
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
536
+  (0.1ms) SELECT version FROM "schema_migrations"
537
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
538
+  (0.1ms) begin transaction
539
+ -------------------------------------------------------
540
+ LocaleTest: test_should_select_correct_locale_by_prefix
541
+ -------------------------------------------------------
542
+ Processing by PagesController#show as HTML
543
+ Parameters: {"locale"=>"en-US"}
544
+ Rendered pages/show.html.erb within layouts/application (0.8ms)
545
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
546
+ Processing by PagesController#show as HTML
547
+ Parameters: {"locale"=>"en-US"}
548
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
549
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
550
+ Processing by PagesController#show as HTML
551
+ Parameters: {"locale"=>"en-US"}
552
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
553
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
554
+  (0.1ms) rollback transaction
555
+  (0.1ms) begin transaction
556
+ ----------------------------------------------------------
557
+ LocaleTest: test_should_select_correct_locale_by_subdomain
558
+ ----------------------------------------------------------
559
+ Processing by PagesController#show as HTML
560
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
561
+ Processing by PagesController#show as HTML
562
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
563
+ Processing by PagesController#show as HTML
564
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
565
+  (0.1ms) rollback transaction
566
+  (0.0ms) begin transaction
567
+ -----------------------------------------------
568
+ RoutesTest: test_should_translate_prefix_routes
569
+ -----------------------------------------------
570
+  (0.1ms) rollback transaction
571
+  (0.0ms) begin transaction
572
+ --------------------------------------------------
573
+ RoutesTest: test_should_translate_subdomain_routes
574
+ --------------------------------------------------
575
+  (0.2ms) rollback transaction
576
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
577
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
578
+  (0.1ms) SELECT version FROM "schema_migrations"
579
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
580
+  (0.1ms) begin transaction
581
+ -------------------------------------------------------
582
+ LocaleTest: test_should_select_correct_locale_by_prefix
583
+ -------------------------------------------------------
584
+ Processing by PagesController#show as HTML
585
+ Parameters: {"locale"=>"en-US"}
586
+ Rendered pages/show.html.erb within layouts/application (0.8ms)
587
+ Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
588
+ Processing by PagesController#show as HTML
589
+ Parameters: {"locale"=>"en-US"}
590
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
591
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
592
+ Processing by PagesController#show as HTML
593
+ Parameters: {"locale"=>"en-US"}
594
+ Rendered pages/show.html.erb within layouts/application (0.2ms)
595
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
596
+  (0.1ms) rollback transaction
597
+  (0.1ms) begin transaction
598
+ ----------------------------------------------------------
599
+ LocaleTest: test_should_select_correct_locale_by_subdomain
600
+ ----------------------------------------------------------
601
+ Processing by PagesController#show as HTML
602
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
603
+ Processing by PagesController#show as HTML
604
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
605
+ Processing by PagesController#show as HTML
606
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
607
+  (0.1ms) rollback transaction
608
+  (0.0ms) begin transaction
609
+ -----------------------------------------------
610
+ RoutesTest: test_should_translate_prefix_routes
611
+ -----------------------------------------------
612
+  (0.1ms) rollback transaction
613
+  (0.0ms) begin transaction
614
+ --------------------------------------------------
615
+ RoutesTest: test_should_translate_subdomain_routes
616
+ --------------------------------------------------
617
+  (0.2ms) rollback transaction
618
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
619
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
620
+  (0.1ms) SELECT version FROM "schema_migrations"
621
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
622
+  (0.1ms) begin transaction
623
+ -------------------------------------------------------
624
+ LocaleTest: test_should_select_correct_locale_by_prefix
625
+ -------------------------------------------------------
626
+ Processing by PagesController#show as HTML
627
+ Parameters: {"locale"=>"en-US"}
628
+ Rendered pages/show.html.erb within layouts/application (0.8ms)
629
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
630
+ Processing by PagesController#show as HTML
631
+ Parameters: {"locale"=>"en-US"}
632
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
633
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
634
+ Processing by PagesController#show as HTML
635
+ Parameters: {"locale"=>"en-US"}
636
+ Rendered pages/show.html.erb within layouts/application (0.2ms)
637
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
638
+  (0.1ms) rollback transaction
639
+  (0.1ms) begin transaction
640
+ ----------------------------------------------------------
641
+ LocaleTest: test_should_select_correct_locale_by_subdomain
642
+ ----------------------------------------------------------
643
+ Processing by PagesController#show as HTML
644
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
645
+ Processing by PagesController#show as HTML
646
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
647
+ Processing by PagesController#show as HTML
648
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
649
+  (0.1ms) rollback transaction
650
+  (0.0ms) begin transaction
651
+ -----------------------------------------------
652
+ RoutesTest: test_should_translate_prefix_routes
653
+ -----------------------------------------------
654
+  (0.1ms) rollback transaction
655
+  (0.0ms) begin transaction
656
+ --------------------------------------------------
657
+ RoutesTest: test_should_translate_subdomain_routes
658
+ --------------------------------------------------
659
+  (0.2ms) rollback transaction
660
+  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
661
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
662
+  (0.1ms) SELECT version FROM "schema_migrations"
663
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
664
+  (0.1ms) begin transaction
665
+ -------------------------------------------------------
666
+ LocaleTest: test_should_select_correct_locale_by_prefix
667
+ -------------------------------------------------------
668
+ Processing by PagesController#show as HTML
669
+ Parameters: {"locale"=>"en-US"}
670
+ Rendered pages/show.html.erb within layouts/application (1.0ms)
671
+ Completed 200 OK in 34ms (Views: 33.2ms | ActiveRecord: 0.0ms)
672
+ Processing by PagesController#show as HTML
673
+ Parameters: {"locale"=>"en-US"}
674
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
675
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
676
+ Processing by PagesController#show as HTML
677
+ Parameters: {"locale"=>"en-US"}
678
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
679
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
680
+  (0.1ms) rollback transaction
681
+  (0.1ms) begin transaction
682
+ ----------------------------------------------------------
683
+ LocaleTest: test_should_select_correct_locale_by_subdomain
684
+ ----------------------------------------------------------
685
+ Processing by PagesController#show as HTML
686
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
687
+ Processing by PagesController#show as HTML
688
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
689
+ Processing by PagesController#show as HTML
690
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
691
+  (0.1ms) rollback transaction
692
+  (0.0ms) begin transaction
693
+ -----------------------------------------------
694
+ RoutesTest: test_should_translate_prefix_routes
695
+ -----------------------------------------------
696
+  (0.1ms) rollback transaction
697
+  (0.1ms) begin transaction
698
+ --------------------------------------------------
699
+ RoutesTest: test_should_translate_subdomain_routes
700
+ --------------------------------------------------
701
+  (0.2ms) rollback transaction
702
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
703
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
704
+  (0.1ms) SELECT version FROM "schema_migrations"
705
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
706
+  (0.1ms) begin transaction
707
+ -------------------------------------------------------
708
+ LocaleTest: test_should_select_correct_locale_by_prefix
709
+ -------------------------------------------------------
710
+ Processing by PagesController#show as HTML
711
+ Parameters: {"locale"=>"en-US"}
712
+ Rendered pages/show.html.erb within layouts/application (0.8ms)
713
+ Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
714
+ Processing by PagesController#show as HTML
715
+ Parameters: {"locale"=>"en-US"}
716
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
717
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
718
+ Processing by PagesController#show as HTML
719
+ Parameters: {"locale"=>"en-US"}
720
+ Rendered pages/show.html.erb within layouts/application (0.4ms)
721
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
722
+  (0.1ms) rollback transaction
723
+  (0.1ms) begin transaction
724
+ ----------------------------------------------------------
725
+ LocaleTest: test_should_select_correct_locale_by_subdomain
726
+ ----------------------------------------------------------
727
+ Processing by PagesController#show as HTML
728
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
729
+ Processing by PagesController#show as HTML
730
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
731
+ Processing by PagesController#show as HTML
732
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
733
+  (0.1ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+ -----------------------------------------------
736
+ RoutesTest: test_should_translate_prefix_routes
737
+ -----------------------------------------------
738
+  (0.1ms) rollback transaction
739
+  (0.0ms) begin transaction
740
+ --------------------------------------------------
741
+ RoutesTest: test_should_translate_subdomain_routes
742
+ --------------------------------------------------
743
+  (0.1ms) rollback transaction
744
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
745
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
746
+  (0.0ms) SELECT version FROM "schema_migrations"
747
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
748
+  (0.1ms) begin transaction
749
+ -------------------------------------------------------
750
+ LocaleTest: test_should_select_correct_locale_by_prefix
751
+ -------------------------------------------------------
752
+ Processing by PagesController#show as HTML
753
+ Parameters: {"locale"=>"en-US"}
754
+ Rendered pages/show.html.erb within layouts/application (0.8ms)
755
+ Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms)
756
+ Processing by PagesController#show as HTML
757
+ Parameters: {"locale"=>"en-US"}
758
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
759
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
760
+ Processing by PagesController#show as HTML
761
+ Parameters: {"locale"=>"en-US"}
762
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
763
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
764
+  (0.1ms) rollback transaction
765
+  (0.1ms) begin transaction
766
+ ----------------------------------------------------------
767
+ LocaleTest: test_should_select_correct_locale_by_subdomain
768
+ ----------------------------------------------------------
769
+ Processing by PagesController#show as HTML
770
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
771
+ Processing by PagesController#show as HTML
772
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
773
+ Processing by PagesController#show as HTML
774
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
775
+  (0.1ms) rollback transaction
776
+  (0.0ms) begin transaction
777
+ -----------------------------------------------
778
+ RoutesTest: test_should_translate_prefix_routes
779
+ -----------------------------------------------
780
+  (0.1ms) rollback transaction
781
+  (0.0ms) begin transaction
782
+ --------------------------------------------------
783
+ RoutesTest: test_should_translate_subdomain_routes
784
+ --------------------------------------------------
785
+  (0.1ms) rollback transaction
786
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
787
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
788
+  (0.0ms) SELECT version FROM "schema_migrations"
789
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
790
+  (0.1ms) begin transaction
791
+ -------------------------------------------------------
792
+ LocaleTest: test_should_select_correct_locale_by_prefix
793
+ -------------------------------------------------------
794
+ Processing by PagesController#show as HTML
795
+ Parameters: {"locale"=>"en-US"}
796
+ Rendered pages/show.html.erb within layouts/application (0.9ms)
797
+ Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
798
+ Processing by PagesController#show as HTML
799
+ Parameters: {"locale"=>"en-US"}
800
+ Rendered pages/show.html.erb within layouts/application (0.3ms)
801
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
802
+ Processing by PagesController#show as HTML
803
+ Parameters: {"locale"=>"en-US"}
804
+ Rendered pages/show.html.erb within layouts/application (0.2ms)
805
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
806
+  (0.1ms) rollback transaction
807
+  (0.1ms) begin transaction
808
+ ----------------------------------------------------------
809
+ LocaleTest: test_should_select_correct_locale_by_subdomain
810
+ ----------------------------------------------------------
811
+ Processing by PagesController#show as HTML
812
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
813
+ Processing by PagesController#show as HTML
814
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
815
+ Processing by PagesController#show as HTML
816
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
817
+  (0.0ms) rollback transaction
818
+  (0.0ms) begin transaction
819
+ -----------------------------------------------
820
+ RoutesTest: test_should_translate_prefix_routes
821
+ -----------------------------------------------
822
+  (0.1ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+ --------------------------------------------------
825
+ RoutesTest: test_should_translate_subdomain_routes
826
+ --------------------------------------------------
827
+  (0.1ms) rollback transaction