track302 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/track302/application.js +13 -0
  5. data/app/assets/javascripts/track302/redirect.js +2 -0
  6. data/app/assets/stylesheets/track302/application.css +15 -0
  7. data/app/assets/stylesheets/track302/redirect.css +4 -0
  8. data/app/controllers/track302/application_controller.rb +4 -0
  9. data/app/controllers/track302/redirect_controller.rb +17 -0
  10. data/app/helpers/track302/application_helper.rb +4 -0
  11. data/app/helpers/track302/redirect_helper.rb +4 -0
  12. data/app/models/track302/click.rb +15 -0
  13. data/app/models/track302/link.rb +9 -0
  14. data/app/views/layouts/track302/application.html.erb +14 -0
  15. data/app/views/track302/redirect/show.html.erb +2 -0
  16. data/config/routes.rb +3 -0
  17. data/db/migrate/20160111023755_create_track302_links.rb +10 -0
  18. data/db/migrate/20160111023840_create_track302_clicks.rb +16 -0
  19. data/lib/tasks/track302_tasks.rake +4 -0
  20. data/lib/track302.rb +4 -0
  21. data/lib/track302/engine.rb +5 -0
  22. data/lib/track302/version.rb +3 -0
  23. data/test/controllers/track302/redirect_controller_test.rb +34 -0
  24. data/test/dummy/README.rdoc +28 -0
  25. data/test/dummy/Rakefile +6 -0
  26. data/test/dummy/app/assets/javascripts/application.js +13 -0
  27. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  28. data/test/dummy/app/controllers/application_controller.rb +5 -0
  29. data/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/test/dummy/bin/bundle +3 -0
  32. data/test/dummy/bin/rails +4 -0
  33. data/test/dummy/bin/rake +4 -0
  34. data/test/dummy/bin/setup +29 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +26 -0
  37. data/test/dummy/config/boot.rb +5 -0
  38. data/test/dummy/config/database.yml +25 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +41 -0
  41. data/test/dummy/config/environments/production.rb +79 -0
  42. data/test/dummy/config/environments/test.rb +42 -0
  43. data/test/dummy/config/initializers/assets.rb +11 -0
  44. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  46. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  47. data/test/dummy/config/initializers/inflections.rb +16 -0
  48. data/test/dummy/config/initializers/mime_types.rb +4 -0
  49. data/test/dummy/config/initializers/session_store.rb +3 -0
  50. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  51. data/test/dummy/config/locales/en.yml +23 -0
  52. data/test/dummy/config/routes.rb +4 -0
  53. data/test/dummy/config/secrets.yml +22 -0
  54. data/test/dummy/db/schema.rb +30 -0
  55. data/test/dummy/db/test.sqlite3 +0 -0
  56. data/test/dummy/log/development.log +24 -0
  57. data/test/dummy/log/test.log +3219 -0
  58. data/test/dummy/public/404.html +67 -0
  59. data/test/dummy/public/422.html +67 -0
  60. data/test/dummy/public/500.html +66 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/fixtures/track302/clicks.yml +7 -0
  63. data/test/fixtures/track302/links.yml +9 -0
  64. data/test/integration/navigation_test.rb +8 -0
  65. data/test/models/track302/click_test.rb +9 -0
  66. data/test/models/track302/link_test.rb +24 -0
  67. data/test/test_helper.rb +21 -0
  68. data/test/track302_test.rb +7 -0
  69. metadata +227 -0
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "track302"
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
+ # Do not swallow errors in after_commit/after_rollback callbacks.
23
+ config.active_record.raise_in_transactional_callbacks = true
24
+ end
25
+ end
26
+
@@ -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.exist?(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
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,41 @@
1
+ Rails.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
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -0,0 +1,79 @@
1
+ Rails.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 threaded 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
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
+
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
30
+
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
32
+ config.assets.compile = false
33
+
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
36
+ config.assets.digest = true
37
+
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
+
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
50
+
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
53
+
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+ end
@@ -0,0 +1,42 @@
1
+ Rails.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 file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = 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
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -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,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -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,4 @@
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
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.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,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Track302::Engine => "/track302"
4
+ end
@@ -0,0 +1,22 @@
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 the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 24dd6cdea9849906129067f944df1884782b82429eb015ffc16855eef36cd0f26953eb0fce302c726d0ec0c4a9bc60813ac4c59870f8c7321edb2b7a1dd4aba7
15
+
16
+ test:
17
+ secret_key_base: 17d629e2eae09f451af81cde2e5d0348b87474ff168ac39627e7434be09495e4f00f8b432c4d01a56fe85c784aa7d46e8822f927eedbba2b158f0680394cfad5
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,30 @@
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: 20160111023840) do
15
+
16
+ create_table "track302_clicks", force: :cascade do |t|
17
+ t.string "uuid"
18
+ t.binary "data"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ end
22
+
23
+ create_table "track302_links", force: :cascade do |t|
24
+ t.string "uuid"
25
+ t.string "original"
26
+ t.datetime "created_at", null: false
27
+ t.datetime "updated_at", null: false
28
+ end
29
+
30
+ end
Binary file
@@ -0,0 +1,24 @@
1
+  (10.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateUrlShortenerLinks (20160111023755)
6
+  (0.1ms) begin transaction
7
+  (0.6ms) CREATE TABLE "url_shortener_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
9
+  (1.0ms) commit transaction
10
+ Migrating to CreateUrlShortenerClicks (20160111023840)
11
+  (0.0ms) begin transaction
12
+  (0.5ms) CREATE TABLE "url_shortener_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_shortener_link_id" integer, "ipaddress" varchar, "referrer" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+  (0.1ms) CREATE INDEX "index_url_shortener_clicks_on_url_shortener_link_id" ON "url_shortener_clicks" ("url_shortener_link_id")
14
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
15
+  (1.0ms) commit transaction
16
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+  (0.1ms)  SELECT sql
18
+ FROM sqlite_master
19
+ WHERE name='index_url_shortener_clicks_on_url_shortener_link_id' AND type='index'
20
+ UNION ALL
21
+ SELECT sql
22
+ FROM sqlite_temp_master
23
+ WHERE name='index_url_shortener_clicks_on_url_shortener_link_id' AND type='index'
24
+ 
@@ -0,0 +1,3219 @@
1
+  (17.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateUrlShortenerLinks (20160111023755)
6
+  (0.1ms) begin transaction
7
+  (0.4ms) CREATE TABLE "url_shortener_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
9
+  (0.9ms) commit transaction
10
+ Migrating to CreateUrlShortenerClicks (20160111023840)
11
+  (0.1ms) begin transaction
12
+  (0.3ms) CREATE TABLE "url_shortener_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "link_id" integer, "ipaddress" varchar, "referrer" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
13
+  (0.1ms) CREATE INDEX "index_url_shortener_clicks_on_link_id" ON "url_shortener_clicks" ("link_id")
14
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
15
+  (0.7ms) commit transaction
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+  (0.1ms)  SELECT sql
18
+ FROM sqlite_master
19
+ WHERE name='index_url_shortener_clicks_on_link_id' AND type='index'
20
+ UNION ALL
21
+ SELECT sql
22
+ FROM sqlite_temp_master
23
+ WHERE name='index_url_shortener_clicks_on_link_id' AND type='index'
24
+ 
25
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
26
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
+  (0.1ms)  SELECT sql
28
+ FROM sqlite_master
29
+ WHERE name='index_url_shortener_clicks_on_link_id' AND type='index'
30
+ UNION ALL
31
+ SELECT sql
32
+ FROM sqlite_temp_master
33
+ WHERE name='index_url_shortener_clicks_on_link_id' AND type='index'
34
+ 
35
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
+  (0.1ms) begin transaction
37
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
38
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:48:34', '2016-01-11 02:48:34', 980190962)
39
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:48:34', '2016-01-11 02:48:34', 298486374)
40
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
41
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:48:34', '2016-01-11 02:48:34', 980190962)
42
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:48:34', '2016-01-11 02:48:34', 298486374)
43
+  (0.8ms) commit transaction
44
+  (0.0ms) begin transaction
45
+ ----------------------------
46
+ UrlShortenerTest: test_truth
47
+ ----------------------------
48
+  (0.0ms) rollback transaction
49
+  (0.0ms) begin transaction
50
+ ----------------------------------------------------------
51
+ UrlShortener::RedirectControllerTest: test_should_get_show
52
+ ----------------------------------------------------------
53
+ Processing by UrlShortener::RedirectController#show as HTML
54
+ Rendered text template (0.0ms)
55
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
56
+  (0.1ms) rollback transaction
57
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
58
+  (0.1ms) begin transaction
59
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
60
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:07', '2016-01-11 02:49:07', 980190962)
61
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:07', '2016-01-11 02:49:07', 298486374)
62
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
63
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:07', '2016-01-11 02:49:07', 980190962)
64
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:07', '2016-01-11 02:49:07', 298486374)
65
+  (8.8ms) commit transaction
66
+  (0.1ms) begin transaction
67
+ ----------------------------------------------------------
68
+ UrlShortener::RedirectControllerTest: test_should_get_show
69
+ ----------------------------------------------------------
70
+ Processing by UrlShortener::RedirectController#show as HTML
71
+ Rendered text template (0.0ms)
72
+ Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)
73
+  (0.1ms) rollback transaction
74
+  (0.0ms) begin transaction
75
+ ----------------------------
76
+ UrlShortenerTest: test_truth
77
+ ----------------------------
78
+  (0.0ms) rollback transaction
79
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
+  (0.1ms) begin transaction
81
+ Fixture Delete (0.6ms) DELETE FROM "url_shortener_clicks"
82
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:10', '2016-01-11 02:49:10', 980190962)
83
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:10', '2016-01-11 02:49:10', 298486374)
84
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
85
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:10', '2016-01-11 02:49:10', 980190962)
86
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:10', '2016-01-11 02:49:10', 298486374)
87
+  (8.9ms) commit transaction
88
+  (0.1ms) begin transaction
89
+ ----------------------------------------------------------
90
+ UrlShortener::RedirectControllerTest: test_should_get_show
91
+ ----------------------------------------------------------
92
+ Processing by UrlShortener::RedirectController#show as HTML
93
+ Rendered text template (0.0ms)
94
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)
95
+  (0.1ms) rollback transaction
96
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
97
+  (0.1ms) begin transaction
98
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
99
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:13', '2016-01-11 02:49:13', 980190962)
100
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:49:13', '2016-01-11 02:49:13', 298486374)
101
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
102
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:13', '2016-01-11 02:49:13', 980190962)
103
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:49:13', '2016-01-11 02:49:13', 298486374)
104
+  (8.8ms) commit transaction
105
+  (0.1ms) begin transaction
106
+ ----------------------------------------------------------
107
+ UrlShortener::RedirectControllerTest: test_should_get_show
108
+ ----------------------------------------------------------
109
+ Processing by UrlShortener::RedirectController#show as HTML
110
+ Rendered text template (0.0ms)
111
+ Completed 200 OK in 12ms (Views: 12.1ms | ActiveRecord: 0.0ms)
112
+  (0.1ms) rollback transaction
113
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+  (0.1ms) begin transaction
115
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
116
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:50:44', '2016-01-11 02:50:44', 980190962)
117
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:50:44', '2016-01-11 02:50:44', 298486374)
118
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
119
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:50:44', '2016-01-11 02:50:44', 980190962)
120
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:50:44', '2016-01-11 02:50:44', 298486374)
121
+  (0.9ms) commit transaction
122
+  (0.1ms) begin transaction
123
+ ----------------------------------------------
124
+ UrlShortener::LinkTest: test_autogenerate_uuid
125
+ ----------------------------------------------
126
+  (0.0ms) SAVEPOINT active_record_1
127
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at") VALUES (?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:50:44.089021"], ["updated_at", "2016-01-11 02:50:44.089021"]]
128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
129
+  (0.8ms) rollback transaction
130
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+  (0.1ms) begin transaction
132
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
133
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:50:55', '2016-01-11 02:50:55', 980190962)
134
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:50:55', '2016-01-11 02:50:55', 298486374)
135
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
136
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:50:55', '2016-01-11 02:50:55', 980190962)
137
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:50:55', '2016-01-11 02:50:55', 298486374)
138
+  (8.6ms) commit transaction
139
+  (0.1ms) begin transaction
140
+ ----------------------------------------------
141
+ UrlShortener::LinkTest: test_autogenerate_uuid
142
+ ----------------------------------------------
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at") VALUES (?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:50:55.524565"], ["updated_at", "2016-01-11 02:50:55.524565"]]
145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+  (0.4ms) rollback transaction
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+  (0.1ms) begin transaction
149
+ Fixture Delete (0.5ms) DELETE FROM "url_shortener_clicks"
150
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:51:39', '2016-01-11 02:51:39', 980190962)
151
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:51:39', '2016-01-11 02:51:39', 298486374)
152
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
153
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:51:39', '2016-01-11 02:51:39', 980190962)
154
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:51:39', '2016-01-11 02:51:39', 298486374)
155
+  (8.4ms) commit transaction
156
+  (0.1ms) begin transaction
157
+ ----------------------------------------------
158
+ UrlShortener::LinkTest: test_autogenerate_uuid
159
+ ----------------------------------------------
160
+  (0.0ms) SAVEPOINT active_record_1
161
+ UrlShortener::Link Load (0.3ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "727974c2-6441-41c5-a374-6a45fea2bc94"]]
162
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "727974c2-6441-41c5-a374-6a45fea2bc94"], ["created_at", "2016-01-11 02:51:39.855436"], ["updated_at", "2016-01-11 02:51:39.855436"]]
163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
164
+  (0.5ms) rollback transaction
165
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
166
+  (0.1ms) begin transaction
167
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
168
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:52:18', '2016-01-11 02:52:18', 980190962)
169
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:52:18', '2016-01-11 02:52:18', 298486374)
170
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
171
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:52:18', '2016-01-11 02:52:18', 980190962)
172
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:52:18', '2016-01-11 02:52:18', 298486374)
173
+  (8.5ms) commit transaction
174
+  (0.1ms) begin transaction
175
+ ----------------------------------------------
176
+ UrlShortener::LinkTest: test_autogenerate_uuid
177
+ ----------------------------------------------
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "65369513-2909-43a1-ae48-e52cd31944fe"]]
180
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "65369513-2909-43a1-ae48-e52cd31944fe"], ["created_at", "2016-01-11 02:52:18.351848"], ["updated_at", "2016-01-11 02:52:18.351848"]]
181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
182
+  (0.5ms) rollback transaction
183
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
184
+  (0.1ms) begin transaction
185
+ Fixture Delete (0.8ms) DELETE FROM "url_shortener_clicks"
186
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:52:33', '2016-01-11 02:52:33', 980190962)
187
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:52:33', '2016-01-11 02:52:33', 298486374)
188
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
189
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:52:33', '2016-01-11 02:52:33', 980190962)
190
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:52:33', '2016-01-11 02:52:33', 298486374)
191
+  (8.8ms) commit transaction
192
+  (0.1ms) begin transaction
193
+ ----------------------------------------------
194
+ UrlShortener::LinkTest: test_autogenerate_uuid
195
+ ----------------------------------------------
196
+  (0.1ms) SAVEPOINT active_record_1
197
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "526d57a2-2ece-471b-8339-deba2c34e1f9"]]
198
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "526d57a2-2ece-471b-8339-deba2c34e1f9"], ["created_at", "2016-01-11 02:52:33.433367"], ["updated_at", "2016-01-11 02:52:33.433367"]]
199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
200
+  (1.1ms) rollback transaction
201
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
202
+  (0.1ms) begin transaction
203
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
204
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:53:12', '2016-01-11 02:53:12', 980190962)
205
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:53:12', '2016-01-11 02:53:12', 298486374)
206
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
207
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:53:12', '2016-01-11 02:53:12', 980190962)
208
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:53:12', '2016-01-11 02:53:12', 298486374)
209
+  (0.8ms) commit transaction
210
+  (0.1ms) begin transaction
211
+ ------------------------------------------------
212
+ UrlShortener::LinkTest: test_stores_original_url
213
+ ------------------------------------------------
214
+  (0.0ms) rollback transaction
215
+  (0.1ms) begin transaction
216
+ ----------------------------------------------
217
+ UrlShortener::LinkTest: test_autogenerate_uuid
218
+ ----------------------------------------------
219
+  (0.0ms) rollback transaction
220
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
221
+  (0.1ms) begin transaction
222
+ Fixture Delete (0.8ms) DELETE FROM "url_shortener_clicks"
223
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:53:24', '2016-01-11 02:53:24', 980190962)
224
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:53:24', '2016-01-11 02:53:24', 298486374)
225
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
226
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:53:24', '2016-01-11 02:53:24', 980190962)
227
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:53:24', '2016-01-11 02:53:24', 298486374)
228
+  (9.1ms) commit transaction
229
+  (0.1ms) begin transaction
230
+ ----------------------------------------------
231
+ UrlShortener::LinkTest: test_autogenerate_uuid
232
+ ----------------------------------------------
233
+  (0.0ms) SAVEPOINT active_record_1
234
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "00daf6c1-3d2d-4f99-8a62-3b66fc4a4248"]]
235
+ SQL (1.4ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "00daf6c1-3d2d-4f99-8a62-3b66fc4a4248"], ["created_at", "2016-01-11 02:53:24.240484"], ["updated_at", "2016-01-11 02:53:24.240484"]]
236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
237
+  (1.0ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+ ------------------------------------------------
240
+ UrlShortener::LinkTest: test_stores_original_url
241
+ ------------------------------------------------
242
+  (0.0ms) SAVEPOINT active_record_1
243
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f1f4d78e-3c9d-4d53-a3ee-8fe46bc00be1"]]
244
+ SQL (0.7ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "f1f4d78e-3c9d-4d53-a3ee-8fe46bc00be1"], ["created_at", "2016-01-11 02:53:24.245950"], ["updated_at", "2016-01-11 02:53:24.245950"]]
245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
246
+  (0.6ms) rollback transaction
247
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
248
+  (0.1ms) begin transaction
249
+ Fixture Delete (0.5ms) DELETE FROM "url_shortener_clicks"
250
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:54:10', '2016-01-11 02:54:10', 980190962)
251
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:54:10', '2016-01-11 02:54:10', 298486374)
252
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
253
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:54:10', '2016-01-11 02:54:10', 980190962)
254
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:54:10', '2016-01-11 02:54:10', 298486374)
255
+  (8.3ms) commit transaction
256
+  (0.1ms) begin transaction
257
+ ------------------------------------------------
258
+ UrlShortener::LinkTest: test_stores_original_url
259
+ ------------------------------------------------
260
+  (0.1ms) SAVEPOINT active_record_1
261
+ UrlShortener::Link Load (0.3ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "4e257f13-a78e-4c2e-b9a8-a4f5abb189d7"]]
262
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:54:10.623608"], ["updated_at", "2016-01-11 02:54:10.623608"], ["uuid", "4e257f13-a78e-4c2e-b9a8-a4f5abb189d7"]]
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (0.5ms) rollback transaction
265
+  (0.1ms) begin transaction
266
+ ----------------------------------------------
267
+ UrlShortener::LinkTest: test_autogenerate_uuid
268
+ ----------------------------------------------
269
+  (0.0ms) SAVEPOINT active_record_1
270
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "682dddf0-199d-4e10-92ac-87c756e3f347"]]
271
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:54:10.632400"], ["updated_at", "2016-01-11 02:54:10.632400"], ["uuid", "682dddf0-199d-4e10-92ac-87c756e3f347"]]
272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
273
+  (1.4ms) rollback transaction
274
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
275
+  (0.1ms) begin transaction
276
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
277
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:26', '2016-01-11 02:55:26', 980190962)
278
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:26', '2016-01-11 02:55:26', 298486374)
279
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
280
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:26', '2016-01-11 02:55:26', 980190962)
281
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:26', '2016-01-11 02:55:26', 298486374)
282
+  (9.0ms) commit transaction
283
+  (0.1ms) begin transaction
284
+ ----------------------------------------------
285
+ UrlShortener::LinkTest: test_autogenerate_uuid
286
+ ----------------------------------------------
287
+  (0.1ms) SAVEPOINT active_record_1
288
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "20ec1526-3540-4331-8130-8a31f3242172"]]
289
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:26.703754"], ["updated_at", "2016-01-11 02:55:26.703754"], ["uuid", "20ec1526-3540-4331-8130-8a31f3242172"]]
290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
291
+  (0.4ms) rollback transaction
292
+  (0.0ms) begin transaction
293
+ ---------------------------------------------------------------
294
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
295
+ ---------------------------------------------------------------
296
+  (0.0ms) SAVEPOINT active_record_1
297
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "bc320b2d-5d96-45a3-a358-444b175cc734"]]
298
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:26.712019"], ["updated_at", "2016-01-11 02:55:26.712019"], ["uuid", "bc320b2d-5d96-45a3-a358-444b175cc734"]]
299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
300
+  (0.1ms) SAVEPOINT active_record_1
301
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e960ef21-133e-4b45-9042-53e6bf7585a9"]]
302
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "e960ef21-133e-4b45-9042-53e6bf7585a9"], ["created_at", "2016-01-11 02:55:26.714562"], ["updated_at", "2016-01-11 02:55:26.714562"]]
303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
304
+  (0.9ms) rollback transaction
305
+  (0.1ms) begin transaction
306
+ ------------------------------------------------
307
+ UrlShortener::LinkTest: test_stores_original_url
308
+ ------------------------------------------------
309
+  (0.0ms) SAVEPOINT active_record_1
310
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "c428c506-d1d8-4e83-9ce5-3287910f4acd"]]
311
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:26.718651"], ["updated_at", "2016-01-11 02:55:26.718651"], ["uuid", "c428c506-d1d8-4e83-9ce5-3287910f4acd"]]
312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
313
+  (0.5ms) rollback transaction
314
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
315
+  (0.1ms) begin transaction
316
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
317
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:36', '2016-01-11 02:55:36', 980190962)
318
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:36', '2016-01-11 02:55:36', 298486374)
319
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
320
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:36', '2016-01-11 02:55:36', 980190962)
321
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:36', '2016-01-11 02:55:36', 298486374)
322
+  (8.9ms) commit transaction
323
+  (0.1ms) begin transaction
324
+ ----------------------------------------------
325
+ UrlShortener::LinkTest: test_autogenerate_uuid
326
+ ----------------------------------------------
327
+  (0.1ms) SAVEPOINT active_record_1
328
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "228e50c9-db67-4e8e-8ed8-d69bcfc01598"]]
329
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "228e50c9-db67-4e8e-8ed8-d69bcfc01598"], ["created_at", "2016-01-11 02:55:36.038175"], ["updated_at", "2016-01-11 02:55:36.038175"]]
330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
331
+  (0.4ms) rollback transaction
332
+  (0.1ms) begin transaction
333
+ ---------------------------------------------------------------
334
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
335
+ ---------------------------------------------------------------
336
+  (0.0ms) SAVEPOINT active_record_1
337
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "837f34ee-d304-49d7-95d6-05f83df6437a"]]
338
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "837f34ee-d304-49d7-95d6-05f83df6437a"], ["created_at", "2016-01-11 02:55:36.041909"], ["updated_at", "2016-01-11 02:55:36.041909"]]
339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
340
+  (0.0ms) SAVEPOINT active_record_1
341
+ SQL (1.3ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "837f34ee-d304-49d7-95d6-05f83df6437a"], ["created_at", "2016-01-11 02:55:36.043119"], ["updated_at", "2016-01-11 02:55:36.043119"]]
342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
343
+  (0.8ms) rollback transaction
344
+  (0.1ms) begin transaction
345
+ ------------------------------------------------
346
+ UrlShortener::LinkTest: test_stores_original_url
347
+ ------------------------------------------------
348
+  (0.0ms) SAVEPOINT active_record_1
349
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "002bb290-9354-4722-be56-34dbd491becf"]]
350
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "002bb290-9354-4722-be56-34dbd491becf"], ["created_at", "2016-01-11 02:55:36.047611"], ["updated_at", "2016-01-11 02:55:36.047611"]]
351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
352
+  (0.4ms) rollback transaction
353
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
354
+  (0.1ms) begin transaction
355
+ Fixture Delete (0.5ms) DELETE FROM "url_shortener_clicks"
356
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:40', '2016-01-11 02:55:40', 980190962)
357
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:55:40', '2016-01-11 02:55:40', 298486374)
358
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
359
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:40', '2016-01-11 02:55:40', 980190962)
360
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:55:40', '2016-01-11 02:55:40', 298486374)
361
+  (9.0ms) commit transaction
362
+  (0.1ms) begin transaction
363
+ ----------------------------------------------
364
+ UrlShortener::LinkTest: test_autogenerate_uuid
365
+ ----------------------------------------------
366
+  (0.1ms) SAVEPOINT active_record_1
367
+ UrlShortener::Link Load (0.3ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "70a71cfa-9d50-4dd0-badd-2b7d0adcf232"]]
368
+ SQL (0.7ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:40.919713"], ["updated_at", "2016-01-11 02:55:40.919713"], ["uuid", "70a71cfa-9d50-4dd0-badd-2b7d0adcf232"]]
369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
370
+  (1.4ms) rollback transaction
371
+  (0.1ms) begin transaction
372
+ ---------------------------------------------------------------
373
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
374
+ ---------------------------------------------------------------
375
+  (0.1ms) SAVEPOINT active_record_1
376
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "bccb65f5-27f1-472b-b746-49b0dd022279"]]
377
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:40.930767"], ["updated_at", "2016-01-11 02:55:40.930767"], ["uuid", "bccb65f5-27f1-472b-b746-49b0dd022279"]]
378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
379
+  (0.0ms) SAVEPOINT active_record_1
380
+ UrlShortener::Link Load (0.0ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5813a4c6-371e-4394-905d-7d929fe987fc"]]
381
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["uuid", "5813a4c6-371e-4394-905d-7d929fe987fc"], ["created_at", "2016-01-11 02:55:40.932991"], ["updated_at", "2016-01-11 02:55:40.932991"]]
382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
383
+  (0.9ms) rollback transaction
384
+  (0.1ms) begin transaction
385
+ ------------------------------------------------
386
+ UrlShortener::LinkTest: test_stores_original_url
387
+ ------------------------------------------------
388
+  (0.0ms) SAVEPOINT active_record_1
389
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7694e3cc-a6d5-4a4d-9426-e557384f27de"]]
390
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:55:40.936342"], ["updated_at", "2016-01-11 02:55:40.936342"], ["uuid", "7694e3cc-a6d5-4a4d-9426-e557384f27de"]]
391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
392
+  (0.8ms) rollback transaction
393
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
394
+  (0.2ms) begin transaction
395
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
396
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:56:32', '2016-01-11 02:56:32', 980190962)
397
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:56:32', '2016-01-11 02:56:32', 298486374)
398
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
399
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:56:32', '2016-01-11 02:56:32', 980190962)
400
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:56:32', '2016-01-11 02:56:32', 298486374)
401
+  (9.0ms) commit transaction
402
+  (0.1ms) begin transaction
403
+ ----------------------------------------------------------
404
+ UrlShortener::RedirectControllerTest: test_should_get_show
405
+ ----------------------------------------------------------
406
+  (0.1ms) SAVEPOINT active_record_1
407
+ UrlShortener::Link Load (0.3ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "df9c4cf6-eade-45a4-9ad7-ff43b6850976"]]
408
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:56:32.382395"], ["updated_at", "2016-01-11 02:56:32.382395"], ["uuid", "df9c4cf6-eade-45a4-9ad7-ff43b6850976"]]
409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
410
+ Processing by UrlShortener::RedirectController#show as HTML
411
+ Parameters: {"uuid"=>"df9c4cf6-eade-45a4-9ad7-ff43b6850976", "path"=>"/"}
412
+ Rendered text template (0.0ms)
413
+ Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.0ms)
414
+  (0.5ms) rollback transaction
415
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
416
+  (0.1ms) begin transaction
417
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
418
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:57:18', '2016-01-11 02:57:18', 980190962)
419
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:57:18', '2016-01-11 02:57:18', 298486374)
420
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
421
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:57:18', '2016-01-11 02:57:18', 980190962)
422
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:57:18', '2016-01-11 02:57:18', 298486374)
423
+  (9.1ms) commit transaction
424
+  (0.1ms) begin transaction
425
+ ----------------------------------------------------------
426
+ UrlShortener::RedirectControllerTest: test_should_get_show
427
+ ----------------------------------------------------------
428
+  (0.1ms) SAVEPOINT active_record_1
429
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6f5b108c-8c55-438b-92d0-58c83fcfa86c"]]
430
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/?q=123#anchor456"], ["created_at", "2016-01-11 02:57:18.711357"], ["updated_at", "2016-01-11 02:57:18.711357"], ["uuid", "6f5b108c-8c55-438b-92d0-58c83fcfa86c"]]
431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
432
+ Processing by UrlShortener::RedirectController#show as HTML
433
+ Parameters: {"uuid"=>"6f5b108c-8c55-438b-92d0-58c83fcfa86c", "path"=>"/"}
434
+ Rendered text template (0.0ms)
435
+ Completed 200 OK in 6ms (Views: 6.1ms | ActiveRecord: 0.0ms)
436
+  (0.7ms) rollback transaction
437
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
438
+  (0.1ms) begin transaction
439
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
440
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:58:23', '2016-01-11 02:58:23', 980190962)
441
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:58:23', '2016-01-11 02:58:23', 298486374)
442
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
443
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:58:23', '2016-01-11 02:58:23', 980190962)
444
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:58:23', '2016-01-11 02:58:23', 298486374)
445
+  (8.2ms) commit transaction
446
+  (0.1ms) begin transaction
447
+ ------------------------------------------------
448
+ UrlShortener::LinkTest: test_stores_original_url
449
+ ------------------------------------------------
450
+  (0.1ms) SAVEPOINT active_record_1
451
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5f3822ba-ad56-46fc-9b90-3929292f9dc3"]]
452
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 02:58:23.307056"], ["updated_at", "2016-01-11 02:58:23.307056"], ["uuid", "5f3822ba-ad56-46fc-9b90-3929292f9dc3"]]
453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
454
+  (0.4ms) rollback transaction
455
+  (0.1ms) begin transaction
456
+ ---------------------------------------------------------------
457
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
458
+ ---------------------------------------------------------------
459
+  (0.0ms) SAVEPOINT active_record_1
460
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "20d7f500-037e-4c91-ab21-54e7218aa3ba"]]
461
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 02:58:23.315259"], ["updated_at", "2016-01-11 02:58:23.315259"], ["uuid", "20d7f500-037e-4c91-ab21-54e7218aa3ba"]]
462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
463
+  (0.1ms) SAVEPOINT active_record_1
464
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "16944657-f2af-45b9-9eca-5afed0c98fb2"]]
465
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "16944657-f2af-45b9-9eca-5afed0c98fb2"], ["created_at", "2016-01-11 02:58:23.318029"], ["updated_at", "2016-01-11 02:58:23.318029"]]
466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
467
+  (0.6ms) rollback transaction
468
+  (0.0ms) begin transaction
469
+ ----------------------------------------------
470
+ UrlShortener::LinkTest: test_autogenerate_uuid
471
+ ----------------------------------------------
472
+  (0.0ms) SAVEPOINT active_record_1
473
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "b5bdf627-5af8-4cc1-a35a-a2f73cfc0004"]]
474
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 02:58:23.321536"], ["updated_at", "2016-01-11 02:58:23.321536"], ["uuid", "b5bdf627-5af8-4cc1-a35a-a2f73cfc0004"]]
475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
476
+  (0.4ms) rollback transaction
477
+  (0.1ms) begin transaction
478
+ ----------------------------------------------------------
479
+ UrlShortener::RedirectControllerTest: test_should_get_show
480
+ ----------------------------------------------------------
481
+  (0.1ms) SAVEPOINT active_record_1
482
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "fe2d6300-664b-4947-a277-921ee86a8a15"]]
483
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 02:58:23.368782"], ["updated_at", "2016-01-11 02:58:23.368782"], ["uuid", "fe2d6300-664b-4947-a277-921ee86a8a15"]]
484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
485
+ Processing by UrlShortener::RedirectController#show as HTML
486
+ Parameters: {"uuid"=>"fe2d6300-664b-4947-a277-921ee86a8a15", "path"=>"/one/two%20three"}
487
+ Rendered text template (0.0ms)
488
+ Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)
489
+  (0.9ms) rollback transaction
490
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
491
+  (0.1ms) begin transaction
492
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
493
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:58:41', '2016-01-11 02:58:41', 980190962)
494
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 02:58:41', '2016-01-11 02:58:41', 298486374)
495
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
496
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:58:41', '2016-01-11 02:58:41', 980190962)
497
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 02:58:41', '2016-01-11 02:58:41', 298486374)
498
+  (9.0ms) commit transaction
499
+  (0.1ms) begin transaction
500
+ ----------------------------------------------------------
501
+ UrlShortener::RedirectControllerTest: test_should_get_show
502
+ ----------------------------------------------------------
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "39b41a73-452a-4739-9de4-15641b52d1b6"]]
505
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 02:58:41.428371"], ["updated_at", "2016-01-11 02:58:41.428371"], ["uuid", "39b41a73-452a-4739-9de4-15641b52d1b6"]]
506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
507
+ Processing by UrlShortener::RedirectController#show as HTML
508
+ Parameters: {"uuid"=>"39b41a73-452a-4739-9de4-15641b52d1b6", "path"=>"/one/two%20three"}
509
+ Rendered text template (0.0ms)
510
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
511
+  (0.9ms) rollback transaction
512
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
513
+  (0.1ms) begin transaction
514
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
515
+ Fixture Insert (0.4ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:01:13', '2016-01-11 03:01:13', 980190962)
516
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:01:13', '2016-01-11 03:01:13', 298486374)
517
+ Fixture Delete (0.4ms) DELETE FROM "url_shortener_links"
518
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:01:13', '2016-01-11 03:01:13', 980190962)
519
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:01:13', '2016-01-11 03:01:13', 298486374)
520
+  (0.7ms) commit transaction
521
+  (0.0ms) begin transaction
522
+ ----------------------------------------------------------
523
+ UrlShortener::RedirectControllerTest: test_should_get_show
524
+ ----------------------------------------------------------
525
+  (0.1ms) SAVEPOINT active_record_1
526
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "eb00f055-1317-4220-9954-b290436c4efc"]]
527
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:01:13.542305"], ["updated_at", "2016-01-11 03:01:13.542305"], ["uuid", "eb00f055-1317-4220-9954-b290436c4efc"]]
528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
529
+ Processing by UrlShortener::RedirectController#show as HTML
530
+ Parameters: {"uuid"=>"eb00f055-1317-4220-9954-b290436c4efc", "path"=>"/one/two%20three"}
531
+ Rendered text template (0.0ms)
532
+ Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
533
+  (0.4ms) rollback transaction
534
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
535
+  (0.1ms) begin transaction
536
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
537
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:01:18', '2016-01-11 03:01:18', 980190962)
538
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:01:18', '2016-01-11 03:01:18', 298486374)
539
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
540
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:01:18', '2016-01-11 03:01:18', 980190962)
541
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:01:18', '2016-01-11 03:01:18', 298486374)
542
+  (9.0ms) commit transaction
543
+  (0.1ms) begin transaction
544
+ ----------------------------------------------------------------
545
+ UrlShortener::RedirectControllerTest: test_should_get_redirected
546
+ ----------------------------------------------------------------
547
+  (0.1ms) SAVEPOINT active_record_1
548
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d44a6388-31cf-48ed-bb7f-f3c553cde5e4"]]
549
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:01:18.838534"], ["updated_at", "2016-01-11 03:01:18.838534"], ["uuid", "d44a6388-31cf-48ed-bb7f-f3c553cde5e4"]]
550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
551
+ Processing by UrlShortener::RedirectController#show as HTML
552
+ Parameters: {"uuid"=>"d44a6388-31cf-48ed-bb7f-f3c553cde5e4", "path"=>"/one/two%20three"}
553
+ Rendered text template (0.0ms)
554
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
555
+  (0.4ms) rollback transaction
556
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
557
+  (0.1ms) begin transaction
558
+ Fixture Delete (0.4ms) DELETE FROM "url_shortener_clicks"
559
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:02:26', '2016-01-11 03:02:26', 980190962)
560
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:02:26', '2016-01-11 03:02:26', 298486374)
561
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
562
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:02:26', '2016-01-11 03:02:26', 980190962)
563
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:02:26', '2016-01-11 03:02:26', 298486374)
564
+  (8.2ms) commit transaction
565
+  (0.1ms) begin transaction
566
+ ----------------------------------------------------------------
567
+ UrlShortener::RedirectControllerTest: test_should_get_redirected
568
+ ----------------------------------------------------------------
569
+  (0.1ms) SAVEPOINT active_record_1
570
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "caab2bf0-05de-404c-b65b-3d8725e1e8be"]]
571
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:02:26.807138"], ["updated_at", "2016-01-11 03:02:26.807138"], ["uuid", "caab2bf0-05de-404c-b65b-3d8725e1e8be"]]
572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
573
+ Processing by UrlShortener::RedirectController#show as HTML
574
+ Parameters: {"uuid"=>"caab2bf0-05de-404c-b65b-3d8725e1e8be", "path"=>"/one/two%20three"}
575
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "caab2bf0-05de-404c-b65b-3d8725e1e8be"]]
576
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
577
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
578
+  (0.4ms) rollback transaction
579
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
580
+  (0.1ms) begin transaction
581
+ Fixture Delete (0.9ms) DELETE FROM "url_shortener_clicks"
582
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:03:05', '2016-01-11 03:03:05', 980190962)
583
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:03:05', '2016-01-11 03:03:05', 298486374)
584
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
585
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:03:05', '2016-01-11 03:03:05', 980190962)
586
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:03:05', '2016-01-11 03:03:05', 298486374)
587
+  (8.0ms) commit transaction
588
+  (0.1ms) begin transaction
589
+ ---------------------------------------------------------------------
590
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
591
+ ---------------------------------------------------------------------
592
+  (0.1ms) SAVEPOINT active_record_1
593
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "2cfdb69e-232f-488d-a330-f6b287c0f8bd"]]
594
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:03:05.434495"], ["updated_at", "2016-01-11 03:03:05.434495"], ["uuid", "2cfdb69e-232f-488d-a330-f6b287c0f8bd"]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ Processing by UrlShortener::RedirectController#show as HTML
597
+ Parameters: {"uuid"=>"wrong2cfdb69e-232f-488d-a330-f6b287c0f8bd", "path"=>"/one/two%20three"}
598
+ UrlShortener::Link Load (0.0ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong2cfdb69e-232f-488d-a330-f6b287c0f8bd"]]
599
+ Rendered text template (0.0ms)
600
+ Completed 404 Not Found in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
601
+  (0.8ms) rollback transaction
602
+  (0.1ms) begin transaction
603
+ --------------------------------------------------------------------------------
604
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
605
+ --------------------------------------------------------------------------------
606
+  (0.0ms) SAVEPOINT active_record_1
607
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7b664acf-b5ee-497b-88b6-e8da0a0cc625"]]
608
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:03:05.456389"], ["updated_at", "2016-01-11 03:03:05.456389"], ["uuid", "7b664acf-b5ee-497b-88b6-e8da0a0cc625"]]
609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
610
+ Processing by UrlShortener::RedirectController#show as HTML
611
+ Parameters: {"uuid"=>"7b664acf-b5ee-497b-88b6-e8da0a0cc625", "path"=>"/one/two%20three"}
612
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7b664acf-b5ee-497b-88b6-e8da0a0cc625"]]
613
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
614
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
615
+  (0.6ms) rollback transaction
616
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
617
+  (0.1ms) begin transaction
618
+ Fixture Delete (1.3ms) DELETE FROM "url_shortener_clicks"
619
+ Fixture Insert (0.5ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:04:25', '2016-01-11 03:04:25', 980190962)
620
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:04:25', '2016-01-11 03:04:25', 298486374)
621
+ Fixture Delete (0.5ms) DELETE FROM "url_shortener_links"
622
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:04:25', '2016-01-11 03:04:25', 980190962)
623
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:04:25', '2016-01-11 03:04:25', 298486374)
624
+  (1.3ms) commit transaction
625
+  (0.1ms) begin transaction
626
+ ---------------------------------------------------------------------
627
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
628
+ ---------------------------------------------------------------------
629
+  (0.1ms) SAVEPOINT active_record_1
630
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "76339c98-0a91-478c-a02d-cff170a38425"]]
631
+ SQL (0.7ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:04:25.696777"], ["updated_at", "2016-01-11 03:04:25.696777"], ["uuid", "76339c98-0a91-478c-a02d-cff170a38425"]]
632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
633
+ Processing by UrlShortener::RedirectController#show as HTML
634
+ Parameters: {"uuid"=>"wrong76339c98-0a91-478c-a02d-cff170a38425", "path"=>"/one/two%20three"}
635
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong76339c98-0a91-478c-a02d-cff170a38425"]]
636
+ Rendered text template (0.0ms)
637
+ Completed 404 Not Found in 9ms (Views: 9.0ms | ActiveRecord: 0.1ms)
638
+  (0.7ms) rollback transaction
639
+  (0.0ms) begin transaction
640
+ --------------------------------------------------------------------------------
641
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
642
+ --------------------------------------------------------------------------------
643
+  (0.1ms) SAVEPOINT active_record_1
644
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8c34f09a-28b5-4b0b-b6f4-441f4cac33b8"]]
645
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:04:25.723286"], ["updated_at", "2016-01-11 03:04:25.723286"], ["uuid", "8c34f09a-28b5-4b0b-b6f4-441f4cac33b8"]]
646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
647
+ Processing by UrlShortener::RedirectController#show as HTML
648
+ Parameters: {"uuid"=>"8c34f09a-28b5-4b0b-b6f4-441f4cac33b8", "path"=>"/one/two%20three"}
649
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8c34f09a-28b5-4b0b-b6f4-441f4cac33b8"]]
650
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
651
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
652
+  (0.8ms) rollback transaction
653
+  (0.1ms) begin transaction
654
+ ---------------------------------------------------------------------
655
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
656
+ ---------------------------------------------------------------------
657
+  (0.1ms) SAVEPOINT active_record_1
658
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5a077aa9-f027-480d-9981-e43f104b933d"]]
659
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:04:25.730339"], ["updated_at", "2016-01-11 03:04:25.730339"], ["uuid", "5a077aa9-f027-480d-9981-e43f104b933d"]]
660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
661
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? [["link_id", 980190963]]
662
+ Processing by UrlShortener::RedirectController#show as HTML
663
+ Parameters: {"uuid"=>"5a077aa9-f027-480d-9981-e43f104b933d", "path"=>"/one/two%20three"}
664
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5a077aa9-f027-480d-9981-e43f104b933d"]]
665
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
666
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
667
+  (0.0ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? [["link_id", 980190963]]
668
+  (0.7ms) rollback transaction
669
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
670
+  (0.1ms) begin transaction
671
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
672
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:05:32', '2016-01-11 03:05:32', 980190962)
673
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:05:32', '2016-01-11 03:05:32', 298486374)
674
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
675
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:05:32', '2016-01-11 03:05:32', 980190962)
676
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:05:32', '2016-01-11 03:05:32', 298486374)
677
+  (9.1ms) commit transaction
678
+  (0.1ms) begin transaction
679
+ ---------------------------------------------------------------------
680
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
681
+ ---------------------------------------------------------------------
682
+  (0.1ms) SAVEPOINT active_record_1
683
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "492c40d8-54a9-429c-b5a2-f1784d306cf5"]]
684
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:32.729506"], ["updated_at", "2016-01-11 03:05:32.729506"], ["uuid", "492c40d8-54a9-429c-b5a2-f1784d306cf5"]]
685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
686
+ Processing by UrlShortener::RedirectController#show as HTML
687
+ Parameters: {"uuid"=>"wrong492c40d8-54a9-429c-b5a2-f1784d306cf5", "path"=>"/one/two%20three"}
688
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong492c40d8-54a9-429c-b5a2-f1784d306cf5"]]
689
+ Rendered text template (0.0ms)
690
+ Completed 404 Not Found in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms)
691
+  (0.6ms) rollback transaction
692
+  (0.1ms) begin transaction
693
+ ---------------------------------------------------------------------
694
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
695
+ ---------------------------------------------------------------------
696
+  (0.0ms) SAVEPOINT active_record_1
697
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7069019e-9966-4618-928c-7e6bc8fd8190"]]
698
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:32.750705"], ["updated_at", "2016-01-11 03:05:32.750705"], ["uuid", "7069019e-9966-4618-928c-7e6bc8fd8190"]]
699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
700
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
701
+ Processing by UrlShortener::RedirectController#show as HTML
702
+ Parameters: {"uuid"=>"7069019e-9966-4618-928c-7e6bc8fd8190", "path"=>"/one/two%20three"}
703
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7069019e-9966-4618-928c-7e6bc8fd8190"]]
704
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
705
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
706
+  (0.0ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
707
+  (0.6ms) rollback transaction
708
+  (0.1ms) begin transaction
709
+ --------------------------------------------------------------------------------
710
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
711
+ --------------------------------------------------------------------------------
712
+  (0.0ms) SAVEPOINT active_record_1
713
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "c2d27002-e2d7-4a46-b5f6-aaebed14516d"]]
714
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:32.759384"], ["updated_at", "2016-01-11 03:05:32.759384"], ["uuid", "c2d27002-e2d7-4a46-b5f6-aaebed14516d"]]
715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
716
+ Processing by UrlShortener::RedirectController#show as HTML
717
+ Parameters: {"uuid"=>"c2d27002-e2d7-4a46-b5f6-aaebed14516d", "path"=>"/one/two%20three"}
718
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "c2d27002-e2d7-4a46-b5f6-aaebed14516d"]]
719
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
720
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
721
+  (0.4ms) rollback transaction
722
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
723
+  (0.1ms) begin transaction
724
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
725
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:05:56', '2016-01-11 03:05:56', 980190962)
726
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:05:56', '2016-01-11 03:05:56', 298486374)
727
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
728
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:05:56', '2016-01-11 03:05:56', 980190962)
729
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:05:56', '2016-01-11 03:05:56', 298486374)
730
+  (9.1ms) commit transaction
731
+  (0.1ms) begin transaction
732
+ ---------------------------------------------------------------------
733
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
734
+ ---------------------------------------------------------------------
735
+  (0.1ms) SAVEPOINT active_record_1
736
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0d62e190-902f-4a82-8c05-80ceacb842d5"]]
737
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:56.952608"], ["updated_at", "2016-01-11 03:05:56.952608"], ["uuid", "0d62e190-902f-4a82-8c05-80ceacb842d5"]]
738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
739
+ Processing by UrlShortener::RedirectController#show as HTML
740
+ Parameters: {"uuid"=>"wrong0d62e190-902f-4a82-8c05-80ceacb842d5", "path"=>"/one/two%20three"}
741
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0d62e190-902f-4a82-8c05-80ceacb842d5"]]
742
+ Rendered text template (0.0ms)
743
+ Completed 404 Not Found in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms)
744
+  (0.8ms) rollback transaction
745
+  (0.0ms) begin transaction
746
+ --------------------------------------------------------------------------------
747
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
748
+ --------------------------------------------------------------------------------
749
+  (0.1ms) SAVEPOINT active_record_1
750
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e7db6cd5-ed13-4785-979d-ef70e42a70ef"]]
751
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:56.971494"], ["updated_at", "2016-01-11 03:05:56.971494"], ["uuid", "e7db6cd5-ed13-4785-979d-ef70e42a70ef"]]
752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
753
+ Processing by UrlShortener::RedirectController#show as HTML
754
+ Parameters: {"uuid"=>"e7db6cd5-ed13-4785-979d-ef70e42a70ef", "path"=>"/one/two%20three"}
755
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e7db6cd5-ed13-4785-979d-ef70e42a70ef"]]
756
+  (0.0ms) SAVEPOINT active_record_1
757
+ SQL (0.6ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["created_at", "2016-01-11 03:05:56.979724"], ["updated_at", "2016-01-11 03:05:56.979724"]]
758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
759
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
760
+ Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
761
+  (0.9ms) rollback transaction
762
+  (0.1ms) begin transaction
763
+ ---------------------------------------------------------------------
764
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
765
+ ---------------------------------------------------------------------
766
+  (0.0ms) SAVEPOINT active_record_1
767
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "12f321eb-426b-427f-8f27-b9a57d086226"]]
768
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:05:56.984061"], ["updated_at", "2016-01-11 03:05:56.984061"], ["uuid", "12f321eb-426b-427f-8f27-b9a57d086226"]]
769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
770
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
771
+ Processing by UrlShortener::RedirectController#show as HTML
772
+ Parameters: {"uuid"=>"12f321eb-426b-427f-8f27-b9a57d086226", "path"=>"/one/two%20three"}
773
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "12f321eb-426b-427f-8f27-b9a57d086226"]]
774
+  (0.0ms) SAVEPOINT active_record_1
775
+ SQL (0.6ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["created_at", "2016-01-11 03:05:56.989625"], ["updated_at", "2016-01-11 03:05:56.989625"]]
776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
777
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
778
+ Completed 302 Found in 2ms (ActiveRecord: 0.7ms)
779
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
780
+  (1.0ms) rollback transaction
781
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
782
+  (0.1ms) begin transaction
783
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
784
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:06:25', '2016-01-11 03:06:25', 980190962)
785
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:06:25', '2016-01-11 03:06:25', 298486374)
786
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
787
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:06:25', '2016-01-11 03:06:25', 980190962)
788
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:06:25', '2016-01-11 03:06:25', 298486374)
789
+  (8.9ms) commit transaction
790
+  (0.1ms) begin transaction
791
+ ---------------------------------------------------------------------
792
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
793
+ ---------------------------------------------------------------------
794
+  (0.1ms) SAVEPOINT active_record_1
795
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a6abac7e-50f9-4b59-807a-1f3324d97b16"]]
796
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:25.585692"], ["updated_at", "2016-01-11 03:06:25.585692"], ["uuid", "a6abac7e-50f9-4b59-807a-1f3324d97b16"]]
797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+ Processing by UrlShortener::RedirectController#show as HTML
799
+ Parameters: {"uuid"=>"wronga6abac7e-50f9-4b59-807a-1f3324d97b16", "path"=>"/one/two%20three"}
800
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wronga6abac7e-50f9-4b59-807a-1f3324d97b16"]]
801
+ Rendered text template (0.0ms)
802
+ Completed 404 Not Found in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms)
803
+  (0.5ms) rollback transaction
804
+  (0.1ms) begin transaction
805
+ --------------------------------------------------------------------------------
806
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
807
+ --------------------------------------------------------------------------------
808
+  (0.0ms) SAVEPOINT active_record_1
809
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e1c994cb-91b9-46fd-b197-8c74019134cf"]]
810
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:25.605144"], ["updated_at", "2016-01-11 03:06:25.605144"], ["uuid", "e1c994cb-91b9-46fd-b197-8c74019134cf"]]
811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
812
+ Processing by UrlShortener::RedirectController#show as HTML
813
+ Parameters: {"uuid"=>"e1c994cb-91b9-46fd-b197-8c74019134cf", "path"=>"/one/two%20three"}
814
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e1c994cb-91b9-46fd-b197-8c74019134cf"]]
815
+  (0.1ms) SAVEPOINT active_record_1
816
+ SQL (0.9ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "0.0.0.0"], ["created_at", "2016-01-11 03:06:25.612877"], ["updated_at", "2016-01-11 03:06:25.612877"]]
817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
818
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
819
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
820
+  (0.6ms) rollback transaction
821
+  (0.1ms) begin transaction
822
+ ---------------------------------------------------------------------
823
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
824
+ ---------------------------------------------------------------------
825
+  (0.0ms) SAVEPOINT active_record_1
826
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ecbb370c-8f2f-4446-9639-2568c2b1b477"]]
827
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:25.617145"], ["updated_at", "2016-01-11 03:06:25.617145"], ["uuid", "ecbb370c-8f2f-4446-9639-2568c2b1b477"]]
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
830
+ Processing by UrlShortener::RedirectController#show as HTML
831
+ Parameters: {"uuid"=>"ecbb370c-8f2f-4446-9639-2568c2b1b477", "path"=>"/one/two%20three"}
832
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ecbb370c-8f2f-4446-9639-2568c2b1b477"]]
833
+  (0.0ms) SAVEPOINT active_record_1
834
+ SQL (0.5ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "0.0.0.0"], ["created_at", "2016-01-11 03:06:25.623078"], ["updated_at", "2016-01-11 03:06:25.623078"]]
835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
836
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
837
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
838
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
839
+ UrlShortener::Click Load (0.1ms) SELECT "url_shortener_clicks".* FROM "url_shortener_clicks" ORDER BY "url_shortener_clicks"."id" DESC LIMIT 1
840
+  (0.8ms) rollback transaction
841
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
842
+  (0.1ms) begin transaction
843
+ Fixture Delete (0.6ms) DELETE FROM "url_shortener_clicks"
844
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:06:48', '2016-01-11 03:06:48', 980190962)
845
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:06:48', '2016-01-11 03:06:48', 298486374)
846
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
847
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:06:48', '2016-01-11 03:06:48', 980190962)
848
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:06:48', '2016-01-11 03:06:48', 298486374)
849
+  (8.8ms) commit transaction
850
+  (0.1ms) begin transaction
851
+ ---------------------------------------------------------------------
852
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
853
+ ---------------------------------------------------------------------
854
+  (0.1ms) SAVEPOINT active_record_1
855
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d9b47286-9c00-4311-9742-15e0e61b57d7"]]
856
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:48.716518"], ["updated_at", "2016-01-11 03:06:48.716518"], ["uuid", "d9b47286-9c00-4311-9742-15e0e61b57d7"]]
857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
858
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
859
+ Processing by UrlShortener::RedirectController#show as HTML
860
+ Parameters: {"uuid"=>"d9b47286-9c00-4311-9742-15e0e61b57d7", "path"=>"/one/two%20three"}
861
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d9b47286-9c00-4311-9742-15e0e61b57d7"]]
862
+  (0.1ms) SAVEPOINT active_record_1
863
+ SQL (0.5ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "0.0.0.0"], ["created_at", "2016-01-11 03:06:48.733620"], ["updated_at", "2016-01-11 03:06:48.733620"]]
864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
866
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
867
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
868
+ UrlShortener::Click Load (0.1ms) SELECT "url_shortener_clicks".* FROM "url_shortener_clicks" ORDER BY "url_shortener_clicks"."id" DESC LIMIT 1
869
+  (1.0ms) rollback transaction
870
+  (0.1ms) begin transaction
871
+ --------------------------------------------------------------------------------
872
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
873
+ --------------------------------------------------------------------------------
874
+  (0.1ms) SAVEPOINT active_record_1
875
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "74f17a0d-e640-4866-ba31-92606f6902da"]]
876
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:48.739806"], ["updated_at", "2016-01-11 03:06:48.739806"], ["uuid", "74f17a0d-e640-4866-ba31-92606f6902da"]]
877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
878
+ Processing by UrlShortener::RedirectController#show as HTML
879
+ Parameters: {"uuid"=>"74f17a0d-e640-4866-ba31-92606f6902da", "path"=>"/one/two%20three"}
880
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "74f17a0d-e640-4866-ba31-92606f6902da"]]
881
+  (0.1ms) SAVEPOINT active_record_1
882
+ SQL (0.6ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "0.0.0.0"], ["created_at", "2016-01-11 03:06:48.745630"], ["updated_at", "2016-01-11 03:06:48.745630"]]
883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
884
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
885
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
886
+  (0.9ms) rollback transaction
887
+  (0.1ms) begin transaction
888
+ ---------------------------------------------------------------------
889
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
890
+ ---------------------------------------------------------------------
891
+  (0.0ms) SAVEPOINT active_record_1
892
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "bf258f98-f25c-483f-b68c-aeb144547e15"]]
893
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:06:48.749983"], ["updated_at", "2016-01-11 03:06:48.749983"], ["uuid", "bf258f98-f25c-483f-b68c-aeb144547e15"]]
894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
895
+ Processing by UrlShortener::RedirectController#show as HTML
896
+ Parameters: {"uuid"=>"wrongbf258f98-f25c-483f-b68c-aeb144547e15", "path"=>"/one/two%20three"}
897
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrongbf258f98-f25c-483f-b68c-aeb144547e15"]]
898
+ Rendered text template (0.0ms)
899
+ Completed 404 Not Found in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms)
900
+  (0.7ms) rollback transaction
901
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
902
+  (0.1ms) begin transaction
903
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
904
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:07:29', '2016-01-11 03:07:29', 980190962)
905
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:07:29', '2016-01-11 03:07:29', 298486374)
906
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
907
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:07:29', '2016-01-11 03:07:29', 980190962)
908
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:07:29', '2016-01-11 03:07:29', 298486374)
909
+  (9.0ms) commit transaction
910
+  (0.1ms) begin transaction
911
+ ---------------------------------------------------------------------
912
+ UrlShortener::RedirectControllerTest: test_should_track_click_through
913
+ ---------------------------------------------------------------------
914
+  (0.1ms) SAVEPOINT active_record_1
915
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49447782-7dab-4eb4-be12-af8bf6c5be38"]]
916
+ SQL (0.8ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:29.124274"], ["updated_at", "2016-01-11 03:07:29.124274"], ["uuid", "49447782-7dab-4eb4-be12-af8bf6c5be38"]]
917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
918
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
919
+ Processing by UrlShortener::RedirectController#show as HTML
920
+ Parameters: {"uuid"=>"49447782-7dab-4eb4-be12-af8bf6c5be38", "path"=>"/one/two%20three"}
921
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49447782-7dab-4eb4-be12-af8bf6c5be38"]]
922
+  (0.1ms) SAVEPOINT active_record_1
923
+ SQL (0.6ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:07:29.144520"], ["updated_at", "2016-01-11 03:07:29.144520"]]
924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
925
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
926
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
927
+  (0.0ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
928
+  (0.9ms) rollback transaction
929
+  (0.1ms) begin transaction
930
+ --------------------------------------------------------------------------------
931
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
932
+ --------------------------------------------------------------------------------
933
+  (0.0ms) SAVEPOINT active_record_1
934
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8d63c0be-dac7-43b3-aa35-58057c43ef8c"]]
935
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:29.149451"], ["updated_at", "2016-01-11 03:07:29.149451"], ["uuid", "8d63c0be-dac7-43b3-aa35-58057c43ef8c"]]
936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
937
+ Processing by UrlShortener::RedirectController#show as HTML
938
+ Parameters: {"uuid"=>"8d63c0be-dac7-43b3-aa35-58057c43ef8c", "path"=>"/one/two%20three"}
939
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8d63c0be-dac7-43b3-aa35-58057c43ef8c"]]
940
+  (0.0ms) SAVEPOINT active_record_1
941
+ SQL (0.7ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:07:29.154570"], ["updated_at", "2016-01-11 03:07:29.154570"]]
942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
943
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
944
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
945
+  (0.9ms) rollback transaction
946
+  (0.1ms) begin transaction
947
+ ---------------------------------------------------------------------
948
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
949
+ ---------------------------------------------------------------------
950
+  (0.0ms) SAVEPOINT active_record_1
951
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0c6eecb5-2b58-4e17-8972-43408667d174"]]
952
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:29.159049"], ["updated_at", "2016-01-11 03:07:29.159049"], ["uuid", "0c6eecb5-2b58-4e17-8972-43408667d174"]]
953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
954
+ Processing by UrlShortener::RedirectController#show as HTML
955
+ Parameters: {"uuid"=>"wrong0c6eecb5-2b58-4e17-8972-43408667d174", "path"=>"/one/two%20three"}
956
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0c6eecb5-2b58-4e17-8972-43408667d174"]]
957
+ Rendered text template (0.0ms)
958
+ Completed 404 Not Found in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms)
959
+  (0.7ms) rollback transaction
960
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
961
+  (0.1ms) begin transaction
962
+ Fixture Delete (0.4ms) DELETE FROM "url_shortener_clicks"
963
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:07:47', '2016-01-11 03:07:47', 980190962)
964
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:07:47', '2016-01-11 03:07:47', 298486374)
965
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
966
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:07:47', '2016-01-11 03:07:47', 980190962)
967
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:07:47', '2016-01-11 03:07:47', 298486374)
968
+  (7.8ms) commit transaction
969
+  (0.1ms) begin transaction
970
+ --------------------------------------------------------------------------------
971
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
972
+ --------------------------------------------------------------------------------
973
+  (0.1ms) SAVEPOINT active_record_1
974
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ae747606-66d0-4744-9d33-b66efb42c634"]]
975
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:47.717204"], ["updated_at", "2016-01-11 03:07:47.717204"], ["uuid", "ae747606-66d0-4744-9d33-b66efb42c634"]]
976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
977
+ Processing by UrlShortener::RedirectController#show as HTML
978
+ Parameters: {"uuid"=>"ae747606-66d0-4744-9d33-b66efb42c634", "path"=>"/one/two%20three"}
979
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ae747606-66d0-4744-9d33-b66efb42c634"]]
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ SQL (0.9ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:07:47.732934"], ["updated_at", "2016-01-11 03:07:47.732934"]]
982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
983
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
984
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
985
+  (1.0ms) rollback transaction
986
+  (0.1ms) begin transaction
987
+ ---------------------------------------------------------------------
988
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
989
+ ---------------------------------------------------------------------
990
+  (0.1ms) SAVEPOINT active_record_1
991
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f164d33a-71d9-4dc1-80a5-917ed3c39a23"]]
992
+ SQL (0.3ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:47.738854"], ["updated_at", "2016-01-11 03:07:47.738854"], ["uuid", "f164d33a-71d9-4dc1-80a5-917ed3c39a23"]]
993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
994
+ Processing by UrlShortener::RedirectController#show as HTML
995
+ Parameters: {"uuid"=>"wrongf164d33a-71d9-4dc1-80a5-917ed3c39a23", "path"=>"/one/two%20three"}
996
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrongf164d33a-71d9-4dc1-80a5-917ed3c39a23"]]
997
+ Rendered text template (0.0ms)
998
+ Completed 404 Not Found in 7ms (Views: 6.9ms | ActiveRecord: 0.1ms)
999
+  (0.5ms) rollback transaction
1000
+  (0.1ms) begin transaction
1001
+ --------------------------------------------------------------------------
1002
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1003
+ --------------------------------------------------------------------------
1004
+  (0.1ms) SAVEPOINT active_record_1
1005
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7721f7e5-0aeb-4a51-ad44-153fce466e64"]]
1006
+ SQL (0.2ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:07:47.753054"], ["updated_at", "2016-01-11 03:07:47.753054"], ["uuid", "7721f7e5-0aeb-4a51-ad44-153fce466e64"]]
1007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1008
+  (0.2ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1009
+ Processing by UrlShortener::RedirectController#show as HTML
1010
+ Parameters: {"uuid"=>"7721f7e5-0aeb-4a51-ad44-153fce466e64", "path"=>"/one/two%20three"}
1011
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7721f7e5-0aeb-4a51-ad44-153fce466e64"]]
1012
+  (0.1ms) SAVEPOINT active_record_1
1013
+ SQL (0.5ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:07:47.765411"], ["updated_at", "2016-01-11 03:07:47.765411"]]
1014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1015
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1016
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
1017
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1018
+  (0.6ms) rollback transaction
1019
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1020
+  (0.1ms) begin transaction
1021
+ Fixture Delete (1.3ms) DELETE FROM "url_shortener_clicks"
1022
+ Fixture Insert (0.4ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:10:04', '2016-01-11 03:10:04', 980190962)
1023
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("link_id", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES (NULL, 'MyString', 'MyString', '2016-01-11 03:10:04', '2016-01-11 03:10:04', 298486374)
1024
+ Fixture Delete (0.4ms) DELETE FROM "url_shortener_links"
1025
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:10:04', '2016-01-11 03:10:04', 980190962)
1026
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:10:04', '2016-01-11 03:10:04', 298486374)
1027
+  (1.0ms) commit transaction
1028
+  (0.1ms) begin transaction
1029
+ ---------------------------------------------------------------
1030
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
1031
+ ---------------------------------------------------------------
1032
+  (0.0ms) SAVEPOINT active_record_1
1033
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5728e06b-dd25-436a-b490-e249e62a6f4d"]]
1034
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.382051"], ["updated_at", "2016-01-11 03:10:04.382051"], ["uuid", "5728e06b-dd25-436a-b490-e249e62a6f4d"]]
1035
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1036
+  (0.0ms) SAVEPOINT active_record_1
1037
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "1810bb1c-f51b-4f2d-a70c-633a475950a2"]]
1038
+ SQL (0.9ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "1810bb1c-f51b-4f2d-a70c-633a475950a2"], ["created_at", "2016-01-11 03:10:04.390948"], ["updated_at", "2016-01-11 03:10:04.390948"]]
1039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1040
+  (0.8ms) rollback transaction
1041
+  (0.1ms) begin transaction
1042
+ ----------------------------------------------
1043
+ UrlShortener::LinkTest: test_autogenerate_uuid
1044
+ ----------------------------------------------
1045
+  (0.1ms) SAVEPOINT active_record_1
1046
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "dbb9bea5-99a8-4c75-af61-5c8558e59bf3"]]
1047
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.394852"], ["updated_at", "2016-01-11 03:10:04.394852"], ["uuid", "dbb9bea5-99a8-4c75-af61-5c8558e59bf3"]]
1048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1049
+  (0.5ms) rollback transaction
1050
+  (0.0ms) begin transaction
1051
+ ------------------------------------------------
1052
+ UrlShortener::LinkTest: test_stores_original_url
1053
+ ------------------------------------------------
1054
+  (0.0ms) SAVEPOINT active_record_1
1055
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ab070fc8-d478-4563-bf94-5a3c06ab0a8d"]]
1056
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.397823"], ["updated_at", "2016-01-11 03:10:04.397823"], ["uuid", "ab070fc8-d478-4563-bf94-5a3c06ab0a8d"]]
1057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1058
+  (0.8ms) rollback transaction
1059
+  (0.2ms) begin transaction
1060
+ ---------------------------------------------------------------------
1061
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
1062
+ ---------------------------------------------------------------------
1063
+  (0.1ms) SAVEPOINT active_record_1
1064
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6078b120-8b5e-4df6-9f0c-17756b42384f"]]
1065
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.466377"], ["updated_at", "2016-01-11 03:10:04.466377"], ["uuid", "6078b120-8b5e-4df6-9f0c-17756b42384f"]]
1066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1067
+ Processing by UrlShortener::RedirectController#show as HTML
1068
+ Parameters: {"uuid"=>"wrong6078b120-8b5e-4df6-9f0c-17756b42384f", "path"=>"/one/two%20three"}
1069
+ UrlShortener::Link Load (0.0ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong6078b120-8b5e-4df6-9f0c-17756b42384f"]]
1070
+ Rendered text template (0.0ms)
1071
+ Completed 404 Not Found in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
1072
+  (0.7ms) rollback transaction
1073
+  (0.1ms) begin transaction
1074
+ --------------------------------------------------------------------------------
1075
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
1076
+ --------------------------------------------------------------------------------
1077
+  (0.0ms) SAVEPOINT active_record_1
1078
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6a240efb-0c93-4c90-a211-5d648d6854df"]]
1079
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.483497"], ["updated_at", "2016-01-11 03:10:04.483497"], ["uuid", "6a240efb-0c93-4c90-a211-5d648d6854df"]]
1080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1081
+ Processing by UrlShortener::RedirectController#show as HTML
1082
+ Parameters: {"uuid"=>"6a240efb-0c93-4c90-a211-5d648d6854df", "path"=>"/one/two%20three"}
1083
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6a240efb-0c93-4c90-a211-5d648d6854df"]]
1084
+  (0.1ms) SAVEPOINT active_record_1
1085
+ SQL (0.6ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:10:04.492535"], ["updated_at", "2016-01-11 03:10:04.492535"]]
1086
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1087
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1088
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
1089
+  (0.9ms) rollback transaction
1090
+  (0.1ms) begin transaction
1091
+ --------------------------------------------------------------------------
1092
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1093
+ --------------------------------------------------------------------------
1094
+  (0.1ms) SAVEPOINT active_record_1
1095
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "83539fec-267d-4c2b-be30-dbbf8e50e041"]]
1096
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:10:04.497202"], ["updated_at", "2016-01-11 03:10:04.497202"], ["uuid", "83539fec-267d-4c2b-be30-dbbf8e50e041"]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1099
+ Processing by UrlShortener::RedirectController#show as HTML
1100
+ Parameters: {"uuid"=>"83539fec-267d-4c2b-be30-dbbf8e50e041", "path"=>"/one/two%20three"}
1101
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "83539fec-267d-4c2b-be30-dbbf8e50e041"]]
1102
+  (0.1ms) SAVEPOINT active_record_1
1103
+ SQL (1.0ms) INSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:10:04.503633"], ["updated_at", "2016-01-11 03:10:04.503633"]]
1104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1105
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1106
+ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
1107
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1108
+  (1.0ms) rollback transaction
1109
+  (0.0ms) begin transaction
1110
+ ----------------------------
1111
+ UrlShortenerTest: test_truth
1112
+ ----------------------------
1113
+  (0.0ms) rollback transaction
1114
+  (9.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1115
+  (0.1ms) select sqlite_version(*)
1116
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1117
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1118
+ Migrating to CreateUrlShortenerLinks (20160111023755)
1119
+  (0.1ms) begin transaction
1120
+  (0.3ms) CREATE TABLE "url_shortener_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1121
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1122
+  (0.9ms) commit transaction
1123
+ Migrating to CreateUrlShortenerClicks (20160111023840)
1124
+  (0.1ms) begin transaction
1125
+  (0.3ms) CREATE TABLE "url_shortener_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_shortener_link_id" integer, "ipaddress" varchar, "referrer" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1126
+  (0.1ms) CREATE INDEX "index_url_shortener_clicks_on_url_shortener_link_id" ON "url_shortener_clicks" ("url_shortener_link_id")
1127
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1128
+  (0.8ms) commit transaction
1129
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1130
+  (0.1ms)  SELECT sql
1131
+ FROM sqlite_master
1132
+ WHERE name='index_url_shortener_clicks_on_url_shortener_link_id' AND type='index'
1133
+ UNION ALL
1134
+ SELECT sql
1135
+ FROM sqlite_temp_master
1136
+ WHERE name='index_url_shortener_clicks_on_url_shortener_link_id' AND type='index'
1137
+ 
1138
+  (9.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1139
+  (0.1ms) select sqlite_version(*)
1140
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1141
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1142
+ Migrating to CreateUrlShortenerLinks (20160111023755)
1143
+  (0.1ms) begin transaction
1144
+  (0.4ms) CREATE TABLE "url_shortener_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1145
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1146
+  (0.7ms) commit transaction
1147
+ Migrating to CreateUrlShortenerClicks (20160111023840)
1148
+  (0.0ms) begin transaction
1149
+  (0.3ms) CREATE TABLE "url_shortener_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "ipaddress" varchar, "referrer" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1150
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1151
+  (0.7ms) commit transaction
1152
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1153
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1154
+  (0.1ms) begin transaction
1155
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1156
+  (8.4ms) rollback transaction
1157
+  (0.1ms) begin transaction
1158
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1159
+  (0.3ms) rollback transaction
1160
+  (0.1ms) begin transaction
1161
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1162
+  (0.3ms) rollback transaction
1163
+  (0.1ms) begin transaction
1164
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1165
+  (0.4ms) rollback transaction
1166
+  (0.1ms) begin transaction
1167
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1168
+  (0.3ms) rollback transaction
1169
+  (0.1ms) begin transaction
1170
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1171
+  (0.4ms) rollback transaction
1172
+  (0.1ms) begin transaction
1173
+ Fixture Delete (0.4ms) DELETE FROM "url_shortener_clicks"
1174
+  (0.5ms) rollback transaction
1175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1176
+  (0.1ms) begin transaction
1177
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1178
+  (8.4ms) rollback transaction
1179
+  (0.1ms) begin transaction
1180
+ Fixture Delete (0.3ms) DELETE FROM "url_shortener_clicks"
1181
+  (0.4ms) rollback transaction
1182
+  (0.1ms) begin transaction
1183
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1184
+  (0.4ms) rollback transaction
1185
+  (0.1ms) begin transaction
1186
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1187
+  (0.4ms) rollback transaction
1188
+  (0.1ms) begin transaction
1189
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1190
+  (0.4ms) rollback transaction
1191
+  (0.1ms) begin transaction
1192
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1193
+  (0.4ms) rollback transaction
1194
+  (0.1ms) begin transaction
1195
+ Fixture Delete (0.2ms) DELETE FROM "url_shortener_clicks"
1196
+  (0.4ms) rollback transaction
1197
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1198
+  (0.1ms) begin transaction
1199
+ Fixture Delete (0.5ms) DELETE FROM "url_shortener_clicks"
1200
+ Fixture Insert (0.2ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:17:16', '2016-01-11 03:17:16', 980190962)
1201
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:17:16', '2016-01-11 03:17:16', 298486374)
1202
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
1203
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:16', '2016-01-11 03:17:16', 980190962)
1204
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:16', '2016-01-11 03:17:16', 298486374)
1205
+  (8.5ms) commit transaction
1206
+  (0.1ms) begin transaction
1207
+ ----------------------------
1208
+ UrlShortenerTest: test_truth
1209
+ ----------------------------
1210
+  (0.1ms) rollback transaction
1211
+  (0.0ms) begin transaction
1212
+ ---------------------------------------------------------------------
1213
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
1214
+ ---------------------------------------------------------------------
1215
+  (0.1ms) SAVEPOINT active_record_1
1216
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "2c54e949-12fa-4c90-82cf-b6371214930d"]]
1217
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.820654"], ["updated_at", "2016-01-11 03:17:16.820654"], ["uuid", "2c54e949-12fa-4c90-82cf-b6371214930d"]]
1218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1219
+ Processing by UrlShortener::RedirectController#show as HTML
1220
+ Parameters: {"uuid"=>"wrong2c54e949-12fa-4c90-82cf-b6371214930d", "path"=>"/one/two%20three"}
1221
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong2c54e949-12fa-4c90-82cf-b6371214930d"]]
1222
+ Rendered text template (0.0ms)
1223
+ Completed 404 Not Found in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms)
1224
+  (0.7ms) rollback transaction
1225
+  (0.1ms) begin transaction
1226
+ --------------------------------------------------------------------------------
1227
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
1228
+ --------------------------------------------------------------------------------
1229
+  (0.0ms) SAVEPOINT active_record_1
1230
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "77e5ac82-0668-41b9-94ad-aab2bed99359"]]
1231
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.842748"], ["updated_at", "2016-01-11 03:17:16.842748"], ["uuid", "77e5ac82-0668-41b9-94ad-aab2bed99359"]]
1232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1233
+ Processing by UrlShortener::RedirectController#show as HTML
1234
+ Parameters: {"uuid"=>"77e5ac82-0668-41b9-94ad-aab2bed99359", "path"=>"/one/two%20three"}
1235
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "77e5ac82-0668-41b9-94ad-aab2bed99359"]]
1236
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
1237
+  (0.6ms) rollback transaction
1238
+  (0.1ms) begin transaction
1239
+ --------------------------------------------------------------------------
1240
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1241
+ --------------------------------------------------------------------------
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8a494f2b-be9c-4cf6-8ff5-dfcd38541f49"]]
1244
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.852376"], ["updated_at", "2016-01-11 03:17:16.852376"], ["uuid", "8a494f2b-be9c-4cf6-8ff5-dfcd38541f49"]]
1245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1246
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? AND "url_shortener_clicks"."link_id" = 980190963 [["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1247
+  (0.7ms) rollback transaction
1248
+  (0.1ms) begin transaction
1249
+ ------------------------------------------------
1250
+ UrlShortener::LinkTest: test_stores_original_url
1251
+ ------------------------------------------------
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f85eddc2-126d-4b52-b6c3-6371b7b1ca70"]]
1254
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.858003"], ["updated_at", "2016-01-11 03:17:16.858003"], ["uuid", "f85eddc2-126d-4b52-b6c3-6371b7b1ca70"]]
1255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1256
+  (0.5ms) rollback transaction
1257
+  (0.1ms) begin transaction
1258
+ ----------------------------------------------
1259
+ UrlShortener::LinkTest: test_autogenerate_uuid
1260
+ ----------------------------------------------
1261
+  (0.0ms) SAVEPOINT active_record_1
1262
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "384b8b41-99d0-42a4-aad9-d7d50f721cda"]]
1263
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.860901"], ["updated_at", "2016-01-11 03:17:16.860901"], ["uuid", "384b8b41-99d0-42a4-aad9-d7d50f721cda"]]
1264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1265
+  (0.7ms) rollback transaction
1266
+  (0.1ms) begin transaction
1267
+ ---------------------------------------------------------------
1268
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
1269
+ ---------------------------------------------------------------
1270
+  (0.0ms) SAVEPOINT active_record_1
1271
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0dac8189-eef6-42e1-8a04-fd3a1a7defa1"]]
1272
+ SQL (0.7ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:16.864097"], ["updated_at", "2016-01-11 03:17:16.864097"], ["uuid", "0dac8189-eef6-42e1-8a04-fd3a1a7defa1"]]
1273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1274
+  (0.1ms) SAVEPOINT active_record_1
1275
+ UrlShortener::Link Load (0.0ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f2133e50-1983-47bd-8cfe-90bb56af5011"]]
1276
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "f2133e50-1983-47bd-8cfe-90bb56af5011"], ["created_at", "2016-01-11 03:17:16.866745"], ["updated_at", "2016-01-11 03:17:16.866745"]]
1277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1278
+  (0.9ms) rollback transaction
1279
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1280
+  (0.1ms) begin transaction
1281
+ Fixture Delete (0.7ms) DELETE FROM "url_shortener_clicks"
1282
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:17:28', '2016-01-11 03:17:28', 980190962)
1283
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:17:28', '2016-01-11 03:17:28', 298486374)
1284
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
1285
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:28', '2016-01-11 03:17:28', 980190962)
1286
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:28', '2016-01-11 03:17:28', 298486374)
1287
+  (8.9ms) commit transaction
1288
+  (0.1ms) begin transaction
1289
+ ---------------------------------------------------------------------
1290
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
1291
+ ---------------------------------------------------------------------
1292
+  (0.1ms) SAVEPOINT active_record_1
1293
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "147e695e-a5bd-452f-8189-a7f9c9bbfcc0"]]
1294
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:28.584631"], ["updated_at", "2016-01-11 03:17:28.584631"], ["uuid", "147e695e-a5bd-452f-8189-a7f9c9bbfcc0"]]
1295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1296
+ Processing by UrlShortener::RedirectController#show as HTML
1297
+ Parameters: {"uuid"=>"wrong147e695e-a5bd-452f-8189-a7f9c9bbfcc0", "path"=>"/one/two%20three"}
1298
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong147e695e-a5bd-452f-8189-a7f9c9bbfcc0"]]
1299
+ Rendered text template (0.0ms)
1300
+ Completed 404 Not Found in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms)
1301
+  (0.7ms) rollback transaction
1302
+  (0.1ms) begin transaction
1303
+ --------------------------------------------------------------------------------
1304
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
1305
+ --------------------------------------------------------------------------------
1306
+  (0.0ms) SAVEPOINT active_record_1
1307
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a"]]
1308
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:28.604364"], ["updated_at", "2016-01-11 03:17:28.604364"], ["uuid", "8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a"]]
1309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1310
+ Processing by UrlShortener::RedirectController#show as HTML
1311
+ Parameters: {"uuid"=>"8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a", "path"=>"/one/two%20three"}
1312
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a"]]
1313
+ Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms)
1314
+  (0.7ms) rollback transaction
1315
+  (0.1ms) begin transaction
1316
+ --------------------------------------------------------------------------
1317
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1318
+ --------------------------------------------------------------------------
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e842e9c7-7a08-4c66-ad1c-bfdf414b446a"]]
1321
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:28.615237"], ["updated_at", "2016-01-11 03:17:28.615237"], ["uuid", "e842e9c7-7a08-4c66-ad1c-bfdf414b446a"]]
1322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1323
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["uuid", "e842e9c7-7a08-4c66-ad1c-bfdf414b446a"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1324
+ Processing by UrlShortener::RedirectController#show as HTML
1325
+ Parameters: {"uuid"=>"e842e9c7-7a08-4c66-ad1c-bfdf414b446a", "path"=>"/one/two%20three"}
1326
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e842e9c7-7a08-4c66-ad1c-bfdf414b446a"]]
1327
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
1328
+  (0.7ms) rollback transaction
1329
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1330
+  (0.1ms) begin transaction
1331
+ Fixture Delete (0.6ms) DELETE FROM "url_shortener_clicks"
1332
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:17:39', '2016-01-11 03:17:39', 980190962)
1333
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:17:39', '2016-01-11 03:17:39', 298486374)
1334
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
1335
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:39', '2016-01-11 03:17:39', 980190962)
1336
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:39', '2016-01-11 03:17:39', 298486374)
1337
+  (9.1ms) commit transaction
1338
+  (0.1ms) begin transaction
1339
+ ---------------------------------------------------------------------
1340
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
1341
+ ---------------------------------------------------------------------
1342
+  (0.1ms) SAVEPOINT active_record_1
1343
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "aa34cc15-6917-49ef-a00d-256972ae89e5"]]
1344
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:39.964953"], ["updated_at", "2016-01-11 03:17:39.964953"], ["uuid", "aa34cc15-6917-49ef-a00d-256972ae89e5"]]
1345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1346
+ Processing by UrlShortener::RedirectController#show as HTML
1347
+ Parameters: {"uuid"=>"wrongaa34cc15-6917-49ef-a00d-256972ae89e5", "path"=>"/one/two%20three"}
1348
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrongaa34cc15-6917-49ef-a00d-256972ae89e5"]]
1349
+ Rendered text template (0.0ms)
1350
+ Completed 404 Not Found in 6ms (Views: 5.8ms | ActiveRecord: 0.1ms)
1351
+  (0.8ms) rollback transaction
1352
+  (0.1ms) begin transaction
1353
+ --------------------------------------------------------------------------------
1354
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
1355
+ --------------------------------------------------------------------------------
1356
+  (0.1ms) SAVEPOINT active_record_1
1357
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"]]
1358
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:39.985798"], ["updated_at", "2016-01-11 03:17:39.985798"], ["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"]]
1359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1360
+ Processing by UrlShortener::RedirectController#show as HTML
1361
+ Parameters: {"uuid"=>"4ba16053-20f6-4ff2-b7fc-e535ee5424bd", "path"=>"/one/two%20three"}
1362
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"]]
1363
+  (0.1ms) SAVEPOINT active_record_1
1364
+ SQL (0.3ms) INSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:17:39.993942"], ["updated_at", "2016-01-11 03:17:39.993942"]]
1365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1366
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1367
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
1368
+  (0.8ms) rollback transaction
1369
+  (0.1ms) begin transaction
1370
+ --------------------------------------------------------------------------
1371
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1372
+ --------------------------------------------------------------------------
1373
+  (0.0ms) SAVEPOINT active_record_1
1374
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"]]
1375
+ SQL (0.5ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:39.997852"], ["updated_at", "2016-01-11 03:17:39.997852"], ["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"]]
1376
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1377
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1378
+ Processing by UrlShortener::RedirectController#show as HTML
1379
+ Parameters: {"uuid"=>"25f791b9-effd-4b0a-acce-9fe75703d699", "path"=>"/one/two%20three"}
1380
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"]]
1381
+  (0.1ms) SAVEPOINT active_record_1
1382
+ SQL (0.3ms) INSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:17:40.005780"], ["updated_at", "2016-01-11 03:17:40.005780"]]
1383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1384
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1385
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
1386
+  (0.0ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1387
+  (0.9ms) rollback transaction
1388
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1389
+  (0.1ms) begin transaction
1390
+ Fixture Delete (0.8ms) DELETE FROM "url_shortener_clicks"
1391
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:17:43', '2016-01-11 03:17:43', 980190962)
1392
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:17:43', '2016-01-11 03:17:43', 298486374)
1393
+ Fixture Delete (0.1ms) DELETE FROM "url_shortener_links"
1394
+ Fixture Insert (0.1ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:43', '2016-01-11 03:17:43', 980190962)
1395
+ Fixture Insert (0.0ms) INSERT INTO "url_shortener_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:17:43', '2016-01-11 03:17:43', 298486374)
1396
+  (1.3ms) commit transaction
1397
+  (0.0ms) begin transaction
1398
+ ----------------------------------------------
1399
+ UrlShortener::LinkTest: test_autogenerate_uuid
1400
+ ----------------------------------------------
1401
+  (0.1ms) SAVEPOINT active_record_1
1402
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a1808545-0f3a-4f4c-b8d2-ada4d8c0d34d"]]
1403
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.324002"], ["updated_at", "2016-01-11 03:17:43.324002"], ["uuid", "a1808545-0f3a-4f4c-b8d2-ada4d8c0d34d"]]
1404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1405
+  (0.5ms) rollback transaction
1406
+  (0.1ms) begin transaction
1407
+ ---------------------------------------------------------------
1408
+ UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
1409
+ ---------------------------------------------------------------
1410
+  (0.0ms) SAVEPOINT active_record_1
1411
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8c95a73d-d49a-4508-ac59-f81fc8c7cc34"]]
1412
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.332951"], ["updated_at", "2016-01-11 03:17:43.332951"], ["uuid", "8c95a73d-d49a-4508-ac59-f81fc8c7cc34"]]
1413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1414
+  (0.0ms) SAVEPOINT active_record_1
1415
+ UrlShortener::Link Load (0.0ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0c118440-4154-4e41-85e7-f28f194c9daf"]]
1416
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "0c118440-4154-4e41-85e7-f28f194c9daf"], ["created_at", "2016-01-11 03:17:43.334723"], ["updated_at", "2016-01-11 03:17:43.334723"]]
1417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1418
+  (1.4ms) rollback transaction
1419
+  (0.1ms) begin transaction
1420
+ ------------------------------------------------
1421
+ UrlShortener::LinkTest: test_stores_original_url
1422
+ ------------------------------------------------
1423
+  (0.1ms) SAVEPOINT active_record_1
1424
+ UrlShortener::Link Load (0.2ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a846e37b-52fd-4b3b-8fe2-0730abd2c71b"]]
1425
+ SQL (1.0ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.339568"], ["updated_at", "2016-01-11 03:17:43.339568"], ["uuid", "a846e37b-52fd-4b3b-8fe2-0730abd2c71b"]]
1426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1427
+  (0.9ms) rollback transaction
1428
+  (0.1ms) begin transaction
1429
+ ----------------------------
1430
+ UrlShortenerTest: test_truth
1431
+ ----------------------------
1432
+  (0.0ms) rollback transaction
1433
+  (0.1ms) begin transaction
1434
+ ---------------------------------------------------------------------
1435
+ UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
1436
+ ---------------------------------------------------------------------
1437
+  (0.1ms) SAVEPOINT active_record_1
1438
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "64338584-aaac-43c5-b403-e4923f5be328"]]
1439
+ SQL (0.6ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.395959"], ["updated_at", "2016-01-11 03:17:43.395959"], ["uuid", "64338584-aaac-43c5-b403-e4923f5be328"]]
1440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1441
+ Processing by UrlShortener::RedirectController#show as HTML
1442
+ Parameters: {"uuid"=>"wrong64338584-aaac-43c5-b403-e4923f5be328", "path"=>"/one/two%20three"}
1443
+ UrlShortener::Link Load (0.3ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "wrong64338584-aaac-43c5-b403-e4923f5be328"]]
1444
+ Rendered text template (0.0ms)
1445
+ Completed 404 Not Found in 9ms (Views: 7.7ms | ActiveRecord: 0.3ms)
1446
+  (0.6ms) rollback transaction
1447
+  (0.1ms) begin transaction
1448
+ --------------------------------------------------------------------------------
1449
+ UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
1450
+ --------------------------------------------------------------------------------
1451
+  (0.0ms) SAVEPOINT active_record_1
1452
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"]]
1453
+ SQL (0.4ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.416060"], ["updated_at", "2016-01-11 03:17:43.416060"], ["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"]]
1454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1455
+ Processing by UrlShortener::RedirectController#show as HTML
1456
+ Parameters: {"uuid"=>"49df3253-440c-4cee-bdc5-3d63ee0abacb", "path"=>"/one/two%20three"}
1457
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"]]
1458
+  (0.1ms) SAVEPOINT active_record_1
1459
+ SQL (0.8ms) INSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:17:43.424085"], ["updated_at", "2016-01-11 03:17:43.424085"]]
1460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1461
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1462
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
1463
+  (1.0ms) rollback transaction
1464
+  (0.1ms) begin transaction
1465
+ --------------------------------------------------------------------------
1466
+ UrlShortener::RedirectControllerTest: test_should_track_click_through_data
1467
+ --------------------------------------------------------------------------
1468
+  (0.1ms) SAVEPOINT active_record_1
1469
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"]]
1470
+ SQL (0.7ms) INSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:17:43.429169"], ["updated_at", "2016-01-11 03:17:43.429169"], ["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"]]
1471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1472
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1473
+ Processing by UrlShortener::RedirectController#show as HTML
1474
+ Parameters: {"uuid"=>"ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b", "path"=>"/one/two%20three"}
1475
+ UrlShortener::Link Load (0.1ms) SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"]]
1476
+  (0.1ms) SAVEPOINT active_record_1
1477
+ SQL (0.7ms) INSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:17:43.437031"], ["updated_at", "2016-01-11 03:17:43.437031"]]
1478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1479
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1480
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1481
+  (0.1ms) SELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1482
+  (1.0ms) rollback transaction
1483
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1484
+  (0.1ms) select sqlite_version(*)
1485
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1486
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1487
+ Migrating to CreateTrack302Links (20160111023755)
1488
+  (0.1ms) begin transaction
1489
+  (2.3ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1490
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1491
+  (1.0ms) commit transaction
1492
+ Migrating to CreateTrack302Clicks (20160111023840)
1493
+  (0.1ms) begin transaction
1494
+  (1.1ms) CREATE TABLE "track302_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "ipaddress" varchar, "referrer" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1495
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1496
+  (1.3ms) commit transaction
1497
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1498
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1499
+  (0.1ms) begin transaction
1500
+ Fixture Delete (0.5ms) DELETE FROM "track302_clicks"
1501
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:40:21', '2016-01-11 03:40:21', 980190962)
1502
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:40:21', '2016-01-11 03:40:21', 298486374)
1503
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
1504
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:40:21', '2016-01-11 03:40:21', 980190962)
1505
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:40:21', '2016-01-11 03:40:21', 298486374)
1506
+  (0.7ms) commit transaction
1507
+  (0.1ms) begin transaction
1508
+ ------------------------
1509
+ Track302Test: test_truth
1510
+ ------------------------
1511
+  (0.1ms) rollback transaction
1512
+  (0.2ms) begin transaction
1513
+ ------------------------------------------
1514
+ Track302::LinkTest: test_autogenerate_uuid
1515
+ ------------------------------------------
1516
+  (0.1ms) SAVEPOINT active_record_1
1517
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "6d7f2f39-07ea-409b-a99f-42d2ba52ea1f"]]
1518
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.686795"], ["updated_at", "2016-01-11 03:40:21.686795"], ["uuid", "6d7f2f39-07ea-409b-a99f-42d2ba52ea1f"]]
1519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1520
+  (0.4ms) rollback transaction
1521
+  (0.0ms) begin transaction
1522
+ --------------------------------------------
1523
+ Track302::LinkTest: test_stores_original_url
1524
+ --------------------------------------------
1525
+  (0.0ms) SAVEPOINT active_record_1
1526
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a1ed948a-dc14-4985-9ec8-ec6f9f343a04"]]
1527
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.693791"], ["updated_at", "2016-01-11 03:40:21.693791"], ["uuid", "a1ed948a-dc14-4985-9ec8-ec6f9f343a04"]]
1528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1529
+  (0.4ms) rollback transaction
1530
+  (0.1ms) begin transaction
1531
+ -----------------------------------------------------------
1532
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
1533
+ -----------------------------------------------------------
1534
+  (0.1ms) SAVEPOINT active_record_1
1535
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "90620bee-b727-4509-909e-4d537f0c6769"]]
1536
+ SQL (0.8ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.696697"], ["updated_at", "2016-01-11 03:40:21.696697"], ["uuid", "90620bee-b727-4509-909e-4d537f0c6769"]]
1537
+  (1.2ms) RELEASE SAVEPOINT active_record_1
1538
+  (0.1ms) SAVEPOINT active_record_1
1539
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "f625145e-5e66-421c-9d0c-17b069409623"]]
1540
+ SQL (1.0ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "f625145e-5e66-421c-9d0c-17b069409623"], ["created_at", "2016-01-11 03:40:21.703275"], ["updated_at", "2016-01-11 03:40:21.703275"]]
1541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1542
+  (0.6ms) rollback transaction
1543
+  (0.1ms) begin transaction
1544
+ -----------------------------------------------------------------
1545
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
1546
+ -----------------------------------------------------------------
1547
+  (0.3ms) SAVEPOINT active_record_1
1548
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "49c01742-e724-45ec-a384-3bdfce2d18af"]]
1549
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.782254"], ["updated_at", "2016-01-11 03:40:21.782254"], ["uuid", "49c01742-e724-45ec-a384-3bdfce2d18af"]]
1550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1551
+ Processing by Track302::RedirectController#show as HTML
1552
+ Parameters: {"uuid"=>"wrong49c01742-e724-45ec-a384-3bdfce2d18af", "path"=>"/one/two%20three"}
1553
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong49c01742-e724-45ec-a384-3bdfce2d18af"]]
1554
+ Rendered text template (0.0ms)
1555
+ Completed 404 Not Found in 11ms (Views: 10.5ms | ActiveRecord: 0.1ms)
1556
+  (0.4ms) rollback transaction
1557
+  (0.1ms) begin transaction
1558
+ ----------------------------------------------------------------------------
1559
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1560
+ ----------------------------------------------------------------------------
1561
+  (0.1ms) SAVEPOINT active_record_1
1562
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"]]
1563
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.803056"], ["updated_at", "2016-01-11 03:40:21.803056"], ["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"]]
1564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1565
+ Processing by Track302::RedirectController#show as HTML
1566
+ Parameters: {"uuid"=>"b717c218-9f5e-4fd1-95b1-dd45eaebdfe5", "path"=>"/one/two%20three"}
1567
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"]]
1568
+  (0.0ms) SAVEPOINT active_record_1
1569
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:40:21.810570"], ["updated_at", "2016-01-11 03:40:21.810570"]]
1570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1571
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1572
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1573
+  (0.7ms) rollback transaction
1574
+  (0.1ms) begin transaction
1575
+ ----------------------------------------------------------------------
1576
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1577
+ ----------------------------------------------------------------------
1578
+  (0.0ms) SAVEPOINT active_record_1
1579
+ Track302::Link Load (0.3ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"]]
1580
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:21.814945"], ["updated_at", "2016-01-11 03:40:21.814945"], ["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"]]
1581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1582
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ? [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1583
+ Processing by Track302::RedirectController#show as HTML
1584
+ Parameters: {"uuid"=>"5705664a-4e21-4af4-8f20-29e311c2da6d", "path"=>"/one/two%20three"}
1585
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"]]
1586
+  (0.1ms) SAVEPOINT active_record_1
1587
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:40:21.823134"], ["updated_at", "2016-01-11 03:40:21.823134"]]
1588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1589
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1590
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
1591
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ? [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1592
+  (0.7ms) rollback transaction
1593
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1594
+  (0.1ms) begin transaction
1595
+ Fixture Delete (0.7ms) DELETE FROM "track302_clicks"
1596
+ Fixture Insert (0.2ms) INSERT INTO "track302_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', 'MyString', 'MyString', '2016-01-11 03:40:25', '2016-01-11 03:40:25', 980190962)
1597
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "ipaddress", "referrer", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', 'MyString', 'MyString', '2016-01-11 03:40:25', '2016-01-11 03:40:25', 298486374)
1598
+ Fixture Delete (0.2ms) DELETE FROM "track302_links"
1599
+ Fixture Insert (0.2ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:40:25', '2016-01-11 03:40:25', 980190962)
1600
+ Fixture Insert (0.4ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:40:25', '2016-01-11 03:40:25', 298486374)
1601
+  (9.3ms) commit transaction
1602
+  (0.1ms) begin transaction
1603
+ -----------------------------------------------------------------
1604
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
1605
+ -----------------------------------------------------------------
1606
+  (0.3ms) SAVEPOINT active_record_1
1607
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1af5a2ee-0810-4e7f-99d7-2214ab31b3da"]]
1608
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.687804"], ["updated_at", "2016-01-11 03:40:25.687804"], ["uuid", "1af5a2ee-0810-4e7f-99d7-2214ab31b3da"]]
1609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1610
+ Processing by Track302::RedirectController#show as HTML
1611
+ Parameters: {"uuid"=>"wrong1af5a2ee-0810-4e7f-99d7-2214ab31b3da", "path"=>"/one/two%20three"}
1612
+ Track302::Link Load (0.5ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong1af5a2ee-0810-4e7f-99d7-2214ab31b3da"]]
1613
+ Rendered text template (0.0ms)
1614
+ Completed 404 Not Found in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms)
1615
+  (0.7ms) rollback transaction
1616
+  (0.1ms) begin transaction
1617
+ ----------------------------------------------------------------------------
1618
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1619
+ ----------------------------------------------------------------------------
1620
+  (0.1ms) SAVEPOINT active_record_1
1621
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b2165155-2091-498a-a404-4ba5611129b8"]]
1622
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.709540"], ["updated_at", "2016-01-11 03:40:25.709540"], ["uuid", "b2165155-2091-498a-a404-4ba5611129b8"]]
1623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1624
+ Processing by Track302::RedirectController#show as HTML
1625
+ Parameters: {"uuid"=>"b2165155-2091-498a-a404-4ba5611129b8", "path"=>"/one/two%20three"}
1626
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b2165155-2091-498a-a404-4ba5611129b8"]]
1627
+  (0.1ms) SAVEPOINT active_record_1
1628
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "b2165155-2091-498a-a404-4ba5611129b8"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:40:25.721361"], ["updated_at", "2016-01-11 03:40:25.721361"]]
1629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1630
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1631
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
1632
+  (0.9ms) rollback transaction
1633
+  (0.1ms) begin transaction
1634
+ ----------------------------------------------------------------------
1635
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1636
+ ----------------------------------------------------------------------
1637
+  (0.0ms) SAVEPOINT active_record_1
1638
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"]]
1639
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.725587"], ["updated_at", "2016-01-11 03:40:25.725587"], ["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"]]
1640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1641
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ? [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1642
+ Processing by Track302::RedirectController#show as HTML
1643
+ Parameters: {"uuid"=>"4ac0bc8b-182d-4d82-8041-b625fa3fd276", "path"=>"/one/two%20three"}
1644
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"]]
1645
+  (0.1ms) SAVEPOINT active_record_1
1646
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"], ["created_at", "2016-01-11 03:40:25.731847"], ["updated_at", "2016-01-11 03:40:25.731847"]]
1647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1648
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1649
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1650
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ? [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
1651
+  (1.0ms) rollback transaction
1652
+  (0.0ms) begin transaction
1653
+ ------------------------
1654
+ Track302Test: test_truth
1655
+ ------------------------
1656
+  (0.0ms) rollback transaction
1657
+  (0.0ms) begin transaction
1658
+ -----------------------------------------------------------
1659
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
1660
+ -----------------------------------------------------------
1661
+  (0.0ms) SAVEPOINT active_record_1
1662
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e3c858ba-f293-41f4-9fa1-5bb43097a69b"]]
1663
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.743109"], ["updated_at", "2016-01-11 03:40:25.743109"], ["uuid", "e3c858ba-f293-41f4-9fa1-5bb43097a69b"]]
1664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1665
+  (0.0ms) SAVEPOINT active_record_1
1666
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "f7a52e4f-69f6-49f8-9516-3c881a3af7ef"]]
1667
+ SQL (1.0ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "f7a52e4f-69f6-49f8-9516-3c881a3af7ef"], ["created_at", "2016-01-11 03:40:25.745761"], ["updated_at", "2016-01-11 03:40:25.745761"]]
1668
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1669
+  (2.4ms) rollback transaction
1670
+  (0.1ms) begin transaction
1671
+ ------------------------------------------
1672
+ Track302::LinkTest: test_autogenerate_uuid
1673
+ ------------------------------------------
1674
+  (0.0ms) SAVEPOINT active_record_1
1675
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "c25f40b5-d95d-478d-bfaf-c1f803852b2b"]]
1676
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.752170"], ["updated_at", "2016-01-11 03:40:25.752170"], ["uuid", "c25f40b5-d95d-478d-bfaf-c1f803852b2b"]]
1677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1678
+  (0.5ms) rollback transaction
1679
+  (0.1ms) begin transaction
1680
+ --------------------------------------------
1681
+ Track302::LinkTest: test_stores_original_url
1682
+ --------------------------------------------
1683
+  (0.0ms) SAVEPOINT active_record_1
1684
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cab572a5-aa0e-4889-95a3-b554c77deb47"]]
1685
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:40:25.754848"], ["updated_at", "2016-01-11 03:40:25.754848"], ["uuid", "cab572a5-aa0e-4889-95a3-b554c77deb47"]]
1686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1687
+  (0.4ms) rollback transaction
1688
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1689
+  (0.1ms) select sqlite_version(*)
1690
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1691
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1692
+ Migrating to CreateTrack302Links (20160111023755)
1693
+  (0.1ms) begin transaction
1694
+  (0.6ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1695
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1696
+  (1.0ms) commit transaction
1697
+ Migrating to CreateTrack302Clicks (20160111023840)
1698
+  (0.1ms) begin transaction
1699
+  (0.0ms) rollback transaction
1700
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1701
+  (0.1ms) select sqlite_version(*)
1702
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1703
+ ActiveRecord::SchemaMigration Load (18.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1704
+ Migrating to CreateTrack302Links (20160111023755)
1705
+  (0.1ms) begin transaction
1706
+  (0.4ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1707
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1708
+  (0.7ms) commit transaction
1709
+ Migrating to CreateTrack302Clicks (20160111023840)
1710
+  (0.1ms) begin transaction
1711
+  (0.3ms) rollback transaction
1712
+  (18.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1713
+  (0.1ms) select sqlite_version(*)
1714
+  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1715
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1716
+ Migrating to CreateTrack302Links (20160111023755)
1717
+  (0.1ms) begin transaction
1718
+  (0.7ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1719
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1720
+  (1.1ms) commit transaction
1721
+ Migrating to CreateTrack302Clicks (20160111023840)
1722
+  (0.1ms) begin transaction
1723
+  (0.9ms) CREATE TABLE "track302_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "data" blob, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1724
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1725
+  (0.9ms) commit transaction
1726
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1727
+  (18.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1728
+  (0.2ms) select sqlite_version(*)
1729
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1730
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1731
+ Migrating to CreateTrack302Links (20160111023755)
1732
+  (0.1ms) begin transaction
1733
+  (1.2ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1734
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1735
+  (1.0ms) commit transaction
1736
+ Migrating to CreateTrack302Clicks (20160111023840)
1737
+  (0.1ms) begin transaction
1738
+  (0.9ms) CREATE TABLE "track302_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "data" blob, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1739
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1740
+  (1.1ms) commit transaction
1741
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1742
+  (17.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1743
+  (0.1ms) select sqlite_version(*)
1744
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1745
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1746
+ Migrating to CreateTrack302Links (20160111023755)
1747
+  (0.1ms) begin transaction
1748
+  (0.4ms) CREATE TABLE "track302_links" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "original" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1749
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023755"]]
1750
+  (0.8ms) commit transaction
1751
+ Migrating to CreateTrack302Clicks (20160111023840)
1752
+  (0.1ms) begin transaction
1753
+  (0.5ms) CREATE TABLE "track302_clicks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "data" blob, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1754
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
1755
+  (0.9ms) commit transaction
1756
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1757
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1758
+  (0.6ms) begin transaction
1759
+ Fixture Delete (1.1ms) DELETE FROM "track302_clicks"
1760
+  (0.5ms) rollback transaction
1761
+  (0.1ms) begin transaction
1762
+ Fixture Delete (0.6ms) DELETE FROM "track302_clicks"
1763
+  (0.5ms) rollback transaction
1764
+  (0.1ms) begin transaction
1765
+ Fixture Delete (0.4ms) DELETE FROM "track302_clicks"
1766
+  (0.5ms) rollback transaction
1767
+  (0.1ms) begin transaction
1768
+ Fixture Delete (0.8ms) DELETE FROM "track302_clicks"
1769
+  (0.6ms) rollback transaction
1770
+  (0.1ms) begin transaction
1771
+ Fixture Delete (0.4ms) DELETE FROM "track302_clicks"
1772
+  (0.5ms) rollback transaction
1773
+  (0.1ms) begin transaction
1774
+ Fixture Delete (0.4ms) DELETE FROM "track302_clicks"
1775
+  (1.4ms) rollback transaction
1776
+  (0.1ms) begin transaction
1777
+ Fixture Delete (1.5ms) DELETE FROM "track302_clicks"
1778
+  (0.9ms) rollback transaction
1779
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1780
+  (0.1ms) begin transaction
1781
+ Fixture Delete (0.6ms) DELETE FROM "track302_clicks"
1782
+ Fixture Insert (0.3ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:52:25', '2016-01-11 03:52:25', 980190962)
1783
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:52:25', '2016-01-11 03:52:25', 298486374)
1784
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
1785
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:52:25', '2016-01-11 03:52:25', 980190962)
1786
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:52:25', '2016-01-11 03:52:25', 298486374)
1787
+  (18.4ms) commit transaction
1788
+  (0.1ms) begin transaction
1789
+ ----------------------------------------------------------------------------
1790
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1791
+ ----------------------------------------------------------------------------
1792
+  (0.1ms) SAVEPOINT active_record_1
1793
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ed977396-e259-44ac-9181-9b37b9e73415"]]
1794
+ SQL (1.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.752355"], ["updated_at", "2016-01-11 03:52:25.752355"], ["uuid", "ed977396-e259-44ac-9181-9b37b9e73415"]]
1795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1796
+ Processing by Track302::RedirectController#show as HTML
1797
+ Parameters: {"uuid"=>"ed977396-e259-44ac-9181-9b37b9e73415", "path"=>"/one/two%20three"}
1798
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ed977396-e259-44ac-9181-9b37b9e73415"]]
1799
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
1800
+  (0.7ms) rollback transaction
1801
+  (0.1ms) begin transaction
1802
+ -----------------------------------------------------------------
1803
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
1804
+ -----------------------------------------------------------------
1805
+  (0.0ms) SAVEPOINT active_record_1
1806
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a24694a2-00bb-4cdd-b9ae-9898944db675"]]
1807
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.772510"], ["updated_at", "2016-01-11 03:52:25.772510"], ["uuid", "a24694a2-00bb-4cdd-b9ae-9898944db675"]]
1808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1809
+ Processing by Track302::RedirectController#show as HTML
1810
+ Parameters: {"uuid"=>"wronga24694a2-00bb-4cdd-b9ae-9898944db675", "path"=>"/one/two%20three"}
1811
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wronga24694a2-00bb-4cdd-b9ae-9898944db675"]]
1812
+ Rendered text template (0.0ms)
1813
+ Completed 404 Not Found in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms)
1814
+  (0.9ms) rollback transaction
1815
+  (0.2ms) begin transaction
1816
+ ----------------------------------------------------------------------
1817
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1818
+ ----------------------------------------------------------------------
1819
+  (0.0ms) SAVEPOINT active_record_1
1820
+ Track302::Link Load (0.5ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b9cb76d7-9b66-4877-8b23-1f00227c85b1"]]
1821
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.792162"], ["updated_at", "2016-01-11 03:52:25.792162"], ["uuid", "b9cb76d7-9b66-4877-8b23-1f00227c85b1"]]
1822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1823
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = 'https://yahoo.com/abc?xyz=123' AND "track302_clicks"."ipaddress" = '8.8.8.2' [["uuid", "b9cb76d7-9b66-4877-8b23-1f00227c85b1"]]
1824
+  (0.6ms) rollback transaction
1825
+  (0.1ms) begin transaction
1826
+ --------------------------------------------
1827
+ Track302::LinkTest: test_stores_original_url
1828
+ --------------------------------------------
1829
+  (0.0ms) SAVEPOINT active_record_1
1830
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "fb915e29-7b76-4ecc-ab95-c0589e6e4521"]]
1831
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.799301"], ["updated_at", "2016-01-11 03:52:25.799301"], ["uuid", "fb915e29-7b76-4ecc-ab95-c0589e6e4521"]]
1832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1833
+  (0.6ms) rollback transaction
1834
+  (0.1ms) begin transaction
1835
+ ------------------------------------------
1836
+ Track302::LinkTest: test_autogenerate_uuid
1837
+ ------------------------------------------
1838
+  (0.0ms) SAVEPOINT active_record_1
1839
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "4bc055e0-a0dd-40fa-96c8-81d9bbaad786"]]
1840
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.802838"], ["updated_at", "2016-01-11 03:52:25.802838"], ["uuid", "4bc055e0-a0dd-40fa-96c8-81d9bbaad786"]]
1841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1842
+  (0.6ms) rollback transaction
1843
+  (0.1ms) begin transaction
1844
+ -----------------------------------------------------------
1845
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
1846
+ -----------------------------------------------------------
1847
+  (0.0ms) SAVEPOINT active_record_1
1848
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cbb5ad20-cf43-4f72-b326-401627e18c9a"]]
1849
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:52:25.806072"], ["updated_at", "2016-01-11 03:52:25.806072"], ["uuid", "cbb5ad20-cf43-4f72-b326-401627e18c9a"]]
1850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1851
+  (0.1ms) SAVEPOINT active_record_1
1852
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "218e64f4-7a88-4b3d-9e7a-9621ee7f3d84"]]
1853
+ SQL (1.3ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "218e64f4-7a88-4b3d-9e7a-9621ee7f3d84"], ["created_at", "2016-01-11 03:52:25.808732"], ["updated_at", "2016-01-11 03:52:25.808732"]]
1854
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1855
+  (1.5ms) rollback transaction
1856
+  (0.1ms) begin transaction
1857
+ ------------------------
1858
+ Track302Test: test_truth
1859
+ ------------------------
1860
+  (0.0ms) rollback transaction
1861
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1862
+  (0.1ms) begin transaction
1863
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
1864
+ Fixture Insert (0.2ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:53:55', '2016-01-11 03:53:55', 980190962)
1865
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:53:55', '2016-01-11 03:53:55', 298486374)
1866
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
1867
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:53:55', '2016-01-11 03:53:55', 980190962)
1868
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:53:55', '2016-01-11 03:53:55', 298486374)
1869
+  (17.6ms) commit transaction
1870
+  (0.1ms) begin transaction
1871
+ -----------------------------------------------------------------
1872
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
1873
+ -----------------------------------------------------------------
1874
+  (0.1ms) SAVEPOINT active_record_1
1875
+ Track302::Link Load (0.3ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ccd80515-727f-4401-85cb-5a9a3bc2a0ab"]]
1876
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:53:55.771654"], ["updated_at", "2016-01-11 03:53:55.771654"], ["uuid", "ccd80515-727f-4401-85cb-5a9a3bc2a0ab"]]
1877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1878
+ Processing by Track302::RedirectController#show as HTML
1879
+ Parameters: {"uuid"=>"wrongccd80515-727f-4401-85cb-5a9a3bc2a0ab", "path"=>"/one/two%20three"}
1880
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongccd80515-727f-4401-85cb-5a9a3bc2a0ab"]]
1881
+ Rendered text template (0.0ms)
1882
+ Completed 404 Not Found in 12ms (Views: 10.9ms | ActiveRecord: 0.1ms)
1883
+  (7.5ms) rollback transaction
1884
+  (0.1ms) begin transaction
1885
+ ----------------------------------------------------------------------------
1886
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1887
+ ----------------------------------------------------------------------------
1888
+  (0.1ms) SAVEPOINT active_record_1
1889
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b508bca8-6804-49ef-9e53-65ea45b26b7e"]]
1890
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:53:55.810884"], ["updated_at", "2016-01-11 03:53:55.810884"], ["uuid", "b508bca8-6804-49ef-9e53-65ea45b26b7e"]]
1891
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1892
+ Processing by Track302::RedirectController#show as HTML
1893
+ Parameters: {"uuid"=>"b508bca8-6804-49ef-9e53-65ea45b26b7e", "path"=>"/one/two%20three"}
1894
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b508bca8-6804-49ef-9e53-65ea45b26b7e"]]
1895
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms)
1896
+  (0.7ms) rollback transaction
1897
+  (0.2ms) begin transaction
1898
+ ----------------------------------------------------------------------
1899
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1900
+ ----------------------------------------------------------------------
1901
+  (0.1ms) SAVEPOINT active_record_1
1902
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3c02b132-7246-4ae2-b324-0f4e842b1e9a"]]
1903
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:53:55.825980"], ["updated_at", "2016-01-11 03:53:55.825980"], ["uuid", "3c02b132-7246-4ae2-b324-0f4e842b1e9a"]]
1904
+  (0.8ms) RELEASE SAVEPOINT active_record_1
1905
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "3c02b132-7246-4ae2-b324-0f4e842b1e9a"]]
1906
+ Processing by Track302::RedirectController#show as HTML
1907
+ Parameters: {"uuid"=>"3c02b132-7246-4ae2-b324-0f4e842b1e9a", "path"=>"/one/two%20three"}
1908
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3c02b132-7246-4ae2-b324-0f4e842b1e9a"]]
1909
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
1910
+  (0.8ms) rollback transaction
1911
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1912
+  (0.1ms) begin transaction
1913
+ Fixture Delete (0.5ms) DELETE FROM "track302_clicks"
1914
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:54:18', '2016-01-11 03:54:18', 980190962)
1915
+ Fixture Insert (0.0ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:54:18', '2016-01-11 03:54:18', 298486374)
1916
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
1917
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:54:18', '2016-01-11 03:54:18', 980190962)
1918
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:54:18', '2016-01-11 03:54:18', 298486374)
1919
+  (9.1ms) commit transaction
1920
+  (0.1ms) begin transaction
1921
+ ----------------------------------------------------------------------
1922
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1923
+ ----------------------------------------------------------------------
1924
+  (0.1ms) SAVEPOINT active_record_1
1925
+ Track302::Link Load (0.3ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
1926
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:19.008848"], ["updated_at", "2016-01-11 03:54:19.008848"], ["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
1927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1928
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
1929
+ Processing by Track302::RedirectController#show as HTML
1930
+ Parameters: {"uuid"=>"e676d022-9d71-4818-8e86-67a211fc0abd", "path"=>"/one/two%20three"}
1931
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
1932
+  (0.1ms) SAVEPOINT active_record_1
1933
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"], ["created_at", "2016-01-11 03:54:19.025743"], ["updated_at", "2016-01-11 03:54:19.025743"]]
1934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1935
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1936
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
1937
+  (0.0ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
1938
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
1939
+  (1.0ms) rollback transaction
1940
+  (0.1ms) begin transaction
1941
+ ----------------------------------------------------------------------------
1942
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1943
+ ----------------------------------------------------------------------------
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"]]
1946
+ SQL (1.8ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:19.031214"], ["updated_at", "2016-01-11 03:54:19.031214"], ["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"]]
1947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1948
+ Processing by Track302::RedirectController#show as HTML
1949
+ Parameters: {"uuid"=>"6dc79253-e1a1-4427-944f-513c25d55cb1", "path"=>"/one/two%20three"}
1950
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"]]
1951
+  (0.0ms) SAVEPOINT active_record_1
1952
+ SQL (0.4ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at") VALUES (?, ?, ?) [["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"], ["created_at", "2016-01-11 03:54:19.038846"], ["updated_at", "2016-01-11 03:54:19.038846"]]
1953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1954
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
1955
+ Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
1956
+  (0.8ms) rollback transaction
1957
+  (0.1ms) begin transaction
1958
+ -----------------------------------------------------------------
1959
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
1960
+ -----------------------------------------------------------------
1961
+  (0.0ms) SAVEPOINT active_record_1
1962
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cd102a5b-578a-49ba-ba30-1c9d51db4ad8"]]
1963
+ SQL (0.4ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:19.042547"], ["updated_at", "2016-01-11 03:54:19.042547"], ["uuid", "cd102a5b-578a-49ba-ba30-1c9d51db4ad8"]]
1964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1965
+ Processing by Track302::RedirectController#show as HTML
1966
+ Parameters: {"uuid"=>"wrongcd102a5b-578a-49ba-ba30-1c9d51db4ad8", "path"=>"/one/two%20three"}
1967
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongcd102a5b-578a-49ba-ba30-1c9d51db4ad8"]]
1968
+ Rendered text template (0.0ms)
1969
+ Completed 404 Not Found in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms)
1970
+  (0.8ms) rollback transaction
1971
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1972
+  (0.1ms) begin transaction
1973
+ Fixture Delete (0.6ms) DELETE FROM "track302_clicks"
1974
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:54:29', '2016-01-11 03:54:29', 980190962)
1975
+ Fixture Insert (0.0ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:54:29', '2016-01-11 03:54:29', 298486374)
1976
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
1977
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:54:29', '2016-01-11 03:54:29', 980190962)
1978
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:54:29', '2016-01-11 03:54:29', 298486374)
1979
+  (9.1ms) commit transaction
1980
+  (0.1ms) begin transaction
1981
+ ----------------------------------------------------------------------
1982
+ Track302::RedirectControllerTest: test_should_track_click_through_data
1983
+ ----------------------------------------------------------------------
1984
+  (0.1ms) SAVEPOINT active_record_1
1985
+ Track302::Link Load (0.3ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5a260079-78b0-4744-87c9-a2a29a9571f8"]]
1986
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:29.716376"], ["updated_at", "2016-01-11 03:54:29.716376"], ["uuid", "5a260079-78b0-4744-87c9-a2a29a9571f8"]]
1987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1988
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "5a260079-78b0-4744-87c9-a2a29a9571f8"]]
1989
+ Processing by Track302::RedirectController#show as HTML
1990
+ Parameters: {"uuid"=>"5a260079-78b0-4744-87c9-a2a29a9571f8", "path"=>"/one/two%20three"}
1991
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5a260079-78b0-4744-87c9-a2a29a9571f8"]]
1992
+ Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
1993
+  (0.8ms) rollback transaction
1994
+  (0.1ms) begin transaction
1995
+ ----------------------------------------------------------------------------
1996
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
1997
+ ----------------------------------------------------------------------------
1998
+  (0.1ms) SAVEPOINT active_record_1
1999
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ac75c688-696b-4d9b-ab1d-f4c10a938d32"]]
2000
+ SQL (1.1ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:29.737192"], ["updated_at", "2016-01-11 03:54:29.737192"], ["uuid", "ac75c688-696b-4d9b-ab1d-f4c10a938d32"]]
2001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2002
+ Processing by Track302::RedirectController#show as HTML
2003
+ Parameters: {"uuid"=>"ac75c688-696b-4d9b-ab1d-f4c10a938d32", "path"=>"/one/two%20three"}
2004
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ac75c688-696b-4d9b-ab1d-f4c10a938d32"]]
2005
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
2006
+  (0.7ms) rollback transaction
2007
+  (0.1ms) begin transaction
2008
+ -----------------------------------------------------------------
2009
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2010
+ -----------------------------------------------------------------
2011
+  (0.1ms) SAVEPOINT active_record_1
2012
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0f03da59-1ce8-44fe-b4b2-b7b7f715b00d"]]
2013
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:54:29.746546"], ["updated_at", "2016-01-11 03:54:29.746546"], ["uuid", "0f03da59-1ce8-44fe-b4b2-b7b7f715b00d"]]
2014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2015
+ Processing by Track302::RedirectController#show as HTML
2016
+ Parameters: {"uuid"=>"wrong0f03da59-1ce8-44fe-b4b2-b7b7f715b00d", "path"=>"/one/two%20three"}
2017
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0f03da59-1ce8-44fe-b4b2-b7b7f715b00d"]]
2018
+ Rendered text template (0.0ms)
2019
+ Completed 404 Not Found in 9ms (Views: 8.4ms | ActiveRecord: 0.2ms)
2020
+  (0.7ms) rollback transaction
2021
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2022
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2023
+  (0.1ms) begin transaction
2024
+ Fixture Delete (0.5ms) DELETE FROM "track302_clicks"
2025
+ Fixture Insert (0.2ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:55:21', '2016-01-11 03:55:21', 980190962)
2026
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:55:21', '2016-01-11 03:55:21', 298486374)
2027
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2028
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:55:21', '2016-01-11 03:55:21', 980190962)
2029
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:55:21', '2016-01-11 03:55:21', 298486374)
2030
+  (0.7ms) commit transaction
2031
+  (0.1ms) begin transaction
2032
+ ----------------------------------------------------------------------
2033
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2034
+ ----------------------------------------------------------------------
2035
+  (0.1ms) SAVEPOINT active_record_1
2036
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
2037
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:55:21.599333"], ["updated_at", "2016-01-11 03:55:21.599333"], ["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
2038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2039
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
2040
+ Processing by Track302::RedirectController#show as HTML
2041
+ Parameters: {"uuid"=>"67888adc-b85f-49e2-85c0-a4de85c6bc5d", "path"=>"/one/two%20three"}
2042
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
2043
+  (0.1ms) SAVEPOINT active_record_1
2044
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 03:55:21.615538"], ["updated_at", "2016-01-11 03:55:21.615538"]]
2045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2046
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2047
+ Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
2048
+  (0.0ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
2049
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2050
+  (0.7ms) rollback transaction
2051
+  (0.1ms) begin transaction
2052
+ ----------------------------------------------------------------------------
2053
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2054
+ ----------------------------------------------------------------------------
2055
+  (0.1ms) SAVEPOINT active_record_1
2056
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"]]
2057
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:55:21.637772"], ["updated_at", "2016-01-11 03:55:21.637772"], ["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"]]
2058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2059
+ Processing by Track302::RedirectController#show as HTML
2060
+ Parameters: {"uuid"=>"9267041c-a9a1-4a33-985b-7157dfa8e0af", "path"=>"/one/two%20three"}
2061
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"]]
2062
+  (0.1ms) SAVEPOINT active_record_1
2063
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 03:55:21.647039"], ["updated_at", "2016-01-11 03:55:21.647039"]]
2064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2065
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2066
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2067
+  (0.7ms) rollback transaction
2068
+  (0.1ms) begin transaction
2069
+ -----------------------------------------------------------------
2070
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2071
+ -----------------------------------------------------------------
2072
+  (0.0ms) SAVEPOINT active_record_1
2073
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0b530cf7-2054-488d-b518-d3f82175f6b7"]]
2074
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:55:21.651151"], ["updated_at", "2016-01-11 03:55:21.651151"], ["uuid", "0b530cf7-2054-488d-b518-d3f82175f6b7"]]
2075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2076
+ Processing by Track302::RedirectController#show as HTML
2077
+ Parameters: {"uuid"=>"wrong0b530cf7-2054-488d-b518-d3f82175f6b7", "path"=>"/one/two%20three"}
2078
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0b530cf7-2054-488d-b518-d3f82175f6b7"]]
2079
+ Rendered text template (0.0ms)
2080
+ Completed 404 Not Found in 12ms (Views: 11.6ms | ActiveRecord: 0.1ms)
2081
+  (0.5ms) rollback transaction
2082
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2083
+  (0.1ms) begin transaction
2084
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
2085
+ Fixture Insert (0.2ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 03:57:24', '2016-01-11 03:57:24', 980190962)
2086
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:57:24', '2016-01-11 03:57:24', 298486374)
2087
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2088
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:57:24', '2016-01-11 03:57:24', 980190962)
2089
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 03:57:24', '2016-01-11 03:57:24', 298486374)
2090
+  (0.8ms) commit transaction
2091
+  (0.0ms) begin transaction
2092
+ ----------------------------------------------------------------------
2093
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2094
+ ----------------------------------------------------------------------
2095
+  (0.1ms) SAVEPOINT active_record_1
2096
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
2097
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:57:24.946448"], ["updated_at", "2016-01-11 03:57:24.946448"], ["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
2098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2099
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
2100
+ Processing by Track302::RedirectController#show as HTML
2101
+ Parameters: {"uuid"=>"7da15c3a-f87e-4f98-acc0-17f0728fa1ca", "path"=>"/one/two%20three"}
2102
+ Rendered text template (0.0ms)
2103
+ Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
2104
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
2105
+  (0.4ms) rollback transaction
2106
+  (0.1ms) begin transaction
2107
+ ----------------------------------------------------------------------------
2108
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2109
+ ----------------------------------------------------------------------------
2110
+  (0.0ms) SAVEPOINT active_record_1
2111
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e2fc298-e35a-4cab-87e2-1e813e3586a9"]]
2112
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:57:24.969164"], ["updated_at", "2016-01-11 03:57:24.969164"], ["uuid", "7e2fc298-e35a-4cab-87e2-1e813e3586a9"]]
2113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2114
+ Processing by Track302::RedirectController#show as HTML
2115
+ Parameters: {"uuid"=>"7e2fc298-e35a-4cab-87e2-1e813e3586a9", "path"=>"/one/two%20three"}
2116
+ Rendered text template (0.0ms)
2117
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2118
+  (0.5ms) rollback transaction
2119
+  (0.1ms) begin transaction
2120
+ -----------------------------------------------------------------
2121
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2122
+ -----------------------------------------------------------------
2123
+  (0.0ms) SAVEPOINT active_record_1
2124
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aec8979e-1412-4ff7-851c-2a5e4effe4ef"]]
2125
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 03:57:24.975950"], ["updated_at", "2016-01-11 03:57:24.975950"], ["uuid", "aec8979e-1412-4ff7-851c-2a5e4effe4ef"]]
2126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2127
+ Processing by Track302::RedirectController#show as HTML
2128
+ Parameters: {"uuid"=>"wrongaec8979e-1412-4ff7-851c-2a5e4effe4ef", "path"=>"/one/two%20three"}
2129
+ Rendered text template (0.0ms)
2130
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2131
+  (0.5ms) rollback transaction
2132
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2133
+  (0.1ms) begin transaction
2134
+ Fixture Delete (0.8ms) DELETE FROM "track302_clicks"
2135
+ Fixture Insert (0.5ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:09:44', '2016-01-11 04:09:44', 980190962)
2136
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:09:44', '2016-01-11 04:09:44', 298486374)
2137
+ Fixture Delete (0.4ms) DELETE FROM "track302_links"
2138
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:09:44', '2016-01-11 04:09:44', 980190962)
2139
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:09:44', '2016-01-11 04:09:44', 298486374)
2140
+  (1.0ms) commit transaction
2141
+  (0.0ms) begin transaction
2142
+ -----------------------------------------------------------------
2143
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2144
+ -----------------------------------------------------------------
2145
+  (0.1ms) SAVEPOINT active_record_1
2146
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7374fc68-c4df-4bcc-b114-0dd7112b442f"]]
2147
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:09:44.329724"], ["updated_at", "2016-01-11 04:09:44.329724"], ["uuid", "7374fc68-c4df-4bcc-b114-0dd7112b442f"]]
2148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2149
+ Processing by Track302::RedirectController#show as HTML
2150
+ Parameters: {"uuid"=>"wrong7374fc68-c4df-4bcc-b114-0dd7112b442f", "path"=>"/one/two%20three"}
2151
+ Rendered text template (0.0ms)
2152
+ Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
2153
+  (0.7ms) rollback transaction
2154
+  (0.1ms) begin transaction
2155
+ ----------------------------------------------------------------------------
2156
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2157
+ ----------------------------------------------------------------------------
2158
+  (0.1ms) SAVEPOINT active_record_1
2159
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cad67792-35bc-4c66-94ca-9276311c1248"]]
2160
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:09:44.356171"], ["updated_at", "2016-01-11 04:09:44.356171"], ["uuid", "cad67792-35bc-4c66-94ca-9276311c1248"]]
2161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2162
+ Processing by Track302::RedirectController#show as HTML
2163
+ Parameters: {"uuid"=>"cad67792-35bc-4c66-94ca-9276311c1248", "path"=>"/one/two%20three"}
2164
+ Rendered text template (0.0ms)
2165
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2166
+  (0.7ms) rollback transaction
2167
+  (0.0ms) begin transaction
2168
+ ----------------------------------------------------------------------
2169
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2170
+ ----------------------------------------------------------------------
2171
+  (0.0ms) SAVEPOINT active_record_1
2172
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
2173
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:09:44.363466"], ["updated_at", "2016-01-11 04:09:44.363466"], ["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
2174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2175
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
2176
+ Processing by Track302::RedirectController#show as HTML
2177
+ Parameters: {"uuid"=>"bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f", "path"=>"/one/two%20three"}
2178
+ Rendered text template (0.0ms)
2179
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2180
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
2181
+  (0.8ms) rollback transaction
2182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2183
+  (0.1ms) begin transaction
2184
+ Fixture Delete (1.4ms) DELETE FROM "track302_clicks"
2185
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:10:34', '2016-01-11 04:10:34', 980190962)
2186
+ Fixture Insert (0.0ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:10:34', '2016-01-11 04:10:34', 298486374)
2187
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2188
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:10:34', '2016-01-11 04:10:34', 980190962)
2189
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:10:34', '2016-01-11 04:10:34', 298486374)
2190
+  (8.3ms) commit transaction
2191
+  (0.1ms) begin transaction
2192
+ -----------------------------------------------------------------
2193
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2194
+ -----------------------------------------------------------------
2195
+  (0.1ms) SAVEPOINT active_record_1
2196
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a3099fcc-0df2-4940-b9fa-f80b78aa768b"]]
2197
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:10:34.475237"], ["updated_at", "2016-01-11 04:10:34.475237"], ["uuid", "a3099fcc-0df2-4940-b9fa-f80b78aa768b"]]
2198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2199
+ Processing by Track302::RedirectController#show as HTML
2200
+ Parameters: {"uuid"=>"wronga3099fcc-0df2-4940-b9fa-f80b78aa768b", "path"=>"/one/two%20three"}
2201
+ Rendered text template (0.0ms)
2202
+ Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
2203
+  (0.5ms) rollback transaction
2204
+  (0.1ms) begin transaction
2205
+ ----------------------------------------------------------------------
2206
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2207
+ ----------------------------------------------------------------------
2208
+  (0.1ms) SAVEPOINT active_record_1
2209
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
2210
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:10:34.500756"], ["updated_at", "2016-01-11 04:10:34.500756"], ["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
2211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2212
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
2213
+ Processing by Track302::RedirectController#show as HTML
2214
+ Parameters: {"uuid"=>"a2a4c0fb-d61b-4b40-b689-d9554077b709", "path"=>"/one/two%20three"}
2215
+ Rendered text template (0.0ms)
2216
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2217
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
2218
+  (0.4ms) rollback transaction
2219
+  (0.1ms) begin transaction
2220
+ ----------------------------------------------------------------------------
2221
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2222
+ ----------------------------------------------------------------------------
2223
+  (0.0ms) SAVEPOINT active_record_1
2224
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2f39cc4d-4e98-421d-8b3c-db947734dfef"]]
2225
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:10:34.510664"], ["updated_at", "2016-01-11 04:10:34.510664"], ["uuid", "2f39cc4d-4e98-421d-8b3c-db947734dfef"]]
2226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2227
+ Processing by Track302::RedirectController#show as HTML
2228
+ Parameters: {"uuid"=>"2f39cc4d-4e98-421d-8b3c-db947734dfef", "path"=>"/one/two%20three"}
2229
+ Rendered text template (0.0ms)
2230
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
2231
+  (0.5ms) rollback transaction
2232
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2233
+  (0.1ms) begin transaction
2234
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
2235
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:12:48', '2016-01-11 04:12:48', 980190962)
2236
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:12:48', '2016-01-11 04:12:48', 298486374)
2237
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2238
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:12:48', '2016-01-11 04:12:48', 980190962)
2239
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:12:48', '2016-01-11 04:12:48', 298486374)
2240
+  (8.7ms) commit transaction
2241
+  (0.1ms) begin transaction
2242
+ -----------------------------------------------------------------
2243
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2244
+ -----------------------------------------------------------------
2245
+  (0.1ms) SAVEPOINT active_record_1
2246
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "75ab99a6-39a1-4d60-8732-556da243e026"]]
2247
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:12:48.495948"], ["updated_at", "2016-01-11 04:12:48.495948"], ["uuid", "75ab99a6-39a1-4d60-8732-556da243e026"]]
2248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2249
+ Processing by Track302::RedirectController#show as HTML
2250
+ Parameters: {"uuid"=>"wrong75ab99a6-39a1-4d60-8732-556da243e026", "path"=>"/one/two%20three"}
2251
+ Rendered text template (0.0ms)
2252
+ Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms)
2253
+  (0.5ms) rollback transaction
2254
+  (0.1ms) begin transaction
2255
+ ----------------------------------------------------------------------------
2256
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2257
+ ----------------------------------------------------------------------------
2258
+  (0.0ms) SAVEPOINT active_record_1
2259
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "be71766c-87fb-4860-b71a-6bbd385331ef"]]
2260
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:12:48.515589"], ["updated_at", "2016-01-11 04:12:48.515589"], ["uuid", "be71766c-87fb-4860-b71a-6bbd385331ef"]]
2261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2262
+ Processing by Track302::RedirectController#show as HTML
2263
+ Parameters: {"uuid"=>"be71766c-87fb-4860-b71a-6bbd385331ef", "path"=>"/one/two%20three"}
2264
+ Rendered text template (0.0ms)
2265
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2266
+  (0.5ms) rollback transaction
2267
+  (0.0ms) begin transaction
2268
+ ----------------------------------------------------------------------
2269
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2270
+ ----------------------------------------------------------------------
2271
+  (0.0ms) SAVEPOINT active_record_1
2272
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
2273
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:12:48.522309"], ["updated_at", "2016-01-11 04:12:48.522309"], ["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
2274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2275
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
2276
+ Processing by Track302::RedirectController#show as HTML
2277
+ Parameters: {"uuid"=>"8043949c-5687-40b3-b7df-7a8a13e944af", "path"=>"/one/two%20three"}
2278
+ Rendered text template (0.0ms)
2279
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2280
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
2281
+  (0.4ms) rollback transaction
2282
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2283
+  (0.1ms) begin transaction
2284
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
2285
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:13:30', '2016-01-11 04:13:30', 980190962)
2286
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:13:30', '2016-01-11 04:13:30', 298486374)
2287
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2288
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:13:30', '2016-01-11 04:13:30', 980190962)
2289
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:13:30', '2016-01-11 04:13:30', 298486374)
2290
+  (8.7ms) commit transaction
2291
+  (0.1ms) begin transaction
2292
+ ----------------------------------------------------------------------------
2293
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2294
+ ----------------------------------------------------------------------------
2295
+  (0.1ms) SAVEPOINT active_record_1
2296
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "92d11ea9-74dd-4ab4-bafe-67fa2d7fe269"]]
2297
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:30.550974"], ["updated_at", "2016-01-11 04:13:30.550974"], ["uuid", "92d11ea9-74dd-4ab4-bafe-67fa2d7fe269"]]
2298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2299
+ Processing by Track302::RedirectController#show as HTML
2300
+ Parameters: {"uuid"=>"92d11ea9-74dd-4ab4-bafe-67fa2d7fe269", "path"=>"/one/two%20three"}
2301
+ Rendered text template (0.0ms)
2302
+ Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
2303
+  (0.5ms) rollback transaction
2304
+  (0.1ms) begin transaction
2305
+ -----------------------------------------------------------------
2306
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2307
+ -----------------------------------------------------------------
2308
+  (0.0ms) SAVEPOINT active_record_1
2309
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "45c99da8-a49f-451b-bdb2-ff139bb858a6"]]
2310
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:30.571426"], ["updated_at", "2016-01-11 04:13:30.571426"], ["uuid", "45c99da8-a49f-451b-bdb2-ff139bb858a6"]]
2311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2312
+ Processing by Track302::RedirectController#show as HTML
2313
+ Parameters: {"uuid"=>"wrong45c99da8-a49f-451b-bdb2-ff139bb858a6", "path"=>"/one/two%20three"}
2314
+ Rendered text template (0.0ms)
2315
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
2316
+  (0.5ms) rollback transaction
2317
+  (0.1ms) begin transaction
2318
+ ----------------------------------------------------------------------
2319
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2320
+ ----------------------------------------------------------------------
2321
+  (0.0ms) SAVEPOINT active_record_1
2322
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
2323
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:30.583182"], ["updated_at", "2016-01-11 04:13:30.583182"], ["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
2324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2325
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
2326
+ Processing by Track302::RedirectController#show as HTML
2327
+ Parameters: {"uuid"=>"dcc75a03-863b-4d3b-a8c9-e2f7495a95e5", "path"=>"/one/two%20three"}
2328
+ Rendered text template (0.0ms)
2329
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2330
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
2331
+  (0.5ms) rollback transaction
2332
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2333
+  (0.1ms) begin transaction
2334
+ Fixture Delete (0.7ms) DELETE FROM "track302_clicks"
2335
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:13:55', '2016-01-11 04:13:55', 980190962)
2336
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:13:55', '2016-01-11 04:13:55', 298486374)
2337
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2338
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:13:55', '2016-01-11 04:13:55', 980190962)
2339
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:13:55', '2016-01-11 04:13:55', 298486374)
2340
+  (8.7ms) commit transaction
2341
+  (0.1ms) begin transaction
2342
+ -----------------------------------------------------------------
2343
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2344
+ -----------------------------------------------------------------
2345
+  (0.1ms) SAVEPOINT active_record_1
2346
+ Track302::Link Load (0.3ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "97b8b678-344c-41f1-8737-f40531bd10d4"]]
2347
+ SQL (0.9ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:55.991539"], ["updated_at", "2016-01-11 04:13:55.991539"], ["uuid", "97b8b678-344c-41f1-8737-f40531bd10d4"]]
2348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2349
+ Processing by Track302::RedirectController#show as HTML
2350
+ Parameters: {"uuid"=>"wrong97b8b678-344c-41f1-8737-f40531bd10d4", "path"=>"/one/two%20three"}
2351
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong97b8b678-344c-41f1-8737-f40531bd10d4"]]
2352
+ Rendered text template (0.0ms)
2353
+ Completed 404 Not Found in 6ms (Views: 5.9ms | ActiveRecord: 0.1ms)
2354
+  (0.7ms) rollback transaction
2355
+  (0.1ms) begin transaction
2356
+ ----------------------------------------------------------------------
2357
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2358
+ ----------------------------------------------------------------------
2359
+  (0.0ms) SAVEPOINT active_record_1
2360
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
2361
+ SQL (0.4ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:56.011870"], ["updated_at", "2016-01-11 04:13:56.011870"], ["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
2362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2363
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
2364
+ Processing by Track302::RedirectController#show as HTML
2365
+ Parameters: {"uuid"=>"312402eb-ac6d-4635-8b0a-8402fd479aac", "path"=>"/one/two%20three"}
2366
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
2367
+  (0.1ms) SAVEPOINT active_record_1
2368
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:13:56.020541"], ["updated_at", "2016-01-11 04:13:56.020541"]]
2369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2370
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2371
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
2372
+  (0.0ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
2373
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2374
+  (1.1ms) rollback transaction
2375
+  (0.1ms) begin transaction
2376
+ ----------------------------------------------------------------------------
2377
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2378
+ ----------------------------------------------------------------------------
2379
+  (0.0ms) SAVEPOINT active_record_1
2380
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"]]
2381
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:13:56.046874"], ["updated_at", "2016-01-11 04:13:56.046874"], ["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"]]
2382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2383
+ Processing by Track302::RedirectController#show as HTML
2384
+ Parameters: {"uuid"=>"5e4dd4db-d75b-440c-ac3a-9daaa4593fe7", "path"=>"/one/two%20three"}
2385
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"]]
2386
+  (0.0ms) SAVEPOINT active_record_1
2387
+ SQL (0.5ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:13:56.055118"], ["updated_at", "2016-01-11 04:13:56.055118"]]
2388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2389
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2390
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2391
+  (0.9ms) rollback transaction
2392
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2393
+  (0.1ms) begin transaction
2394
+ Fixture Delete (0.3ms) DELETE FROM "track302_clicks"
2395
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:14:48', '2016-01-11 04:14:48', 980190962)
2396
+ Fixture Insert (0.0ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:14:48', '2016-01-11 04:14:48', 298486374)
2397
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2398
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:14:48', '2016-01-11 04:14:48', 980190962)
2399
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:14:48', '2016-01-11 04:14:48', 298486374)
2400
+  (0.7ms) commit transaction
2401
+  (0.1ms) begin transaction
2402
+ -----------------------------------------------------------------
2403
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2404
+ -----------------------------------------------------------------
2405
+  (0.1ms) SAVEPOINT active_record_1
2406
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aa08b4a7-19ef-46c1-bc9d-cf7c70477eec"]]
2407
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:14:48.528866"], ["updated_at", "2016-01-11 04:14:48.528866"], ["uuid", "aa08b4a7-19ef-46c1-bc9d-cf7c70477eec"]]
2408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2409
+ Processing by Track302::RedirectController#show as HTML
2410
+ Parameters: {"uuid"=>"wrongaa08b4a7-19ef-46c1-bc9d-cf7c70477eec", "path"=>"/one/two%20three"}
2411
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongaa08b4a7-19ef-46c1-bc9d-cf7c70477eec"]]
2412
+ Rendered text template (0.0ms)
2413
+ Completed 404 Not Found in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms)
2414
+  (0.4ms) rollback transaction
2415
+  (0.1ms) begin transaction
2416
+ ----------------------------------------------------------------------
2417
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2418
+ ----------------------------------------------------------------------
2419
+  (0.0ms) SAVEPOINT active_record_1
2420
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
2421
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:14:48.551457"], ["updated_at", "2016-01-11 04:14:48.551457"], ["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
2422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2423
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
2424
+ Processing by Track302::RedirectController#show as HTML
2425
+ Parameters: {"uuid"=>"2d423e29-9c25-48d6-b11b-5deeebc9af66", "path"=>"/one/two%20three"}
2426
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
2427
+  (0.0ms) SAVEPOINT active_record_1
2428
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:14:48.559107"], ["updated_at", "2016-01-11 04:14:48.559107"]]
2429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2430
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2431
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
2432
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
2433
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2434
+  (0.7ms) rollback transaction
2435
+  (0.1ms) begin transaction
2436
+ ----------------------------------------------------------------------------
2437
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2438
+ ----------------------------------------------------------------------------
2439
+  (0.0ms) SAVEPOINT active_record_1
2440
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"]]
2441
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:14:48.578703"], ["updated_at", "2016-01-11 04:14:48.578703"], ["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"]]
2442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2443
+ Processing by Track302::RedirectController#show as HTML
2444
+ Parameters: {"uuid"=>"b84fa27e-68f7-473f-aeb0-661bb89a0b93", "path"=>"/one/two%20three"}
2445
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"]]
2446
+  (0.0ms) SAVEPOINT active_record_1
2447
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:14:48.584810"], ["updated_at", "2016-01-11 04:14:48.584810"]]
2448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2449
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2450
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2451
+  (0.9ms) rollback transaction
2452
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2453
+  (0.2ms) begin transaction
2454
+ Fixture Delete (0.7ms) DELETE FROM "track302_clicks"
2455
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:15:08', '2016-01-11 04:15:08', 980190962)
2456
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:08', '2016-01-11 04:15:08', 298486374)
2457
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2458
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:08', '2016-01-11 04:15:08', 980190962)
2459
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:08', '2016-01-11 04:15:08', 298486374)
2460
+  (1.1ms) commit transaction
2461
+  (0.0ms) begin transaction
2462
+ -----------------------------------------------------------------
2463
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2464
+ -----------------------------------------------------------------
2465
+  (0.1ms) SAVEPOINT active_record_1
2466
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b8328aa7-b033-4852-8518-545dae6aa5bb"]]
2467
+ SQL (0.8ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:08.666300"], ["updated_at", "2016-01-11 04:15:08.666300"], ["uuid", "b8328aa7-b033-4852-8518-545dae6aa5bb"]]
2468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2469
+ Processing by Track302::RedirectController#show as HTML
2470
+ Parameters: {"uuid"=>"wrongb8328aa7-b033-4852-8518-545dae6aa5bb", "path"=>"/one/two%20three"}
2471
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongb8328aa7-b033-4852-8518-545dae6aa5bb"]]
2472
+ Rendered text template (0.0ms)
2473
+ Completed 404 Not Found in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms)
2474
+  (0.7ms) rollback transaction
2475
+  (0.1ms) begin transaction
2476
+ ----------------------------------------------------------------------------
2477
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2478
+ ----------------------------------------------------------------------------
2479
+  (0.0ms) SAVEPOINT active_record_1
2480
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"]]
2481
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:08.693473"], ["updated_at", "2016-01-11 04:15:08.693473"], ["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"]]
2482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2483
+ Processing by Track302::RedirectController#show as HTML
2484
+ Parameters: {"uuid"=>"b7998be8-034b-44e6-8d66-96937d1fca66", "path"=>"/one/two%20three"}
2485
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"]]
2486
+  (0.1ms) SAVEPOINT active_record_1
2487
+ SQL (0.8ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:15:08.701085"], ["updated_at", "2016-01-11 04:15:08.701085"]]
2488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2489
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2490
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
2491
+  (1.0ms) rollback transaction
2492
+  (0.1ms) begin transaction
2493
+ ----------------------------------------------------------------------
2494
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2495
+ ----------------------------------------------------------------------
2496
+  (0.0ms) SAVEPOINT active_record_1
2497
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
2498
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:08.706069"], ["updated_at", "2016-01-11 04:15:08.706069"], ["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
2499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2500
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
2501
+ Processing by Track302::RedirectController#show as HTML
2502
+ Parameters: {"uuid"=>"908d4826-bffb-4f1a-a6a1-d27be1096e53", "path"=>"/one/two%20three"}
2503
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
2504
+  (0.0ms) SAVEPOINT active_record_1
2505
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"], ["data", "<2 bytes of binary data>"], ["created_at", "2016-01-11 04:15:08.712382"], ["updated_at", "2016-01-11 04:15:08.712382"]]
2506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2507
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2508
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
2509
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
2510
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2511
+  (1.3ms) rollback transaction
2512
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2513
+  (0.1ms) begin transaction
2514
+ Fixture Delete (0.3ms) DELETE FROM "track302_clicks"
2515
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:15:19', '2016-01-11 04:15:19', 980190962)
2516
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:19', '2016-01-11 04:15:19', 298486374)
2517
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2518
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:19', '2016-01-11 04:15:19', 980190962)
2519
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:19', '2016-01-11 04:15:19', 298486374)
2520
+  (8.8ms) commit transaction
2521
+  (0.1ms) begin transaction
2522
+ -----------------------------------------------------------------
2523
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2524
+ -----------------------------------------------------------------
2525
+  (0.1ms) SAVEPOINT active_record_1
2526
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aa3d2377-edb4-4d87-ad1b-2a3b10568dec"]]
2527
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:19.665489"], ["updated_at", "2016-01-11 04:15:19.665489"], ["uuid", "aa3d2377-edb4-4d87-ad1b-2a3b10568dec"]]
2528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2529
+ Processing by Track302::RedirectController#show as HTML
2530
+ Parameters: {"uuid"=>"wrongaa3d2377-edb4-4d87-ad1b-2a3b10568dec", "path"=>"/one/two%20three"}
2531
+ Track302::Link Load (0.0ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongaa3d2377-edb4-4d87-ad1b-2a3b10568dec"]]
2532
+ Rendered text template (0.0ms)
2533
+ Completed 404 Not Found in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
2534
+  (0.5ms) rollback transaction
2535
+  (0.1ms) begin transaction
2536
+ ----------------------------------------------------------------------------
2537
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2538
+ ----------------------------------------------------------------------------
2539
+  (0.0ms) SAVEPOINT active_record_1
2540
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"]]
2541
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:19.683336"], ["updated_at", "2016-01-11 04:15:19.683336"], ["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"]]
2542
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2543
+ Processing by Track302::RedirectController#show as HTML
2544
+ Parameters: {"uuid"=>"ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad", "path"=>"/one/two%20three"}
2545
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"]]
2546
+  (0.1ms) SAVEPOINT active_record_1
2547
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:19.690999"], ["updated_at", "2016-01-11 04:15:19.690999"]]
2548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2549
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2550
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2551
+  (0.7ms) rollback transaction
2552
+  (0.1ms) begin transaction
2553
+ ----------------------------------------------------------------------
2554
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2555
+ ----------------------------------------------------------------------
2556
+  (0.1ms) SAVEPOINT active_record_1
2557
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
2558
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:19.695092"], ["updated_at", "2016-01-11 04:15:19.695092"], ["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
2559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2560
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
2561
+ Processing by Track302::RedirectController#show as HTML
2562
+ Parameters: {"uuid"=>"194eff76-f96d-444f-8dc7-99d82f1eb620", "path"=>"/one/two%20three"}
2563
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
2564
+  (0.1ms) SAVEPOINT active_record_1
2565
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:19.702265"], ["updated_at", "2016-01-11 04:15:19.702265"]]
2566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2567
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2568
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2569
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
2570
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2571
+  (0.7ms) rollback transaction
2572
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2573
+  (0.1ms) begin transaction
2574
+ Fixture Delete (0.6ms) DELETE FROM "track302_clicks"
2575
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:15:44', '2016-01-11 04:15:44', 980190962)
2576
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:44', '2016-01-11 04:15:44', 298486374)
2577
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2578
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:44', '2016-01-11 04:15:44', 980190962)
2579
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:44', '2016-01-11 04:15:44', 298486374)
2580
+  (8.9ms) commit transaction
2581
+  (0.1ms) begin transaction
2582
+ -----------------------------------------------------------------
2583
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2584
+ -----------------------------------------------------------------
2585
+  (0.1ms) SAVEPOINT active_record_1
2586
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "091d5895-3014-4164-9e2a-e527b7e06503"]]
2587
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:44.250812"], ["updated_at", "2016-01-11 04:15:44.250812"], ["uuid", "091d5895-3014-4164-9e2a-e527b7e06503"]]
2588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2589
+ Processing by Track302::RedirectController#show as HTML
2590
+ Parameters: {"uuid"=>"wrong091d5895-3014-4164-9e2a-e527b7e06503", "path"=>"/one/two%20three"}
2591
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong091d5895-3014-4164-9e2a-e527b7e06503"]]
2592
+ Rendered text template (0.0ms)
2593
+ Completed 404 Not Found in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
2594
+  (0.5ms) rollback transaction
2595
+  (0.1ms) begin transaction
2596
+ ----------------------------------------------------------------------
2597
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2598
+ ----------------------------------------------------------------------
2599
+  (0.1ms) SAVEPOINT active_record_1
2600
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
2601
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:44.272548"], ["updated_at", "2016-01-11 04:15:44.272548"], ["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
2602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2603
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
2604
+ Processing by Track302::RedirectController#show as HTML
2605
+ Parameters: {"uuid"=>"7e1ff7ae-c31b-4743-b655-3552f1ac7eb3", "path"=>"/one/two%20three"}
2606
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
2607
+  (0.1ms) SAVEPOINT active_record_1
2608
+ SQL (0.7ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:44.281252"], ["updated_at", "2016-01-11 04:15:44.281252"]]
2609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2610
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2611
+ Completed 302 Found in 6ms (ActiveRecord: 0.9ms)
2612
+  (0.0ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
2613
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2614
+  (0.7ms) rollback transaction
2615
+  (0.1ms) begin transaction
2616
+ ----------------------------------------------------------------------------
2617
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2618
+ ----------------------------------------------------------------------------
2619
+  (0.0ms) SAVEPOINT active_record_1
2620
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"]]
2621
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:44.287540"], ["updated_at", "2016-01-11 04:15:44.287540"], ["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"]]
2622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2623
+ Processing by Track302::RedirectController#show as HTML
2624
+ Parameters: {"uuid"=>"76a29ac4-dff3-400d-a93d-d8d0f8ec6695", "path"=>"/one/two%20three"}
2625
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"]]
2626
+  (0.1ms) SAVEPOINT active_record_1
2627
+ SQL (0.5ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:44.293152"], ["updated_at", "2016-01-11 04:15:44.293152"]]
2628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2629
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2630
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
2631
+  (0.6ms) rollback transaction
2632
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2633
+  (0.1ms) begin transaction
2634
+ Fixture Delete (0.3ms) DELETE FROM "track302_clicks"
2635
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:15:50', '2016-01-11 04:15:50', 980190962)
2636
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:50', '2016-01-11 04:15:50', 298486374)
2637
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2638
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:50', '2016-01-11 04:15:50', 980190962)
2639
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:15:50', '2016-01-11 04:15:50', 298486374)
2640
+  (8.3ms) commit transaction
2641
+  (0.1ms) begin transaction
2642
+ ----------------------------------------------------------------------
2643
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2644
+ ----------------------------------------------------------------------
2645
+  (0.1ms) SAVEPOINT active_record_1
2646
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
2647
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:50.665972"], ["updated_at", "2016-01-11 04:15:50.665972"], ["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
2648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2649
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
2650
+ Processing by Track302::RedirectController#show as HTML
2651
+ Parameters: {"uuid"=>"b19098ec-ed6d-4aa7-a2f5-5564e433c9e8", "path"=>"/one/two%20three"}
2652
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
2653
+  (0.1ms) SAVEPOINT active_record_1
2654
+ SQL (1.2ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:50.680145"], ["updated_at", "2016-01-11 04:15:50.680145"]]
2655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2656
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2657
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
2658
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
2659
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2660
+  (1.0ms) rollback transaction
2661
+  (0.3ms) begin transaction
2662
+ ----------------------------------------------------------------------------
2663
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2664
+ ----------------------------------------------------------------------------
2665
+  (0.1ms) SAVEPOINT active_record_1
2666
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"]]
2667
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:50.690238"], ["updated_at", "2016-01-11 04:15:50.690238"], ["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"]]
2668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2669
+ Processing by Track302::RedirectController#show as HTML
2670
+ Parameters: {"uuid"=>"855a2a4b-404c-4816-bb72-fc2bc76d53f2", "path"=>"/one/two%20three"}
2671
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"]]
2672
+  (0.1ms) SAVEPOINT active_record_1
2673
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:15:50.699343"], ["updated_at", "2016-01-11 04:15:50.699343"]]
2674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2675
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2676
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
2677
+  (0.6ms) rollback transaction
2678
+  (0.1ms) begin transaction
2679
+ -----------------------------------------------------------------
2680
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2681
+ -----------------------------------------------------------------
2682
+  (0.0ms) SAVEPOINT active_record_1
2683
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ff0aea75-e3c3-4776-b7f3-6674e31f1679"]]
2684
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:15:50.703245"], ["updated_at", "2016-01-11 04:15:50.703245"], ["uuid", "ff0aea75-e3c3-4776-b7f3-6674e31f1679"]]
2685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2686
+ Processing by Track302::RedirectController#show as HTML
2687
+ Parameters: {"uuid"=>"wrongff0aea75-e3c3-4776-b7f3-6674e31f1679", "path"=>"/one/two%20three"}
2688
+ Track302::Link Load (0.0ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrongff0aea75-e3c3-4776-b7f3-6674e31f1679"]]
2689
+ Rendered text template (0.0ms)
2690
+ Completed 404 Not Found in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
2691
+  (0.4ms) rollback transaction
2692
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2693
+  (0.1ms) begin transaction
2694
+ Fixture Delete (0.3ms) DELETE FROM "track302_clicks"
2695
+ Fixture Insert (0.4ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:16:21', '2016-01-11 04:16:21', 980190962)
2696
+ Fixture Insert (0.2ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:21', '2016-01-11 04:16:21', 298486374)
2697
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2698
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:21', '2016-01-11 04:16:21', 980190962)
2699
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:21', '2016-01-11 04:16:21', 298486374)
2700
+  (0.7ms) commit transaction
2701
+  (0.0ms) begin transaction
2702
+ ----------------------------------------------------------------------------
2703
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2704
+ ----------------------------------------------------------------------------
2705
+  (0.1ms) SAVEPOINT active_record_1
2706
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"]]
2707
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:21.431405"], ["updated_at", "2016-01-11 04:16:21.431405"], ["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"]]
2708
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2709
+ Processing by Track302::RedirectController#show as HTML
2710
+ Parameters: {"uuid"=>"1e62deba-cd35-4fff-afbd-0a43094abd11", "path"=>"/one/two%20three"}
2711
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"]]
2712
+  (0.2ms) SAVEPOINT active_record_1
2713
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:21.447934"], ["updated_at", "2016-01-11 04:16:21.447934"]]
2714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2715
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2716
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
2717
+  (0.6ms) rollback transaction
2718
+  (0.1ms) begin transaction
2719
+ -----------------------------------------------------------------
2720
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2721
+ -----------------------------------------------------------------
2722
+  (0.0ms) SAVEPOINT active_record_1
2723
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0afb902f-360f-48d0-b60c-513de7f415a8"]]
2724
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:21.452391"], ["updated_at", "2016-01-11 04:16:21.452391"], ["uuid", "0afb902f-360f-48d0-b60c-513de7f415a8"]]
2725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2726
+ Processing by Track302::RedirectController#show as HTML
2727
+ Parameters: {"uuid"=>"wrong0afb902f-360f-48d0-b60c-513de7f415a8", "path"=>"/one/two%20three"}
2728
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0afb902f-360f-48d0-b60c-513de7f415a8"]]
2729
+ Rendered text template (0.0ms)
2730
+ Completed 404 Not Found in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms)
2731
+  (0.4ms) rollback transaction
2732
+  (0.1ms) begin transaction
2733
+ ----------------------------------------------------------------------
2734
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2735
+ ----------------------------------------------------------------------
2736
+  (0.0ms) SAVEPOINT active_record_1
2737
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
2738
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:21.467216"], ["updated_at", "2016-01-11 04:16:21.467216"], ["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
2739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2740
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
2741
+ Processing by Track302::RedirectController#show as HTML
2742
+ Parameters: {"uuid"=>"0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd", "path"=>"/one/two%20three"}
2743
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
2744
+  (0.1ms) SAVEPOINT active_record_1
2745
+ SQL (0.7ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:21.473316"], ["updated_at", "2016-01-11 04:16:21.473316"]]
2746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2747
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2748
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
2749
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
2750
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2751
+  (0.7ms) rollback transaction
2752
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2753
+  (0.1ms) begin transaction
2754
+ Fixture Delete (0.5ms) DELETE FROM "track302_clicks"
2755
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:16:26', '2016-01-11 04:16:26', 980190962)
2756
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:26', '2016-01-11 04:16:26', 298486374)
2757
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2758
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:26', '2016-01-11 04:16:26', 980190962)
2759
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:26', '2016-01-11 04:16:26', 298486374)
2760
+  (8.3ms) commit transaction
2761
+  (0.1ms) begin transaction
2762
+ ----------------------------------------------------------------------------
2763
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2764
+ ----------------------------------------------------------------------------
2765
+  (0.1ms) SAVEPOINT active_record_1
2766
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"]]
2767
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:27.047927"], ["updated_at", "2016-01-11 04:16:27.047927"], ["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"]]
2768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2769
+ Processing by Track302::RedirectController#show as HTML
2770
+ Parameters: {"uuid"=>"1b2054c4-3cb1-4db0-82db-d212e149b4f7", "path"=>"/one/two%20three"}
2771
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"]]
2772
+  (0.1ms) SAVEPOINT active_record_1
2773
+ SQL (1.0ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:27.063320"], ["updated_at", "2016-01-11 04:16:27.063320"]]
2774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2775
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2776
+ Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
2777
+  (0.9ms) rollback transaction
2778
+  (0.1ms) begin transaction
2779
+ -----------------------------------------------------------------
2780
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2781
+ -----------------------------------------------------------------
2782
+  (0.0ms) SAVEPOINT active_record_1
2783
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0212d76d-1b08-4469-a9e3-9a9bd1da8c22"]]
2784
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:27.069156"], ["updated_at", "2016-01-11 04:16:27.069156"], ["uuid", "0212d76d-1b08-4469-a9e3-9a9bd1da8c22"]]
2785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2786
+ Processing by Track302::RedirectController#show as HTML
2787
+ Parameters: {"uuid"=>"wrong0212d76d-1b08-4469-a9e3-9a9bd1da8c22", "path"=>"/one/two%20three"}
2788
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong0212d76d-1b08-4469-a9e3-9a9bd1da8c22"]]
2789
+ Rendered text template (0.0ms)
2790
+ Completed 404 Not Found in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
2791
+  (0.7ms) rollback transaction
2792
+  (0.1ms) begin transaction
2793
+ ----------------------------------------------------------------------
2794
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2795
+ ----------------------------------------------------------------------
2796
+  (0.1ms) SAVEPOINT active_record_1
2797
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
2798
+ SQL (0.9ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:27.084481"], ["updated_at", "2016-01-11 04:16:27.084481"], ["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
2799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2800
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
2801
+ Processing by Track302::RedirectController#show as HTML
2802
+ Parameters: {"uuid"=>"d21fe878-5af7-4710-a220-f0a7b8991260", "path"=>"/one/two%20three"}
2803
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
2804
+  (0.1ms) SAVEPOINT active_record_1
2805
+ SQL (0.4ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:27.092542"], ["updated_at", "2016-01-11 04:16:27.092542"]]
2806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2807
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2808
+ Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
2809
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
2810
+ Track302::Click Load (0.2ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2811
+  (1.1ms) rollback transaction
2812
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2813
+  (0.1ms) begin transaction
2814
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
2815
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:16:29', '2016-01-11 04:16:29', 980190962)
2816
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:29', '2016-01-11 04:16:29', 298486374)
2817
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2818
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:29', '2016-01-11 04:16:29', 980190962)
2819
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:16:29', '2016-01-11 04:16:29', 298486374)
2820
+  (0.8ms) commit transaction
2821
+  (0.0ms) begin transaction
2822
+ ------------------------------------------
2823
+ Track302::LinkTest: test_autogenerate_uuid
2824
+ ------------------------------------------
2825
+  (0.1ms) SAVEPOINT active_record_1
2826
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3ad26c21-107e-43c9-b947-6c6f7bd691a9"]]
2827
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:29.961861"], ["updated_at", "2016-01-11 04:16:29.961861"], ["uuid", "3ad26c21-107e-43c9-b947-6c6f7bd691a9"]]
2828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2829
+  (0.4ms) rollback transaction
2830
+  (0.1ms) begin transaction
2831
+ --------------------------------------------
2832
+ Track302::LinkTest: test_stores_original_url
2833
+ --------------------------------------------
2834
+  (0.0ms) SAVEPOINT active_record_1
2835
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "df06a87d-cdc7-4cd5-ac5c-13b716ac4a8b"]]
2836
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:29.969497"], ["updated_at", "2016-01-11 04:16:29.969497"], ["uuid", "df06a87d-cdc7-4cd5-ac5c-13b716ac4a8b"]]
2837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2838
+  (0.4ms) rollback transaction
2839
+  (0.0ms) begin transaction
2840
+ -----------------------------------------------------------
2841
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
2842
+ -----------------------------------------------------------
2843
+  (0.0ms) SAVEPOINT active_record_1
2844
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "bedaa479-4604-4dec-8c5c-ab24b9dc4c2b"]]
2845
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:29.971720"], ["updated_at", "2016-01-11 04:16:29.971720"], ["uuid", "bedaa479-4604-4dec-8c5c-ab24b9dc4c2b"]]
2846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2847
+  (0.0ms) SAVEPOINT active_record_1
2848
+ Track302::Link Load (0.0ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0c215e6a-7d98-4f5e-a52c-51ab32620982"]]
2849
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "0c215e6a-7d98-4f5e-a52c-51ab32620982"], ["created_at", "2016-01-11 04:16:29.973225"], ["updated_at", "2016-01-11 04:16:29.973225"]]
2850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2851
+  (0.6ms) rollback transaction
2852
+  (0.0ms) begin transaction
2853
+ ------------------------
2854
+ Track302Test: test_truth
2855
+ ------------------------
2856
+  (0.0ms) rollback transaction
2857
+  (0.1ms) begin transaction
2858
+ ----------------------------------------------------------------------
2859
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2860
+ ----------------------------------------------------------------------
2861
+  (0.1ms) SAVEPOINT active_record_1
2862
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
2863
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:30.024528"], ["updated_at", "2016-01-11 04:16:30.024528"], ["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
2864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2865
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
2866
+ Processing by Track302::RedirectController#show as HTML
2867
+ Parameters: {"uuid"=>"9f1ae3f0-c6ec-4e73-9822-bc9141971f15", "path"=>"/one/two%20three"}
2868
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
2869
+  (0.1ms) SAVEPOINT active_record_1
2870
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:30.034621"], ["updated_at", "2016-01-11 04:16:30.034621"]]
2871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2872
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2873
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
2874
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
2875
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2876
+  (0.9ms) rollback transaction
2877
+  (0.1ms) begin transaction
2878
+ ----------------------------------------------------------------------------
2879
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2880
+ ----------------------------------------------------------------------------
2881
+  (0.0ms) SAVEPOINT active_record_1
2882
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"]]
2883
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:30.040352"], ["updated_at", "2016-01-11 04:16:30.040352"], ["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"]]
2884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2885
+ Processing by Track302::RedirectController#show as HTML
2886
+ Parameters: {"uuid"=>"7e4a9d21-7940-4109-a5d6-c045c1f714e4", "path"=>"/one/two%20three"}
2887
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"]]
2888
+  (0.0ms) SAVEPOINT active_record_1
2889
+ SQL (0.2ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:16:30.045148"], ["updated_at", "2016-01-11 04:16:30.045148"]]
2890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2891
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2892
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
2893
+  (0.6ms) rollback transaction
2894
+  (0.1ms) begin transaction
2895
+ -----------------------------------------------------------------
2896
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2897
+ -----------------------------------------------------------------
2898
+  (0.0ms) SAVEPOINT active_record_1
2899
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "76e65370-a96f-4482-8c3c-b7328d4b1ca4"]]
2900
+ SQL (0.8ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:16:30.048360"], ["updated_at", "2016-01-11 04:16:30.048360"], ["uuid", "76e65370-a96f-4482-8c3c-b7328d4b1ca4"]]
2901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2902
+ Processing by Track302::RedirectController#show as HTML
2903
+ Parameters: {"uuid"=>"wrong76e65370-a96f-4482-8c3c-b7328d4b1ca4", "path"=>"/one/two%20three"}
2904
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong76e65370-a96f-4482-8c3c-b7328d4b1ca4"]]
2905
+ Rendered text template (0.0ms)
2906
+ Completed 404 Not Found in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms)
2907
+  (0.7ms) rollback transaction
2908
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2909
+  (0.1ms) begin transaction
2910
+ Fixture Delete (0.2ms) DELETE FROM "track302_clicks"
2911
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:17:54', '2016-01-11 04:17:54', 980190962)
2912
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:17:54', '2016-01-11 04:17:54', 298486374)
2913
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2914
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:17:54', '2016-01-11 04:17:54', 980190962)
2915
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:17:54', '2016-01-11 04:17:54', 298486374)
2916
+  (8.7ms) commit transaction
2917
+  (0.1ms) begin transaction
2918
+ -----------------------------------------------------------------
2919
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
2920
+ -----------------------------------------------------------------
2921
+  (0.1ms) SAVEPOINT active_record_1
2922
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e6cf6d43-ff40-448b-baea-3325ebe3213e"]]
2923
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:17:54.214639"], ["updated_at", "2016-01-11 04:17:54.214639"], ["uuid", "e6cf6d43-ff40-448b-baea-3325ebe3213e"]]
2924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2925
+ Processing by Track302::RedirectController#show as HTML
2926
+ Parameters: {"uuid"=>"wronge6cf6d43-ff40-448b-baea-3325ebe3213e", "path"=>"/one/two%20three"}
2927
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wronge6cf6d43-ff40-448b-baea-3325ebe3213e"]]
2928
+ Rendered text template (0.0ms)
2929
+ Completed 404 Not Found in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms)
2930
+  (0.5ms) rollback transaction
2931
+  (0.1ms) begin transaction
2932
+ ----------------------------------------------------------------------------
2933
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
2934
+ ----------------------------------------------------------------------------
2935
+  (0.1ms) SAVEPOINT active_record_1
2936
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"]]
2937
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:17:54.235443"], ["updated_at", "2016-01-11 04:17:54.235443"], ["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"]]
2938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2939
+ Processing by Track302::RedirectController#show as HTML
2940
+ Parameters: {"uuid"=>"2967e62a-090e-4158-8298-999ed6e3dee4", "path"=>"/one/two%20three"}
2941
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"]]
2942
+  (0.1ms) SAVEPOINT active_record_1
2943
+ SQL (0.9ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:17:54.242829"], ["updated_at", "2016-01-11 04:17:54.242829"]]
2944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2945
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2946
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
2947
+  (0.6ms) rollback transaction
2948
+  (0.1ms) begin transaction
2949
+ ----------------------------------------------------------------------
2950
+ Track302::RedirectControllerTest: test_should_track_click_through_data
2951
+ ----------------------------------------------------------------------
2952
+  (0.0ms) SAVEPOINT active_record_1
2953
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
2954
+ SQL (0.2ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:17:54.247493"], ["updated_at", "2016-01-11 04:17:54.247493"], ["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
2955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2956
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
2957
+ Processing by Track302::RedirectController#show as HTML
2958
+ Parameters: {"uuid"=>"01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4", "path"=>"/one/two%20three"}
2959
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
2960
+  (0.0ms) SAVEPOINT active_record_1
2961
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:17:54.253679"], ["updated_at", "2016-01-11 04:17:54.253679"]]
2962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2963
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2964
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2965
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
2966
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2967
+  (0.8ms) rollback transaction
2968
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2969
+  (0.1ms) begin transaction
2970
+ Fixture Delete (0.6ms) DELETE FROM "track302_clicks"
2971
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:18:18', '2016-01-11 04:18:18', 980190962)
2972
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:18:18', '2016-01-11 04:18:18', 298486374)
2973
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
2974
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:18:18', '2016-01-11 04:18:18', 980190962)
2975
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:18:18', '2016-01-11 04:18:18', 298486374)
2976
+  (8.9ms) commit transaction
2977
+  (0.1ms) begin transaction
2978
+ ---------------------------------------------------------------------
2979
+ Track302::RedirectControllerTest: test_should_track_clickthrough_data
2980
+ ---------------------------------------------------------------------
2981
+  (0.1ms) SAVEPOINT active_record_1
2982
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
2983
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:18.739507"], ["updated_at", "2016-01-11 04:18:18.739507"], ["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
2984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2985
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
2986
+ Processing by Track302::RedirectController#show as HTML
2987
+ Parameters: {"uuid"=>"82f525ba-d035-42b7-a483-9cd076baca8b", "path"=>"/one/two%20three"}
2988
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
2989
+  (0.1ms) SAVEPOINT active_record_1
2990
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:18:18.753550"], ["updated_at", "2016-01-11 04:18:18.753550"]]
2991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2992
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
2993
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
2994
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
2995
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
2996
+  (0.9ms) rollback transaction
2997
+  (0.1ms) begin transaction
2998
+ -----------------------------------------------------------------
2999
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
3000
+ -----------------------------------------------------------------
3001
+  (0.0ms) SAVEPOINT active_record_1
3002
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "066facd1-6b9e-4aad-ba57-4ed22ed0a7f3"]]
3003
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:18.759422"], ["updated_at", "2016-01-11 04:18:18.759422"], ["uuid", "066facd1-6b9e-4aad-ba57-4ed22ed0a7f3"]]
3004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3005
+ Processing by Track302::RedirectController#show as HTML
3006
+ Parameters: {"uuid"=>"wrong066facd1-6b9e-4aad-ba57-4ed22ed0a7f3", "path"=>"/one/two%20three"}
3007
+ Track302::Link Load (0.0ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong066facd1-6b9e-4aad-ba57-4ed22ed0a7f3"]]
3008
+ Rendered text template (0.0ms)
3009
+ Completed 404 Not Found in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
3010
+  (0.7ms) rollback transaction
3011
+  (0.1ms) begin transaction
3012
+ ----------------------------------------------------------------------------
3013
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
3014
+ ----------------------------------------------------------------------------
3015
+  (0.0ms) SAVEPOINT active_record_1
3016
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"]]
3017
+ SQL (0.4ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:18.773425"], ["updated_at", "2016-01-11 04:18:18.773425"], ["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"]]
3018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3019
+ Processing by Track302::RedirectController#show as HTML
3020
+ Parameters: {"uuid"=>"39ab5b23-8a53-4026-97d9-36a95b3c6152", "path"=>"/one/two%20three"}
3021
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"]]
3022
+  (0.0ms) SAVEPOINT active_record_1
3023
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:18:18.778552"], ["updated_at", "2016-01-11 04:18:18.778552"]]
3024
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3025
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
3026
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
3027
+  (0.9ms) rollback transaction
3028
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3029
+  (0.1ms) begin transaction
3030
+ Fixture Delete (0.5ms) DELETE FROM "track302_clicks"
3031
+ Fixture Insert (0.7ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:18:27', '2016-01-11 04:18:27', 980190962)
3032
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:18:27', '2016-01-11 04:18:27', 298486374)
3033
+ Fixture Delete (0.1ms) DELETE FROM "track302_links"
3034
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:18:27', '2016-01-11 04:18:27', 980190962)
3035
+ Fixture Insert (0.0ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:18:27', '2016-01-11 04:18:27', 298486374)
3036
+  (8.8ms) commit transaction
3037
+  (0.1ms) begin transaction
3038
+ ------------------------------------------
3039
+ Track302::LinkTest: test_autogenerate_uuid
3040
+ ------------------------------------------
3041
+  (0.1ms) SAVEPOINT active_record_1
3042
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cc51ed32-1582-443f-9abe-9f92fdd34592"]]
3043
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.242910"], ["updated_at", "2016-01-11 04:18:27.242910"], ["uuid", "cc51ed32-1582-443f-9abe-9f92fdd34592"]]
3044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3045
+  (0.5ms) rollback transaction
3046
+  (0.1ms) begin transaction
3047
+ -----------------------------------------------------------
3048
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
3049
+ -----------------------------------------------------------
3050
+  (0.1ms) SAVEPOINT active_record_1
3051
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3165e3a5-d357-4ae0-acff-3700a2ae9721"]]
3052
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.251490"], ["updated_at", "2016-01-11 04:18:27.251490"], ["uuid", "3165e3a5-d357-4ae0-acff-3700a2ae9721"]]
3053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3054
+  (0.0ms) SAVEPOINT active_record_1
3055
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3d787b69-2c4f-4e7b-8843-379a42d719bf"]]
3056
+ SQL (0.6ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "3d787b69-2c4f-4e7b-8843-379a42d719bf"], ["created_at", "2016-01-11 04:18:27.253474"], ["updated_at", "2016-01-11 04:18:27.253474"]]
3057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3058
+  (0.9ms) rollback transaction
3059
+  (0.1ms) begin transaction
3060
+ --------------------------------------------
3061
+ Track302::LinkTest: test_stores_original_url
3062
+ --------------------------------------------
3063
+  (0.0ms) SAVEPOINT active_record_1
3064
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cfa9e2b7-888f-4f87-8016-1ec5bafe7f16"]]
3065
+ SQL (0.8ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.256832"], ["updated_at", "2016-01-11 04:18:27.256832"], ["uuid", "cfa9e2b7-888f-4f87-8016-1ec5bafe7f16"]]
3066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3067
+  (0.9ms) rollback transaction
3068
+  (0.1ms) begin transaction
3069
+ -----------------------------------------------------------------
3070
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
3071
+ -----------------------------------------------------------------
3072
+  (0.1ms) SAVEPOINT active_record_1
3073
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "90d15d47-2db1-40f6-aa19-fe14a46b26cb"]]
3074
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.308673"], ["updated_at", "2016-01-11 04:18:27.308673"], ["uuid", "90d15d47-2db1-40f6-aa19-fe14a46b26cb"]]
3075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3076
+ Processing by Track302::RedirectController#show as HTML
3077
+ Parameters: {"uuid"=>"wrong90d15d47-2db1-40f6-aa19-fe14a46b26cb", "path"=>"/one/two%20three"}
3078
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wrong90d15d47-2db1-40f6-aa19-fe14a46b26cb"]]
3079
+ Rendered text template (0.0ms)
3080
+ Completed 404 Not Found in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms)
3081
+  (0.8ms) rollback transaction
3082
+  (0.1ms) begin transaction
3083
+ ---------------------------------------------------------------------
3084
+ Track302::RedirectControllerTest: test_should_track_clickthrough_data
3085
+ ---------------------------------------------------------------------
3086
+  (0.0ms) SAVEPOINT active_record_1
3087
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
3088
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.325305"], ["updated_at", "2016-01-11 04:18:27.325305"], ["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
3089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3090
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
3091
+ Processing by Track302::RedirectController#show as HTML
3092
+ Parameters: {"uuid"=>"46a91cbf-ed74-4db0-9ef2-1b2ed861fe14", "path"=>"/one/two%20three"}
3093
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
3094
+  (0.0ms) SAVEPOINT active_record_1
3095
+ SQL (0.7ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:18:27.334012"], ["updated_at", "2016-01-11 04:18:27.334012"]]
3096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3097
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
3098
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
3099
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
3100
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
3101
+  (0.9ms) rollback transaction
3102
+  (0.1ms) begin transaction
3103
+ ----------------------------------------------------------------------------
3104
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
3105
+ ----------------------------------------------------------------------------
3106
+  (0.0ms) SAVEPOINT active_record_1
3107
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"]]
3108
+ SQL (0.4ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:18:27.339785"], ["updated_at", "2016-01-11 04:18:27.339785"], ["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"]]
3109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3110
+ Processing by Track302::RedirectController#show as HTML
3111
+ Parameters: {"uuid"=>"99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4", "path"=>"/one/two%20three"}
3112
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"]]
3113
+  (0.0ms) SAVEPOINT active_record_1
3114
+ SQL (0.3ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:18:27.345382"], ["updated_at", "2016-01-11 04:18:27.345382"]]
3115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3116
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
3117
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
3118
+  (0.8ms) rollback transaction
3119
+  (0.1ms) begin transaction
3120
+ ------------------------
3121
+ Track302Test: test_truth
3122
+ ------------------------
3123
+  (0.0ms) rollback transaction
3124
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3125
+  (0.1ms) begin transaction
3126
+ Fixture Delete (0.9ms) DELETE FROM "track302_clicks"
3127
+ Fixture Insert (0.6ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('f4dc9780209ecc4f786fc47b07b4c1ec0a365e7b', '2016-01-11 04:21:04', '2016-01-11 04:21:04', 980190962)
3128
+ Fixture Insert (0.1ms) INSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:21:04', '2016-01-11 04:21:04', 298486374)
3129
+ Fixture Delete (0.5ms) DELETE FROM "track302_links"
3130
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:21:04', '2016-01-11 04:21:04', 980190962)
3131
+ Fixture Insert (0.1ms) INSERT INTO "track302_links" ("uuid", "original", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2016-01-11 04:21:04', '2016-01-11 04:21:04', 298486374)
3132
+  (1.0ms) commit transaction
3133
+  (0.0ms) begin transaction
3134
+ ------------------------
3135
+ Track302Test: test_truth
3136
+ ------------------------
3137
+  (0.0ms) rollback transaction
3138
+  (0.1ms) begin transaction
3139
+ ---------------------------------------------------------------------
3140
+ Track302::RedirectControllerTest: test_should_track_clickthrough_data
3141
+ ---------------------------------------------------------------------
3142
+  (0.1ms) SAVEPOINT active_record_1
3143
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
3144
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:04.957446"], ["updated_at", "2016-01-11 04:21:04.957446"], ["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
3145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3146
+  (0.1ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
3147
+ Processing by Track302::RedirectController#show as HTML
3148
+ Parameters: {"uuid"=>"19e4c722-f128-49e6-88d9-1bed97022853", "path"=>"/one/two%20three"}
3149
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
3150
+  (0.1ms) SAVEPOINT active_record_1
3151
+ SQL (0.7ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:21:04.974697"], ["updated_at", "2016-01-11 04:21:04.974697"]]
3152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3153
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
3154
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
3155
+  (0.0ms) SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
3156
+ Track302::Click Load (0.1ms) SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
3157
+  (0.9ms) rollback transaction
3158
+  (0.1ms) begin transaction
3159
+ -----------------------------------------------------------------
3160
+ Track302::RedirectControllerTest: test_should_404_on_unknown_link
3161
+ -----------------------------------------------------------------
3162
+  (0.0ms) SAVEPOINT active_record_1
3163
+ Track302::Link Load (0.2ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a595bb42-15d3-4aac-9880-cf63c09c3ee7"]]
3164
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:04.980307"], ["updated_at", "2016-01-11 04:21:04.980307"], ["uuid", "a595bb42-15d3-4aac-9880-cf63c09c3ee7"]]
3165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3166
+ Processing by Track302::RedirectController#show as HTML
3167
+ Parameters: {"uuid"=>"wronga595bb42-15d3-4aac-9880-cf63c09c3ee7", "path"=>"/one/two%20three"}
3168
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "wronga595bb42-15d3-4aac-9880-cf63c09c3ee7"]]
3169
+ Rendered text template (0.0ms)
3170
+ Completed 404 Not Found in 10ms (Views: 10.0ms | ActiveRecord: 0.1ms)
3171
+  (0.7ms) rollback transaction
3172
+  (0.1ms) begin transaction
3173
+ ----------------------------------------------------------------------------
3174
+ Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
3175
+ ----------------------------------------------------------------------------
3176
+  (0.0ms) SAVEPOINT active_record_1
3177
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"]]
3178
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:04.997311"], ["updated_at", "2016-01-11 04:21:04.997311"], ["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"]]
3179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3180
+ Processing by Track302::RedirectController#show as HTML
3181
+ Parameters: {"uuid"=>"96a1fe33-ac26-4ad6-b793-a508d38b5bb7", "path"=>"/one/two%20three"}
3182
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"]]
3183
+  (0.0ms) SAVEPOINT active_record_1
3184
+ SQL (0.6ms) INSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"], ["data", "<106 bytes of binary data>"], ["created_at", "2016-01-11 04:21:05.002429"], ["updated_at", "2016-01-11 04:21:05.002429"]]
3185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3186
+ Redirected to http://www.google.com/one/two%20three?q=123#anchor456
3187
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
3188
+  (0.9ms) rollback transaction
3189
+  (0.1ms) begin transaction
3190
+ ------------------------------------------
3191
+ Track302::LinkTest: test_autogenerate_uuid
3192
+ ------------------------------------------
3193
+  (0.3ms) SAVEPOINT active_record_1
3194
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "fb149dec-f9fa-4afb-abda-cc2b65b5e887"]]
3195
+ SQL (0.5ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:05.008470"], ["updated_at", "2016-01-11 04:21:05.008470"], ["uuid", "fb149dec-f9fa-4afb-abda-cc2b65b5e887"]]
3196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3197
+  (0.5ms) rollback transaction
3198
+  (0.1ms) begin transaction
3199
+ -----------------------------------------------------------
3200
+ Track302::LinkTest: test_autogenerate_uuid_even_if_provided
3201
+ -----------------------------------------------------------
3202
+  (0.0ms) SAVEPOINT active_record_1
3203
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "f28c5330-f283-46b9-b96c-3b1617b6cfda"]]
3204
+ SQL (0.4ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:05.011644"], ["updated_at", "2016-01-11 04:21:05.011644"], ["uuid", "f28c5330-f283-46b9-b96c-3b1617b6cfda"]]
3205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3206
+  (0.0ms) SAVEPOINT active_record_1
3207
+ Track302::Link Load (0.0ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "552bf98d-66ed-4561-b8f3-1b965d72ab62"]]
3208
+ SQL (0.7ms) INSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["uuid", "552bf98d-66ed-4561-b8f3-1b965d72ab62"], ["created_at", "2016-01-11 04:21:05.013302"], ["updated_at", "2016-01-11 04:21:05.013302"]]
3209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3210
+  (1.0ms) rollback transaction
3211
+  (0.1ms) begin transaction
3212
+ --------------------------------------------
3213
+ Track302::LinkTest: test_stores_original_url
3214
+ --------------------------------------------
3215
+  (0.0ms) SAVEPOINT active_record_1
3216
+ Track302::Link Load (0.1ms) SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b9c69d5a-0ae3-4945-9008-308bc5f622a2"]]
3217
+ SQL (0.3ms) INSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?) [["original", "http://www.google.com/one/two%20three?q=123#anchor456"], ["created_at", "2016-01-11 04:21:05.016824"], ["updated_at", "2016-01-11 04:21:05.016824"], ["uuid", "b9c69d5a-0ae3-4945-9008-308bc5f622a2"]]
3218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3219
+  (0.4ms) rollback transaction