track302 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/track302/application.js +13 -0
- data/app/assets/javascripts/track302/redirect.js +2 -0
- data/app/assets/stylesheets/track302/application.css +15 -0
- data/app/assets/stylesheets/track302/redirect.css +4 -0
- data/app/controllers/track302/application_controller.rb +4 -0
- data/app/controllers/track302/redirect_controller.rb +17 -0
- data/app/helpers/track302/application_helper.rb +4 -0
- data/app/helpers/track302/redirect_helper.rb +4 -0
- data/app/models/track302/click.rb +15 -0
- data/app/models/track302/link.rb +9 -0
- data/app/views/layouts/track302/application.html.erb +14 -0
- data/app/views/track302/redirect/show.html.erb +2 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20160111023755_create_track302_links.rb +10 -0
- data/db/migrate/20160111023840_create_track302_clicks.rb +16 -0
- data/lib/tasks/track302_tasks.rake +4 -0
- data/lib/track302.rb +4 -0
- data/lib/track302/engine.rb +5 -0
- data/lib/track302/version.rb +3 -0
- data/test/controllers/track302/redirect_controller_test.rb +34 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +24 -0
- data/test/dummy/log/test.log +3219 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/track302/clicks.yml +7 -0
- data/test/fixtures/track302/links.yml +9 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/models/track302/click_test.rb +9 -0
- data/test/models/track302/link_test.rb +24 -0
- data/test/test_helper.rb +21 -0
- data/test/track302_test.rb +7 -0
- 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,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,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,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,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,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
|
+
[1m[36m (10.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateUrlShortenerLinks (20160111023755)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
9
|
+
[1m[35m (1.0ms)[0m commit transaction
|
10
|
+
Migrating to CreateUrlShortenerClicks (20160111023840)
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_url_shortener_clicks_on_url_shortener_link_id" ON "url_shortener_clicks" ("url_shortener_link_id")[0m
|
14
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
|
15
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
16
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
@@ -0,0 +1,3219 @@
|
|
1
|
+
[1m[36m (17.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to CreateUrlShortenerLinks (20160111023755)
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
9
|
+
[1m[35m (0.9ms)[0m commit transaction
|
10
|
+
Migrating to CreateUrlShortenerClicks (20160111023840)
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_url_shortener_clicks_on_link_id" ON "url_shortener_clicks" ("link_id")[0m
|
14
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
|
15
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
16
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
26
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
27
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
35
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36
|
+
[1m[35m (0.1ms)[0m begin transaction
|
37
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
38
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
40
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
41
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
42
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
44
|
+
[1m[35m (0.0ms)[0m begin transaction
|
45
|
+
----------------------------
|
46
|
+
UrlShortenerTest: test_truth
|
47
|
+
----------------------------
|
48
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
49
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
57
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
58
|
+
[1m[35m (0.1ms)[0m begin transaction
|
59
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
60
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
62
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
63
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
64
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
66
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
74
|
+
[1m[35m (0.0ms)[0m begin transaction
|
75
|
+
----------------------------
|
76
|
+
UrlShortenerTest: test_truth
|
77
|
+
----------------------------
|
78
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
79
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
80
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
82
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
84
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
85
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
86
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
88
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
96
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
97
|
+
[1m[35m (0.1ms)[0m begin transaction
|
98
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
99
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
101
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
102
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
103
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
105
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
113
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
116
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
118
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
119
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
120
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
122
|
+
[1m[35m (0.1ms)[0m begin transaction
|
123
|
+
----------------------------------------------
|
124
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
125
|
+
----------------------------------------------
|
126
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
127
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
129
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
131
|
+
[1m[35m (0.1ms)[0m begin transaction
|
132
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
133
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
135
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
136
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
137
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.6ms)[0m [1mcommit transaction[0m
|
139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140
|
+
----------------------------------------------
|
141
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
142
|
+
----------------------------------------------
|
143
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
144
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
146
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
147
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
149
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
150
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
152
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
153
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
154
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.4ms)[0m [1mcommit transaction[0m
|
156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
157
|
+
----------------------------------------------
|
158
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
159
|
+
----------------------------------------------
|
160
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
161
|
+
[1m[35mUrlShortener::Link Load (0.3ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "727974c2-6441-41c5-a374-6a45fea2bc94"]]
|
162
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
164
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
165
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
167
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
168
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
170
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
171
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
172
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.5ms)[0m [1mcommit transaction[0m
|
174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
175
|
+
----------------------------------------------
|
176
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
177
|
+
----------------------------------------------
|
178
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
179
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "65369513-2909-43a1-ae48-e52cd31944fe"]]
|
180
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
182
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
183
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
185
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
186
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
188
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
189
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
190
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
193
|
+
----------------------------------------------
|
194
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
195
|
+
----------------------------------------------
|
196
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
197
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "526d57a2-2ece-471b-8339-deba2c34e1f9"]]
|
198
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
200
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
201
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
203
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
204
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
206
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
207
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
208
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
210
|
+
[1m[35m (0.1ms)[0m begin transaction
|
211
|
+
------------------------------------------------
|
212
|
+
UrlShortener::LinkTest: test_stores_original_url
|
213
|
+
------------------------------------------------
|
214
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
216
|
+
----------------------------------------------
|
217
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
218
|
+
----------------------------------------------
|
219
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
220
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
222
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
223
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
225
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
226
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
227
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
230
|
+
----------------------------------------------
|
231
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
232
|
+
----------------------------------------------
|
233
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
234
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "00daf6c1-3d2d-4f99-8a62-3b66fc4a4248"]]
|
235
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
237
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
239
|
+
------------------------------------------------
|
240
|
+
UrlShortener::LinkTest: test_stores_original_url
|
241
|
+
------------------------------------------------
|
242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
243
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f1f4d78e-3c9d-4d53-a3ee-8fe46bc00be1"]]
|
244
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
246
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
247
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
249
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
250
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
252
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
253
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
254
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
256
|
+
[1m[35m (0.1ms)[0m begin transaction
|
257
|
+
------------------------------------------------
|
258
|
+
UrlShortener::LinkTest: test_stores_original_url
|
259
|
+
------------------------------------------------
|
260
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
261
|
+
[1m[35mUrlShortener::Link Load (0.3ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "4e257f13-a78e-4c2e-b9a8-a4f5abb189d7"]]
|
262
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
264
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
266
|
+
----------------------------------------------
|
267
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
268
|
+
----------------------------------------------
|
269
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
270
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "682dddf0-199d-4e10-92ac-87c756e3f347"]]
|
271
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
273
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
276
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
277
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
279
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
280
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
281
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
284
|
+
----------------------------------------------
|
285
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
286
|
+
----------------------------------------------
|
287
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
288
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "20ec1526-3540-4331-8130-8a31f3242172"]]
|
289
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
291
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
293
|
+
---------------------------------------------------------------
|
294
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
295
|
+
---------------------------------------------------------------
|
296
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
297
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "bc320b2d-5d96-45a3-a358-444b175cc734"]]
|
298
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
300
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
301
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e960ef21-133e-4b45-9042-53e6bf7585a9"]]
|
302
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
304
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
305
|
+
[1m[35m (0.1ms)[0m begin transaction
|
306
|
+
------------------------------------------------
|
307
|
+
UrlShortener::LinkTest: test_stores_original_url
|
308
|
+
------------------------------------------------
|
309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
310
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "c428c506-d1d8-4e83-9ce5-3287910f4acd"]]
|
311
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
313
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
314
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
316
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
317
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
319
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
320
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
321
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
323
|
+
[1m[35m (0.1ms)[0m begin transaction
|
324
|
+
----------------------------------------------
|
325
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
326
|
+
----------------------------------------------
|
327
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
328
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "228e50c9-db67-4e8e-8ed8-d69bcfc01598"]]
|
329
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
331
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
332
|
+
[1m[35m (0.1ms)[0m begin transaction
|
333
|
+
---------------------------------------------------------------
|
334
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
335
|
+
---------------------------------------------------------------
|
336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
337
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "837f34ee-d304-49d7-95d6-05f83df6437a"]]
|
338
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
343
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
345
|
+
------------------------------------------------
|
346
|
+
UrlShortener::LinkTest: test_stores_original_url
|
347
|
+
------------------------------------------------
|
348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
349
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "002bb290-9354-4722-be56-34dbd491becf"]]
|
350
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
352
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
353
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
354
|
+
[1m[35m (0.1ms)[0m begin transaction
|
355
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
356
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
358
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
359
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
360
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
363
|
+
----------------------------------------------
|
364
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
365
|
+
----------------------------------------------
|
366
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
367
|
+
[1m[35mUrlShortener::Link Load (0.3ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "70a71cfa-9d50-4dd0-badd-2b7d0adcf232"]]
|
368
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
370
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
371
|
+
[1m[35m (0.1ms)[0m begin transaction
|
372
|
+
---------------------------------------------------------------
|
373
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
374
|
+
---------------------------------------------------------------
|
375
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
376
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "bccb65f5-27f1-472b-b746-49b0dd022279"]]
|
377
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
379
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
380
|
+
[1m[35mUrlShortener::Link Load (0.0ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5813a4c6-371e-4394-905d-7d929fe987fc"]]
|
381
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
383
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
384
|
+
[1m[35m (0.1ms)[0m begin transaction
|
385
|
+
------------------------------------------------
|
386
|
+
UrlShortener::LinkTest: test_stores_original_url
|
387
|
+
------------------------------------------------
|
388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
389
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "7694e3cc-a6d5-4a4d-9426-e557384f27de"]]
|
390
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
392
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
393
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
394
|
+
[1m[35m (0.2ms)[0m begin transaction
|
395
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
396
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
398
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
399
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
400
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
403
|
+
----------------------------------------------------------
|
404
|
+
UrlShortener::RedirectControllerTest: test_should_get_show
|
405
|
+
----------------------------------------------------------
|
406
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
407
|
+
[1m[35mUrlShortener::Link Load (0.3ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "df9c4cf6-eade-45a4-9ad7-ff43b6850976"]]
|
408
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
415
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
416
|
+
[1m[35m (0.1ms)[0m begin transaction
|
417
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
418
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
420
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
421
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
422
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
424
|
+
[1m[35m (0.1ms)[0m begin transaction
|
425
|
+
----------------------------------------------------------
|
426
|
+
UrlShortener::RedirectControllerTest: test_should_get_show
|
427
|
+
----------------------------------------------------------
|
428
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
429
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6f5b108c-8c55-438b-92d0-58c83fcfa86c"]]
|
430
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
437
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
439
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
440
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
442
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
443
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
444
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.2ms)[0m [1mcommit transaction[0m
|
446
|
+
[1m[35m (0.1ms)[0m begin transaction
|
447
|
+
------------------------------------------------
|
448
|
+
UrlShortener::LinkTest: test_stores_original_url
|
449
|
+
------------------------------------------------
|
450
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
451
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5f3822ba-ad56-46fc-9b90-3929292f9dc3"]]
|
452
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
454
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
455
|
+
[1m[35m (0.1ms)[0m begin transaction
|
456
|
+
---------------------------------------------------------------
|
457
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
458
|
+
---------------------------------------------------------------
|
459
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
460
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "20d7f500-037e-4c91-ab21-54e7218aa3ba"]]
|
461
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
464
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "16944657-f2af-45b9-9eca-5afed0c98fb2"]]
|
465
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
469
|
+
----------------------------------------------
|
470
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
471
|
+
----------------------------------------------
|
472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
473
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "b5bdf627-5af8-4cc1-a35a-a2f73cfc0004"]]
|
474
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
476
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
477
|
+
[1m[35m (0.1ms)[0m begin transaction
|
478
|
+
----------------------------------------------------------
|
479
|
+
UrlShortener::RedirectControllerTest: test_should_get_show
|
480
|
+
----------------------------------------------------------
|
481
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
482
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "fe2d6300-664b-4947-a277-921ee86a8a15"]]
|
483
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
490
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
491
|
+
[1m[35m (0.1ms)[0m begin transaction
|
492
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
493
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
495
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
496
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
497
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
499
|
+
[1m[35m (0.1ms)[0m begin transaction
|
500
|
+
----------------------------------------------------------
|
501
|
+
UrlShortener::RedirectControllerTest: test_should_get_show
|
502
|
+
----------------------------------------------------------
|
503
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
504
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "39b41a73-452a-4739-9de4-15641b52d1b6"]]
|
505
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
512
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
513
|
+
[1m[35m (0.1ms)[0m begin transaction
|
514
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
515
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
517
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "url_shortener_links"
|
518
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
519
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
522
|
+
----------------------------------------------------------
|
523
|
+
UrlShortener::RedirectControllerTest: test_should_get_show
|
524
|
+
----------------------------------------------------------
|
525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
526
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "eb00f055-1317-4220-9954-b290436c4efc"]]
|
527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
534
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
535
|
+
[1m[35m (0.1ms)[0m begin transaction
|
536
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
537
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
539
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
540
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
541
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
544
|
+
----------------------------------------------------------------
|
545
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected
|
546
|
+
----------------------------------------------------------------
|
547
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
548
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d44a6388-31cf-48ed-bb7f-f3c553cde5e4"]]
|
549
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
557
|
+
[1m[35m (0.1ms)[0m begin transaction
|
558
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
559
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
561
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
562
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
563
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.2ms)[0m [1mcommit transaction[0m
|
565
|
+
[1m[35m (0.1ms)[0m begin transaction
|
566
|
+
----------------------------------------------------------------
|
567
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected
|
568
|
+
----------------------------------------------------------------
|
569
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
570
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "caab2bf0-05de-404c-b65b-3d8725e1e8be"]]
|
571
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
579
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
580
|
+
[1m[35m (0.1ms)[0m begin transaction
|
581
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
582
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
584
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
585
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
586
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.0ms)[0m [1mcommit transaction[0m
|
588
|
+
[1m[35m (0.1ms)[0m begin transaction
|
589
|
+
---------------------------------------------------------------------
|
590
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
591
|
+
---------------------------------------------------------------------
|
592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "2cfdb69e-232f-488d-a330-f6b287c0f8bd"]]
|
594
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.0ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
602
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
603
|
+
--------------------------------------------------------------------------------
|
604
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
605
|
+
--------------------------------------------------------------------------------
|
606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
607
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "7b664acf-b5ee-497b-88b6-e8da0a0cc625"]]
|
608
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
610
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
611
|
+
Parameters: {"uuid"=>"7b664acf-b5ee-497b-88b6-e8da0a0cc625", "path"=>"/one/two%20three"}
|
612
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
616
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
618
|
+
[1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
619
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
621
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "url_shortener_links"
|
622
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
623
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
626
|
+
---------------------------------------------------------------------
|
627
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
628
|
+
---------------------------------------------------------------------
|
629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
630
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "76339c98-0a91-478c-a02d-cff170a38425"]]
|
631
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
639
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
640
|
+
--------------------------------------------------------------------------------
|
641
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
642
|
+
--------------------------------------------------------------------------------
|
643
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
644
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "8c34f09a-28b5-4b0b-b6f4-441f4cac33b8"]]
|
645
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
647
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
648
|
+
Parameters: {"uuid"=>"8c34f09a-28b5-4b0b-b6f4-441f4cac33b8", "path"=>"/one/two%20three"}
|
649
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
654
|
+
---------------------------------------------------------------------
|
655
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
656
|
+
---------------------------------------------------------------------
|
657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
658
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5a077aa9-f027-480d-9981-e43f104b933d"]]
|
659
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
661
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ?[0m [["link_id", 980190963]]
|
662
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
663
|
+
Parameters: {"uuid"=>"5a077aa9-f027-480d-9981-e43f104b933d", "path"=>"/one/two%20three"}
|
664
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ?[0m [["link_id", 980190963]]
|
668
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
669
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
670
|
+
[1m[35m (0.1ms)[0m begin transaction
|
671
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
672
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
674
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
675
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
676
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
678
|
+
[1m[35m (0.1ms)[0m begin transaction
|
679
|
+
---------------------------------------------------------------------
|
680
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
681
|
+
---------------------------------------------------------------------
|
682
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
683
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "492c40d8-54a9-429c-b5a2-f1784d306cf5"]]
|
684
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
692
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
693
|
+
---------------------------------------------------------------------
|
694
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
695
|
+
---------------------------------------------------------------------
|
696
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
697
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "7069019e-9966-4618-928c-7e6bc8fd8190"]]
|
698
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
700
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
708
|
+
[1m[35m (0.1ms)[0m begin transaction
|
709
|
+
--------------------------------------------------------------------------------
|
710
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
711
|
+
--------------------------------------------------------------------------------
|
712
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
713
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "c2d27002-e2d7-4a46-b5f6-aaebed14516d"]]
|
714
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
722
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
723
|
+
[1m[35m (0.1ms)[0m begin transaction
|
724
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
725
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
727
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
728
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
729
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
731
|
+
[1m[35m (0.1ms)[0m begin transaction
|
732
|
+
---------------------------------------------------------------------
|
733
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
734
|
+
---------------------------------------------------------------------
|
735
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
736
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0d62e190-902f-4a82-8c05-80ceacb842d5"]]
|
737
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
746
|
+
--------------------------------------------------------------------------------
|
747
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
748
|
+
--------------------------------------------------------------------------------
|
749
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
750
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "e7db6cd5-ed13-4785-979d-ef70e42a70ef"]]
|
751
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
753
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
754
|
+
Parameters: {"uuid"=>"e7db6cd5-ed13-4785-979d-ef70e42a70ef", "path"=>"/one/two%20three"}
|
755
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e7db6cd5-ed13-4785-979d-ef70e42a70ef"]]
|
756
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
757
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
759
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
760
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
|
761
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
762
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
763
|
+
---------------------------------------------------------------------
|
764
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
765
|
+
---------------------------------------------------------------------
|
766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
767
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "12f321eb-426b-427f-8f27-b9a57d086226"]]
|
768
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
770
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "12f321eb-426b-427f-8f27-b9a57d086226"]]
|
774
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
775
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ?[0m [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
|
780
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
781
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
782
|
+
[1m[35m (0.1ms)[0m begin transaction
|
783
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
784
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
786
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
787
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
788
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
790
|
+
[1m[35m (0.1ms)[0m begin transaction
|
791
|
+
---------------------------------------------------------------------
|
792
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
793
|
+
---------------------------------------------------------------------
|
794
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
795
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a6abac7e-50f9-4b59-807a-1f3324d97b16"]]
|
796
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
805
|
+
--------------------------------------------------------------------------------
|
806
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
807
|
+
--------------------------------------------------------------------------------
|
808
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
809
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "e1c994cb-91b9-46fd-b197-8c74019134cf"]]
|
810
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
812
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
813
|
+
Parameters: {"uuid"=>"e1c994cb-91b9-46fd-b197-8c74019134cf", "path"=>"/one/two%20three"}
|
814
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e1c994cb-91b9-46fd-b197-8c74019134cf"]]
|
815
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
816
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
818
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
819
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
|
820
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
821
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
822
|
+
---------------------------------------------------------------------
|
823
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
824
|
+
---------------------------------------------------------------------
|
825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
826
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "ecbb370c-8f2f-4446-9639-2568c2b1b477"]]
|
827
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
829
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "ecbb370c-8f2f-4446-9639-2568c2b1b477"]]
|
833
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
834
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ?[0m [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"]]
|
839
|
+
[1m[35mUrlShortener::Click Load (0.1ms)[0m SELECT "url_shortener_clicks".* FROM "url_shortener_clicks" ORDER BY "url_shortener_clicks"."id" DESC LIMIT 1
|
840
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
841
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
842
|
+
[1m[35m (0.1ms)[0m begin transaction
|
843
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
844
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
846
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
847
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
848
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
850
|
+
[1m[35m (0.1ms)[0m begin transaction
|
851
|
+
---------------------------------------------------------------------
|
852
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
853
|
+
---------------------------------------------------------------------
|
854
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
855
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d9b47286-9c00-4311-9742-15e0e61b57d7"]]
|
856
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
858
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ?[0m [["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
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "d9b47286-9c00-4311-9742-15e0e61b57d7"]]
|
862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
863
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
865
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
866
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
|
867
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Click Load (0.1ms)[0m [1mSELECT "url_shortener_clicks".* FROM "url_shortener_clicks" ORDER BY "url_shortener_clicks"."id" DESC LIMIT 1[0m
|
869
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
870
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
871
|
+
--------------------------------------------------------------------------------
|
872
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
873
|
+
--------------------------------------------------------------------------------
|
874
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
875
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "74f17a0d-e640-4866-ba31-92606f6902da"]]
|
876
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
878
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
879
|
+
Parameters: {"uuid"=>"74f17a0d-e640-4866-ba31-92606f6902da", "path"=>"/one/two%20three"}
|
880
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "74f17a0d-e640-4866-ba31-92606f6902da"]]
|
881
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
882
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
884
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
885
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
|
886
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
887
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
888
|
+
---------------------------------------------------------------------
|
889
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
890
|
+
---------------------------------------------------------------------
|
891
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
892
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "bf258f98-f25c-483f-b68c-aeb144547e15"]]
|
893
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
895
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
896
|
+
Parameters: {"uuid"=>"wrongbf258f98-f25c-483f-b68c-aeb144547e15", "path"=>"/one/two%20three"}
|
897
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
901
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
902
|
+
[1m[35m (0.1ms)[0m begin transaction
|
903
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
904
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
906
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
907
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
908
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
910
|
+
[1m[35m (0.1ms)[0m begin transaction
|
911
|
+
---------------------------------------------------------------------
|
912
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through
|
913
|
+
---------------------------------------------------------------------
|
914
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
915
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49447782-7dab-4eb4-be12-af8bf6c5be38"]]
|
916
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
918
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["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
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49447782-7dab-4eb4-be12-af8bf6c5be38"]]
|
922
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
923
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
925
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
926
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
927
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
929
|
+
[1m[35m (0.1ms)[0m begin transaction
|
930
|
+
--------------------------------------------------------------------------------
|
931
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
932
|
+
--------------------------------------------------------------------------------
|
933
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
934
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8d63c0be-dac7-43b3-aa35-58057c43ef8c"]]
|
935
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "8d63c0be-dac7-43b3-aa35-58057c43ef8c"]]
|
940
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
941
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
946
|
+
[1m[35m (0.1ms)[0m begin transaction
|
947
|
+
---------------------------------------------------------------------
|
948
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
949
|
+
---------------------------------------------------------------------
|
950
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
951
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0c6eecb5-2b58-4e17-8972-43408667d174"]]
|
952
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
960
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
961
|
+
[1m[35m (0.1ms)[0m begin transaction
|
962
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
963
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
965
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
966
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
967
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (7.8ms)[0m [1mcommit transaction[0m
|
969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
970
|
+
--------------------------------------------------------------------------------
|
971
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
972
|
+
--------------------------------------------------------------------------------
|
973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
974
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ae747606-66d0-4744-9d33-b66efb42c634"]]
|
975
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "ae747606-66d0-4744-9d33-b66efb42c634"]]
|
980
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
981
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
986
|
+
[1m[35m (0.1ms)[0m begin transaction
|
987
|
+
---------------------------------------------------------------------
|
988
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
989
|
+
---------------------------------------------------------------------
|
990
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
991
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "f164d33a-71d9-4dc1-80a5-917ed3c39a23"]]
|
992
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1000
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1001
|
+
--------------------------------------------------------------------------
|
1002
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1003
|
+
--------------------------------------------------------------------------
|
1004
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1005
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "7721f7e5-0aeb-4a51-ad44-153fce466e64"]]
|
1006
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1008
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "7721f7e5-0aeb-4a51-ad44-153fce466e64"]]
|
1012
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1013
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1018
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1019
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1020
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1021
|
+
[1m[36mFixture Delete (1.3ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1022
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1024
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "url_shortener_links"
|
1025
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1026
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
1028
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1029
|
+
---------------------------------------------------------------
|
1030
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
1031
|
+
---------------------------------------------------------------
|
1032
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1033
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "5728e06b-dd25-436a-b490-e249e62a6f4d"]]
|
1034
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1036
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1037
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "1810bb1c-f51b-4f2d-a70c-633a475950a2"]]
|
1038
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1040
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1041
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1042
|
+
----------------------------------------------
|
1043
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
1044
|
+
----------------------------------------------
|
1045
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1046
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "dbb9bea5-99a8-4c75-af61-5c8558e59bf3"]]
|
1047
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1049
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1050
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1051
|
+
------------------------------------------------
|
1052
|
+
UrlShortener::LinkTest: test_stores_original_url
|
1053
|
+
------------------------------------------------
|
1054
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1055
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "ab070fc8-d478-4563-bf94-5a3c06ab0a8d"]]
|
1056
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1058
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1059
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1060
|
+
---------------------------------------------------------------------
|
1061
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
1062
|
+
---------------------------------------------------------------------
|
1063
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1064
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6078b120-8b5e-4df6-9f0c-17756b42384f"]]
|
1065
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.0ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1073
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1074
|
+
--------------------------------------------------------------------------------
|
1075
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1076
|
+
--------------------------------------------------------------------------------
|
1077
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1078
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "6a240efb-0c93-4c90-a211-5d648d6854df"]]
|
1079
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1081
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
1082
|
+
Parameters: {"uuid"=>"6a240efb-0c93-4c90-a211-5d648d6854df", "path"=>"/one/two%20three"}
|
1083
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "6a240efb-0c93-4c90-a211-5d648d6854df"]]
|
1084
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1085
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1087
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1088
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
1089
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1090
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1091
|
+
--------------------------------------------------------------------------
|
1092
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1093
|
+
--------------------------------------------------------------------------
|
1094
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1095
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "83539fec-267d-4c2b-be30-dbbf8e50e041"]]
|
1096
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1098
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "83539fec-267d-4c2b-be30-dbbf8e50e041"]]
|
1102
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1103
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "url_shortener_clicks" ("link_id", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."link_id" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["link_id", 980190963], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1108
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1109
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1110
|
+
----------------------------
|
1111
|
+
UrlShortenerTest: test_truth
|
1112
|
+
----------------------------
|
1113
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1114
|
+
[1m[36m (9.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1115
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1116
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1117
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1118
|
+
Migrating to CreateUrlShortenerLinks (20160111023755)
|
1119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1120
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1122
|
+
[1m[35m (0.9ms)[0m commit transaction
|
1123
|
+
Migrating to CreateUrlShortenerClicks (20160111023840)
|
1124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1125
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_url_shortener_clicks_on_url_shortener_link_id" ON "url_shortener_clicks" ("url_shortener_link_id")[0m
|
1127
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111023840"]]
|
1128
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
1129
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1130
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
1138
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1139
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1140
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1141
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1142
|
+
Migrating to CreateUrlShortenerLinks (20160111023755)
|
1143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1144
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1146
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1147
|
+
Migrating to CreateUrlShortenerClicks (20160111023840)
|
1148
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1149
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023840"]]
|
1151
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1152
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1153
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1155
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1156
|
+
[1m[35m (8.4ms)[0m rollback transaction
|
1157
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1158
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "url_shortener_clicks"
|
1159
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1160
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1161
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1162
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1164
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "url_shortener_clicks"
|
1165
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1167
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1168
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1169
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1170
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "url_shortener_clicks"
|
1171
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1172
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1173
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1174
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1175
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1176
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1177
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1178
|
+
[1m[35m (8.4ms)[0m rollback transaction
|
1179
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1180
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "url_shortener_clicks"
|
1181
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1183
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1184
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1186
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "url_shortener_clicks"
|
1187
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1189
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1190
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1192
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "url_shortener_clicks"
|
1193
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1195
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1196
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1197
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1199
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1200
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1202
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
1203
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1204
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.5ms)[0m [1mcommit transaction[0m
|
1206
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1207
|
+
----------------------------
|
1208
|
+
UrlShortenerTest: test_truth
|
1209
|
+
----------------------------
|
1210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1211
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1212
|
+
---------------------------------------------------------------------
|
1213
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
1214
|
+
---------------------------------------------------------------------
|
1215
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1216
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "2c54e949-12fa-4c90-82cf-b6371214930d"]]
|
1217
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1226
|
+
--------------------------------------------------------------------------------
|
1227
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1228
|
+
--------------------------------------------------------------------------------
|
1229
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1230
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "77e5ac82-0668-41b9-94ad-aab2bed99359"]]
|
1231
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1233
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
1234
|
+
Parameters: {"uuid"=>"77e5ac82-0668-41b9-94ad-aab2bed99359", "path"=>"/one/two%20three"}
|
1235
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1239
|
+
--------------------------------------------------------------------------
|
1240
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1241
|
+
--------------------------------------------------------------------------
|
1242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1243
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8a494f2b-be9c-4cf6-8ff5-dfcd38541f49"]]
|
1244
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1246
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ? AND "url_shortener_clicks"."link_id" = 980190963[0m [["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1247
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1249
|
+
------------------------------------------------
|
1250
|
+
UrlShortener::LinkTest: test_stores_original_url
|
1251
|
+
------------------------------------------------
|
1252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1253
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "f85eddc2-126d-4b52-b6c3-6371b7b1ca70"]]
|
1254
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1256
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1257
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1258
|
+
----------------------------------------------
|
1259
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
1260
|
+
----------------------------------------------
|
1261
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1262
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "384b8b41-99d0-42a4-aad9-d7d50f721cda"]]
|
1263
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1265
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1267
|
+
---------------------------------------------------------------
|
1268
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
1269
|
+
---------------------------------------------------------------
|
1270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1271
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "0dac8189-eef6-42e1-8a04-fd3a1a7defa1"]]
|
1272
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1274
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1275
|
+
[1m[36mUrlShortener::Link Load (0.0ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "f2133e50-1983-47bd-8cfe-90bb56af5011"]]
|
1276
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1278
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1279
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1280
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1281
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1282
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1284
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
1285
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1286
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
1288
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1289
|
+
---------------------------------------------------------------------
|
1290
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
1291
|
+
---------------------------------------------------------------------
|
1292
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1293
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "147e695e-a5bd-452f-8189-a7f9c9bbfcc0"]]
|
1294
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1302
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1303
|
+
--------------------------------------------------------------------------------
|
1304
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1305
|
+
--------------------------------------------------------------------------------
|
1306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1307
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a"]]
|
1308
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1310
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
1311
|
+
Parameters: {"uuid"=>"8d3a7b5d-acfa-4ec6-890d-926c36ea0e2a", "path"=>"/one/two%20three"}
|
1312
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1316
|
+
--------------------------------------------------------------------------
|
1317
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1318
|
+
--------------------------------------------------------------------------
|
1319
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1320
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "e842e9c7-7a08-4c66-ad1c-bfdf414b446a"]]
|
1321
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1323
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["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
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1329
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1330
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1331
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1332
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1334
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
1335
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1336
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
1338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1339
|
+
---------------------------------------------------------------------
|
1340
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
1341
|
+
---------------------------------------------------------------------
|
1342
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1343
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "aa34cc15-6917-49ef-a00d-256972ae89e5"]]
|
1344
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1353
|
+
--------------------------------------------------------------------------------
|
1354
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1355
|
+
--------------------------------------------------------------------------------
|
1356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1357
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"]]
|
1358
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1360
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
1361
|
+
Parameters: {"uuid"=>"4ba16053-20f6-4ff2-b7fc-e535ee5424bd", "path"=>"/one/two%20three"}
|
1362
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "4ba16053-20f6-4ff2-b7fc-e535ee5424bd"]]
|
1363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1364
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1366
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1367
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
1368
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1370
|
+
--------------------------------------------------------------------------
|
1371
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1372
|
+
--------------------------------------------------------------------------
|
1373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1374
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"]]
|
1375
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1377
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"]]
|
1381
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1382
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["uuid", "25f791b9-effd-4b0a-acce-9fe75703d699"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1387
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1388
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1389
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1390
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "url_shortener_clicks"[0m
|
1391
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1393
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "url_shortener_links"
|
1394
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1395
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
1397
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1398
|
+
----------------------------------------------
|
1399
|
+
UrlShortener::LinkTest: test_autogenerate_uuid
|
1400
|
+
----------------------------------------------
|
1401
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1402
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a1808545-0f3a-4f4c-b8d2-ada4d8c0d34d"]]
|
1403
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1405
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1406
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1407
|
+
---------------------------------------------------------------
|
1408
|
+
UrlShortener::LinkTest: test_autogenerate_uuid_even_if_provided
|
1409
|
+
---------------------------------------------------------------
|
1410
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1411
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "8c95a73d-d49a-4508-ac59-f81fc8c7cc34"]]
|
1412
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1414
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1415
|
+
[1m[35mUrlShortener::Link Load (0.0ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "0c118440-4154-4e41-85e7-f28f194c9daf"]]
|
1416
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1418
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
1419
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1420
|
+
------------------------------------------------
|
1421
|
+
UrlShortener::LinkTest: test_stores_original_url
|
1422
|
+
------------------------------------------------
|
1423
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1424
|
+
[1m[35mUrlShortener::Link Load (0.2ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "a846e37b-52fd-4b3b-8fe2-0730abd2c71b"]]
|
1425
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1427
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1429
|
+
----------------------------
|
1430
|
+
UrlShortenerTest: test_truth
|
1431
|
+
----------------------------
|
1432
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1434
|
+
---------------------------------------------------------------------
|
1435
|
+
UrlShortener::RedirectControllerTest: test_should_404_on_unknown_link
|
1436
|
+
---------------------------------------------------------------------
|
1437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1438
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "64338584-aaac-43c5-b403-e4923f5be328"]]
|
1439
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "url_shortener_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.3ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1448
|
+
--------------------------------------------------------------------------------
|
1449
|
+
UrlShortener::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1450
|
+
--------------------------------------------------------------------------------
|
1451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1452
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"]]
|
1453
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1455
|
+
Processing by UrlShortener::RedirectController#show as HTML
|
1456
|
+
Parameters: {"uuid"=>"49df3253-440c-4cee-bdc5-3d63ee0abacb", "path"=>"/one/two%20three"}
|
1457
|
+
[1m[35mUrlShortener::Link Load (0.1ms)[0m SELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1 [["uuid", "49df3253-440c-4cee-bdc5-3d63ee0abacb"]]
|
1458
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1461
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1462
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
|
1463
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1465
|
+
--------------------------------------------------------------------------
|
1466
|
+
UrlShortener::RedirectControllerTest: test_should_track_click_through_data
|
1467
|
+
--------------------------------------------------------------------------
|
1468
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1469
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"]]
|
1470
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1472
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mUrlShortener::Link Load (0.1ms)[0m [1mSELECT "url_shortener_links".* FROM "url_shortener_links" WHERE "url_shortener_links"."uuid" = ? LIMIT 1[0m [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"]]
|
1476
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1477
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "url_shortener_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "url_shortener_clicks" WHERE "url_shortener_clicks"."uuid" = ? AND "url_shortener_clicks"."referrer" = ? AND "url_shortener_clicks"."ipaddress" = ?[0m [["uuid", "ce2c68c9-9e6b-4a1d-afab-820be2e2ae5b"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1482
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1483
|
+
[1m[36m (1.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1484
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1485
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1486
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1487
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1488
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1489
|
+
[1m[35m (2.3ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1491
|
+
[1m[35m (1.0ms)[0m commit transaction
|
1492
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1493
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1494
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023840"]]
|
1496
|
+
[1m[35m (1.3ms)[0m commit transaction
|
1497
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1498
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1499
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1500
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1501
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1503
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
1504
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1505
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
1507
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1508
|
+
------------------------
|
1509
|
+
Track302Test: test_truth
|
1510
|
+
------------------------
|
1511
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1512
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1513
|
+
------------------------------------------
|
1514
|
+
Track302::LinkTest: test_autogenerate_uuid
|
1515
|
+
------------------------------------------
|
1516
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1517
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "6d7f2f39-07ea-409b-a99f-42d2ba52ea1f"]]
|
1518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1520
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1521
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1522
|
+
--------------------------------------------
|
1523
|
+
Track302::LinkTest: test_stores_original_url
|
1524
|
+
--------------------------------------------
|
1525
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1526
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a1ed948a-dc14-4985-9ec8-ec6f9f343a04"]]
|
1527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1529
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1531
|
+
-----------------------------------------------------------
|
1532
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
1533
|
+
-----------------------------------------------------------
|
1534
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1535
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "90620bee-b727-4509-909e-4d537f0c6769"]]
|
1536
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (1.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "f625145e-5e66-421c-9d0c-17b069409623"]]
|
1540
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1542
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1544
|
+
-----------------------------------------------------------------
|
1545
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
1546
|
+
-----------------------------------------------------------------
|
1547
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1548
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "49c01742-e724-45ec-a384-3bdfce2d18af"]]
|
1549
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1557
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1558
|
+
----------------------------------------------------------------------------
|
1559
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1560
|
+
----------------------------------------------------------------------------
|
1561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1562
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"]]
|
1563
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1565
|
+
Processing by Track302::RedirectController#show as HTML
|
1566
|
+
Parameters: {"uuid"=>"b717c218-9f5e-4fd1-95b1-dd45eaebdfe5", "path"=>"/one/two%20three"}
|
1567
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b717c218-9f5e-4fd1-95b1-dd45eaebdfe5"]]
|
1568
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1569
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1571
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1572
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
|
1573
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1575
|
+
----------------------------------------------------------------------
|
1576
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1577
|
+
----------------------------------------------------------------------
|
1578
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1579
|
+
[1m[36mTrack302::Link Load (0.3ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"]]
|
1580
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1582
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"]]
|
1586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1587
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ?[0m [["uuid", "5705664a-4e21-4af4-8f20-29e311c2da6d"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1592
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1593
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1594
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1595
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1596
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1598
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "track302_links"
|
1599
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
1600
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
1602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1603
|
+
-----------------------------------------------------------------
|
1604
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
1605
|
+
-----------------------------------------------------------------
|
1606
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1607
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1af5a2ee-0810-4e7f-99d7-2214ab31b3da"]]
|
1608
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.5ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1616
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1617
|
+
----------------------------------------------------------------------------
|
1618
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1619
|
+
----------------------------------------------------------------------------
|
1620
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1621
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "b2165155-2091-498a-a404-4ba5611129b8"]]
|
1622
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1624
|
+
Processing by Track302::RedirectController#show as HTML
|
1625
|
+
Parameters: {"uuid"=>"b2165155-2091-498a-a404-4ba5611129b8", "path"=>"/one/two%20three"}
|
1626
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b2165155-2091-498a-a404-4ba5611129b8"]]
|
1627
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1630
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1631
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
|
1632
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1633
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1634
|
+
----------------------------------------------------------------------
|
1635
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1636
|
+
----------------------------------------------------------------------
|
1637
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1638
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"]]
|
1639
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1641
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"]]
|
1645
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1646
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "referrer", "ipaddress", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? AND "track302_clicks"."referrer" = ? AND "track302_clicks"."ipaddress" = ?[0m [["uuid", "4ac0bc8b-182d-4d82-8041-b625fa3fd276"], ["referrer", "https://yahoo.com/abc?xyz=123"], ["ipaddress", "8.8.8.2"]]
|
1651
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1652
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1653
|
+
------------------------
|
1654
|
+
Track302Test: test_truth
|
1655
|
+
------------------------
|
1656
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1658
|
+
-----------------------------------------------------------
|
1659
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
1660
|
+
-----------------------------------------------------------
|
1661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1662
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "e3c858ba-f293-41f4-9fa1-5bb43097a69b"]]
|
1663
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1666
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "f7a52e4f-69f6-49f8-9516-3c881a3af7ef"]]
|
1667
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1669
|
+
[1m[35m (2.4ms)[0m rollback transaction
|
1670
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1671
|
+
------------------------------------------
|
1672
|
+
Track302::LinkTest: test_autogenerate_uuid
|
1673
|
+
------------------------------------------
|
1674
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1675
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "c25f40b5-d95d-478d-bfaf-c1f803852b2b"]]
|
1676
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1678
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1679
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1680
|
+
--------------------------------------------
|
1681
|
+
Track302::LinkTest: test_stores_original_url
|
1682
|
+
--------------------------------------------
|
1683
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1684
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "cab572a5-aa0e-4889-95a3-b554c77deb47"]]
|
1685
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1687
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1688
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1689
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1690
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1691
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1692
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1694
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1696
|
+
[1m[35m (1.0ms)[0m commit transaction
|
1697
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1699
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1700
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1701
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1702
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1703
|
+
[1m[35mActiveRecord::SchemaMigration Load (18.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1704
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1705
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1706
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1708
|
+
[1m[35m (0.7ms)[0m commit transaction
|
1709
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1710
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1711
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
1712
|
+
[1m[36m (18.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1713
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1714
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1715
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1716
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1717
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1718
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1720
|
+
[1m[35m (1.1ms)[0m commit transaction
|
1721
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1722
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1723
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023840"]]
|
1725
|
+
[1m[35m (0.9ms)[0m commit transaction
|
1726
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1727
|
+
[1m[36m (18.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1728
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
1729
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1730
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1731
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1733
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1735
|
+
[1m[35m (1.0ms)[0m commit transaction
|
1736
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1738
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023840"]]
|
1740
|
+
[1m[35m (1.1ms)[0m commit transaction
|
1741
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1742
|
+
[1m[36m (17.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
1743
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
1744
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1745
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1746
|
+
Migrating to CreateTrack302Links (20160111023755)
|
1747
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1748
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023755"]]
|
1750
|
+
[1m[35m (0.8ms)[0m commit transaction
|
1751
|
+
Migrating to CreateTrack302Clicks (20160111023840)
|
1752
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1753
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160111023840"]]
|
1755
|
+
[1m[35m (0.9ms)[0m commit transaction
|
1756
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1757
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1758
|
+
[1m[35m (0.6ms)[0m begin transaction
|
1759
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1760
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1761
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1762
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "track302_clicks"
|
1763
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1764
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1765
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1766
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1767
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1768
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "track302_clicks"
|
1769
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1770
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1771
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1772
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1773
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1774
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "track302_clicks"
|
1775
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
1776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1777
|
+
[1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1778
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1779
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1780
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1781
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1782
|
+
[1m[35mFixture Insert (0.3ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:52:25', '2016-01-11 03:52:25', 298486374)[0m
|
1784
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
1785
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1786
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (18.4ms)[0m [1mcommit transaction[0m
|
1788
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1789
|
+
----------------------------------------------------------------------------
|
1790
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1791
|
+
----------------------------------------------------------------------------
|
1792
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1793
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ed977396-e259-44ac-9181-9b37b9e73415"]]
|
1794
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "ed977396-e259-44ac-9181-9b37b9e73415"]]
|
1799
|
+
Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)
|
1800
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1801
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1802
|
+
-----------------------------------------------------------------
|
1803
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
1804
|
+
-----------------------------------------------------------------
|
1805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1806
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "a24694a2-00bb-4cdd-b9ae-9898944db675"]]
|
1807
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1809
|
+
Processing by Track302::RedirectController#show as HTML
|
1810
|
+
Parameters: {"uuid"=>"wronga24694a2-00bb-4cdd-b9ae-9898944db675", "path"=>"/one/two%20three"}
|
1811
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1815
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1816
|
+
----------------------------------------------------------------------
|
1817
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1818
|
+
----------------------------------------------------------------------
|
1819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1820
|
+
[1m[35mTrack302::Link Load (0.5ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b9cb76d7-9b66-4877-8b23-1f00227c85b1"]]
|
1821
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1823
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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'[0m [["uuid", "b9cb76d7-9b66-4877-8b23-1f00227c85b1"]]
|
1824
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1826
|
+
--------------------------------------------
|
1827
|
+
Track302::LinkTest: test_stores_original_url
|
1828
|
+
--------------------------------------------
|
1829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1830
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "fb915e29-7b76-4ecc-ab95-c0589e6e4521"]]
|
1831
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1833
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1834
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1835
|
+
------------------------------------------
|
1836
|
+
Track302::LinkTest: test_autogenerate_uuid
|
1837
|
+
------------------------------------------
|
1838
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1839
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "4bc055e0-a0dd-40fa-96c8-81d9bbaad786"]]
|
1840
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1842
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1843
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1844
|
+
-----------------------------------------------------------
|
1845
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
1846
|
+
-----------------------------------------------------------
|
1847
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1848
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "cbb5ad20-cf43-4f72-b326-401627e18c9a"]]
|
1849
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1851
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1852
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "218e64f4-7a88-4b3d-9e7a-9621ee7f3d84"]]
|
1853
|
+
[1m[35mSQL (1.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1855
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
1856
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1857
|
+
------------------------
|
1858
|
+
Track302Test: test_truth
|
1859
|
+
------------------------
|
1860
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1861
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1862
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1863
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1864
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:53:55', '2016-01-11 03:53:55', 298486374)[0m
|
1866
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
1867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1868
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (17.6ms)[0m [1mcommit transaction[0m
|
1870
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1871
|
+
-----------------------------------------------------------------
|
1872
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
1873
|
+
-----------------------------------------------------------------
|
1874
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1875
|
+
[1m[35mTrack302::Link Load (0.3ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ccd80515-727f-4401-85cb-5a9a3bc2a0ab"]]
|
1876
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (7.5ms)[0m rollback transaction
|
1884
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1885
|
+
----------------------------------------------------------------------------
|
1886
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1887
|
+
----------------------------------------------------------------------------
|
1888
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1889
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "b508bca8-6804-49ef-9e53-65ea45b26b7e"]]
|
1890
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1892
|
+
Processing by Track302::RedirectController#show as HTML
|
1893
|
+
Parameters: {"uuid"=>"b508bca8-6804-49ef-9e53-65ea45b26b7e", "path"=>"/one/two%20three"}
|
1894
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1897
|
+
[1m[35m (0.2ms)[0m begin transaction
|
1898
|
+
----------------------------------------------------------------------
|
1899
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1900
|
+
----------------------------------------------------------------------
|
1901
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1902
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3c02b132-7246-4ae2-b324-0f4e842b1e9a"]]
|
1903
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.8ms)[0m RELEASE SAVEPOINT active_record_1
|
1905
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1911
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1912
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1913
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1914
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:54:18', '2016-01-11 03:54:18', 298486374)[0m
|
1916
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
1917
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
1918
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
1920
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1921
|
+
----------------------------------------------------------------------
|
1922
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1923
|
+
----------------------------------------------------------------------
|
1924
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1925
|
+
[1m[35mTrack302::Link Load (0.3ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
|
1926
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1928
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
|
1932
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1933
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1935
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1936
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
1937
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "e676d022-9d71-4818-8e86-67a211fc0abd"]]
|
1938
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
1939
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1941
|
+
----------------------------------------------------------------------------
|
1942
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1943
|
+
----------------------------------------------------------------------------
|
1944
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1945
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"]]
|
1946
|
+
[1m[35mSQL (1.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1948
|
+
Processing by Track302::RedirectController#show as HTML
|
1949
|
+
Parameters: {"uuid"=>"6dc79253-e1a1-4427-944f-513c25d55cb1", "path"=>"/one/two%20three"}
|
1950
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "6dc79253-e1a1-4427-944f-513c25d55cb1"]]
|
1951
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1952
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1954
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
1955
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
|
1956
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1957
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1958
|
+
-----------------------------------------------------------------
|
1959
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
1960
|
+
-----------------------------------------------------------------
|
1961
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1962
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "cd102a5b-578a-49ba-ba30-1c9d51db4ad8"]]
|
1963
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1965
|
+
Processing by Track302::RedirectController#show as HTML
|
1966
|
+
Parameters: {"uuid"=>"wrongcd102a5b-578a-49ba-ba30-1c9d51db4ad8", "path"=>"/one/two%20three"}
|
1967
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1971
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1972
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1973
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
1974
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:54:29', '2016-01-11 03:54:29', 298486374)[0m
|
1976
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
1977
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
1978
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
1980
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1981
|
+
----------------------------------------------------------------------
|
1982
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
1983
|
+
----------------------------------------------------------------------
|
1984
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1985
|
+
[1m[35mTrack302::Link Load (0.3ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5a260079-78b0-4744-87c9-a2a29a9571f8"]]
|
1986
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1988
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1994
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1995
|
+
----------------------------------------------------------------------------
|
1996
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
1997
|
+
----------------------------------------------------------------------------
|
1998
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1999
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ac75c688-696b-4d9b-ab1d-f4c10a938d32"]]
|
2000
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "ac75c688-696b-4d9b-ab1d-f4c10a938d32"]]
|
2005
|
+
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
|
2006
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2007
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2008
|
+
-----------------------------------------------------------------
|
2009
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2010
|
+
-----------------------------------------------------------------
|
2011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2012
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "0f03da59-1ce8-44fe-b4b2-b7b7f715b00d"]]
|
2013
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2015
|
+
Processing by Track302::RedirectController#show as HTML
|
2016
|
+
Parameters: {"uuid"=>"wrong0f03da59-1ce8-44fe-b4b2-b7b7f715b00d", "path"=>"/one/two%20three"}
|
2017
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2021
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2022
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2023
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2024
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2025
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:55:21', '2016-01-11 03:55:21', 298486374)[0m
|
2027
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2028
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2029
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
2031
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2032
|
+
----------------------------------------------------------------------
|
2033
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2034
|
+
----------------------------------------------------------------------
|
2035
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2036
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
|
2037
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2039
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
|
2043
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2044
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2046
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2047
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.8ms)
|
2048
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "67888adc-b85f-49e2-85c0-a4de85c6bc5d"]]
|
2049
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
2050
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2052
|
+
----------------------------------------------------------------------------
|
2053
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2054
|
+
----------------------------------------------------------------------------
|
2055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2056
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"]]
|
2057
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2059
|
+
Processing by Track302::RedirectController#show as HTML
|
2060
|
+
Parameters: {"uuid"=>"9267041c-a9a1-4a33-985b-7157dfa8e0af", "path"=>"/one/two%20three"}
|
2061
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9267041c-a9a1-4a33-985b-7157dfa8e0af"]]
|
2062
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2063
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2065
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2066
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
|
2067
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2068
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2069
|
+
-----------------------------------------------------------------
|
2070
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2071
|
+
-----------------------------------------------------------------
|
2072
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2073
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "0b530cf7-2054-488d-b518-d3f82175f6b7"]]
|
2074
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2076
|
+
Processing by Track302::RedirectController#show as HTML
|
2077
|
+
Parameters: {"uuid"=>"wrong0b530cf7-2054-488d-b518-d3f82175f6b7", "path"=>"/one/two%20three"}
|
2078
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2082
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2083
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2084
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2085
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 03:57:24', '2016-01-11 03:57:24', 298486374)[0m
|
2087
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2088
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2089
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2091
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2092
|
+
----------------------------------------------------------------------
|
2093
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2094
|
+
----------------------------------------------------------------------
|
2095
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2096
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
|
2097
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2099
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "7da15c3a-f87e-4f98-acc0-17f0728fa1ca"]]
|
2105
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2106
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2107
|
+
----------------------------------------------------------------------------
|
2108
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2109
|
+
----------------------------------------------------------------------------
|
2110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2111
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e2fc298-e35a-4cab-87e2-1e813e3586a9"]]
|
2112
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2120
|
+
-----------------------------------------------------------------
|
2121
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2122
|
+
-----------------------------------------------------------------
|
2123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2124
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aec8979e-1412-4ff7-851c-2a5e4effe4ef"]]
|
2125
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2132
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2133
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2134
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2135
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:09:44', '2016-01-11 04:09:44', 298486374)[0m
|
2137
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "track302_links"
|
2138
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2139
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
2141
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2142
|
+
-----------------------------------------------------------------
|
2143
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2144
|
+
-----------------------------------------------------------------
|
2145
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2146
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7374fc68-c4df-4bcc-b114-0dd7112b442f"]]
|
2147
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2155
|
+
----------------------------------------------------------------------------
|
2156
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2157
|
+
----------------------------------------------------------------------------
|
2158
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2159
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cad67792-35bc-4c66-94ca-9276311c1248"]]
|
2160
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2168
|
+
----------------------------------------------------------------------
|
2169
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2170
|
+
----------------------------------------------------------------------
|
2171
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2172
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
|
2173
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2175
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "bd9be5ac-3b25-4b7f-a690-e3f96f8cff3f"]]
|
2181
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2182
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2183
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2184
|
+
[1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2185
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:10:34', '2016-01-11 04:10:34', 298486374)[0m
|
2187
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2188
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
2189
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
2191
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2192
|
+
-----------------------------------------------------------------
|
2193
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2194
|
+
-----------------------------------------------------------------
|
2195
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2196
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a3099fcc-0df2-4940-b9fa-f80b78aa768b"]]
|
2197
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2204
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2205
|
+
----------------------------------------------------------------------
|
2206
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2207
|
+
----------------------------------------------------------------------
|
2208
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2209
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
|
2210
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2212
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "a2a4c0fb-d61b-4b40-b689-d9554077b709"]]
|
2218
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2219
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2220
|
+
----------------------------------------------------------------------------
|
2221
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2222
|
+
----------------------------------------------------------------------------
|
2223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2224
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2f39cc4d-4e98-421d-8b3c-db947734dfef"]]
|
2225
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2232
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2233
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2234
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2235
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:12:48', '2016-01-11 04:12:48', 298486374)[0m
|
2237
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2238
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
2239
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
2241
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2242
|
+
-----------------------------------------------------------------
|
2243
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2244
|
+
-----------------------------------------------------------------
|
2245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2246
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "75ab99a6-39a1-4d60-8732-556da243e026"]]
|
2247
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2255
|
+
----------------------------------------------------------------------------
|
2256
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2257
|
+
----------------------------------------------------------------------------
|
2258
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2259
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "be71766c-87fb-4860-b71a-6bbd385331ef"]]
|
2260
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2268
|
+
----------------------------------------------------------------------
|
2269
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2270
|
+
----------------------------------------------------------------------
|
2271
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2272
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
|
2273
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2275
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "8043949c-5687-40b3-b7df-7a8a13e944af"]]
|
2281
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2282
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2284
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2285
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:13:30', '2016-01-11 04:13:30', 298486374)[0m
|
2287
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2288
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2289
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
2291
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2292
|
+
----------------------------------------------------------------------------
|
2293
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2294
|
+
----------------------------------------------------------------------------
|
2295
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2296
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "92d11ea9-74dd-4ab4-bafe-67fa2d7fe269"]]
|
2297
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2305
|
+
-----------------------------------------------------------------
|
2306
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2307
|
+
-----------------------------------------------------------------
|
2308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2309
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "45c99da8-a49f-451b-bdb2-ff139bb858a6"]]
|
2310
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2317
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2318
|
+
----------------------------------------------------------------------
|
2319
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2320
|
+
----------------------------------------------------------------------
|
2321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2322
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
|
2323
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2325
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "dcc75a03-863b-4d3b-a8c9-e2f7495a95e5"]]
|
2331
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2332
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2333
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2334
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2335
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:13:55', '2016-01-11 04:13:55', 298486374)[0m
|
2337
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2338
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2339
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
2341
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2342
|
+
-----------------------------------------------------------------
|
2343
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2344
|
+
-----------------------------------------------------------------
|
2345
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2346
|
+
[1m[35mTrack302::Link Load (0.3ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "97b8b678-344c-41f1-8737-f40531bd10d4"]]
|
2347
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2356
|
+
----------------------------------------------------------------------
|
2357
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2358
|
+
----------------------------------------------------------------------
|
2359
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2360
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
|
2361
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2363
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
|
2367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2368
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "312402eb-ac6d-4635-8b0a-8402fd479aac"]]
|
2373
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2374
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
2375
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2376
|
+
----------------------------------------------------------------------------
|
2377
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2378
|
+
----------------------------------------------------------------------------
|
2379
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2380
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"]]
|
2381
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "5e4dd4db-d75b-440c-ac3a-9daaa4593fe7"]]
|
2386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2387
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2392
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2393
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2394
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2395
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:14:48', '2016-01-11 04:14:48', 298486374)[0m
|
2397
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2398
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2399
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
2401
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2402
|
+
-----------------------------------------------------------------
|
2403
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2404
|
+
-----------------------------------------------------------------
|
2405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2406
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aa08b4a7-19ef-46c1-bc9d-cf7c70477eec"]]
|
2407
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2416
|
+
----------------------------------------------------------------------
|
2417
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2418
|
+
----------------------------------------------------------------------
|
2419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2420
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
|
2421
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2423
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
|
2427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2428
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "2d423e29-9c25-48d6-b11b-5deeebc9af66"]]
|
2433
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2434
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2435
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2436
|
+
----------------------------------------------------------------------------
|
2437
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2438
|
+
----------------------------------------------------------------------------
|
2439
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2440
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"]]
|
2441
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "b84fa27e-68f7-473f-aeb0-661bb89a0b93"]]
|
2446
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2447
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2452
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2453
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2454
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2455
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:08', '2016-01-11 04:15:08', 298486374)[0m
|
2457
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2458
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2459
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
2461
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2462
|
+
-----------------------------------------------------------------
|
2463
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2464
|
+
-----------------------------------------------------------------
|
2465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2466
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b8328aa7-b033-4852-8518-545dae6aa5bb"]]
|
2467
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2475
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2476
|
+
----------------------------------------------------------------------------
|
2477
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2478
|
+
----------------------------------------------------------------------------
|
2479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2480
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"]]
|
2481
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2483
|
+
Processing by Track302::RedirectController#show as HTML
|
2484
|
+
Parameters: {"uuid"=>"b7998be8-034b-44e6-8d66-96937d1fca66", "path"=>"/one/two%20three"}
|
2485
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b7998be8-034b-44e6-8d66-96937d1fca66"]]
|
2486
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2487
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2489
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2490
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
|
2491
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2493
|
+
----------------------------------------------------------------------
|
2494
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2495
|
+
----------------------------------------------------------------------
|
2496
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2497
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
|
2498
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2500
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
|
2504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2505
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "908d4826-bffb-4f1a-a6a1-d27be1096e53"]]
|
2510
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2511
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
2512
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2513
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2514
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2515
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:19', '2016-01-11 04:15:19', 298486374)[0m
|
2517
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2518
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2519
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
2521
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2522
|
+
-----------------------------------------------------------------
|
2523
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2524
|
+
-----------------------------------------------------------------
|
2525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2526
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "aa3d2377-edb4-4d87-ad1b-2a3b10568dec"]]
|
2527
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.0ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2535
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2536
|
+
----------------------------------------------------------------------------
|
2537
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2538
|
+
----------------------------------------------------------------------------
|
2539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2540
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"]]
|
2541
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2543
|
+
Processing by Track302::RedirectController#show as HTML
|
2544
|
+
Parameters: {"uuid"=>"ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad", "path"=>"/one/two%20three"}
|
2545
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "ba53cfd8-7eb7-4d7d-a0d5-d05ff011c7ad"]]
|
2546
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2547
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2549
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2550
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
2551
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2552
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2553
|
+
----------------------------------------------------------------------
|
2554
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2555
|
+
----------------------------------------------------------------------
|
2556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2557
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
|
2558
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2560
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
|
2564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2565
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "194eff76-f96d-444f-8dc7-99d82f1eb620"]]
|
2570
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2571
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2572
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2573
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2574
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2575
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:44', '2016-01-11 04:15:44', 298486374)[0m
|
2577
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2578
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2579
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
2581
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2582
|
+
-----------------------------------------------------------------
|
2583
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2584
|
+
-----------------------------------------------------------------
|
2585
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2586
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "091d5895-3014-4164-9e2a-e527b7e06503"]]
|
2587
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2596
|
+
----------------------------------------------------------------------
|
2597
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2598
|
+
----------------------------------------------------------------------
|
2599
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2600
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
|
2601
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2603
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
|
2607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2608
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "7e1ff7ae-c31b-4743-b655-3552f1ac7eb3"]]
|
2613
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2614
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2615
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2616
|
+
----------------------------------------------------------------------------
|
2617
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2618
|
+
----------------------------------------------------------------------------
|
2619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2620
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"]]
|
2621
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "76a29ac4-dff3-400d-a93d-d8d0f8ec6695"]]
|
2626
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2627
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2632
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2633
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2634
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2635
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:15:50', '2016-01-11 04:15:50', 298486374)[0m
|
2637
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2638
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2639
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
2641
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2642
|
+
----------------------------------------------------------------------
|
2643
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2644
|
+
----------------------------------------------------------------------
|
2645
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2646
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
|
2647
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2649
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
|
2653
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2654
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2656
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2657
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
|
2658
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "b19098ec-ed6d-4aa7-a2f5-5564e433c9e8"]]
|
2659
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
2660
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
2661
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2662
|
+
----------------------------------------------------------------------------
|
2663
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2664
|
+
----------------------------------------------------------------------------
|
2665
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2666
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"]]
|
2667
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2669
|
+
Processing by Track302::RedirectController#show as HTML
|
2670
|
+
Parameters: {"uuid"=>"855a2a4b-404c-4816-bb72-fc2bc76d53f2", "path"=>"/one/two%20three"}
|
2671
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "855a2a4b-404c-4816-bb72-fc2bc76d53f2"]]
|
2672
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2673
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2675
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2676
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
|
2677
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2679
|
+
-----------------------------------------------------------------
|
2680
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2681
|
+
-----------------------------------------------------------------
|
2682
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2683
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "ff0aea75-e3c3-4776-b7f3-6674e31f1679"]]
|
2684
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2686
|
+
Processing by Track302::RedirectController#show as HTML
|
2687
|
+
Parameters: {"uuid"=>"wrongff0aea75-e3c3-4776-b7f3-6674e31f1679", "path"=>"/one/two%20three"}
|
2688
|
+
[1m[35mTrack302::Link Load (0.0ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2692
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2694
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2695
|
+
[1m[35mFixture Insert (0.4ms)[0m 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
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:21', '2016-01-11 04:16:21', 298486374)[0m
|
2697
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2698
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2699
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
2701
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2702
|
+
----------------------------------------------------------------------------
|
2703
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2704
|
+
----------------------------------------------------------------------------
|
2705
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2706
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"]]
|
2707
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "1e62deba-cd35-4fff-afbd-0a43094abd11"]]
|
2712
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2713
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2718
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2719
|
+
-----------------------------------------------------------------
|
2720
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2721
|
+
-----------------------------------------------------------------
|
2722
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2723
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0afb902f-360f-48d0-b60c-513de7f415a8"]]
|
2724
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2732
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2733
|
+
----------------------------------------------------------------------
|
2734
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2735
|
+
----------------------------------------------------------------------
|
2736
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2737
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
|
2738
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2740
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
|
2744
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2745
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "0cc0d618-e3aa-4e76-bdcf-5dd9915fedbd"]]
|
2750
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2751
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2752
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2754
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2755
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:26', '2016-01-11 04:16:26', 298486374)[0m
|
2757
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2758
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
2759
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
2761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2762
|
+
----------------------------------------------------------------------------
|
2763
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2764
|
+
----------------------------------------------------------------------------
|
2765
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2766
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"]]
|
2767
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "1b2054c4-3cb1-4db0-82db-d212e149b4f7"]]
|
2772
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2773
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2778
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2779
|
+
-----------------------------------------------------------------
|
2780
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2781
|
+
-----------------------------------------------------------------
|
2782
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2783
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0212d76d-1b08-4469-a9e3-9a9bd1da8c22"]]
|
2784
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2792
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2793
|
+
----------------------------------------------------------------------
|
2794
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2795
|
+
----------------------------------------------------------------------
|
2796
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2797
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
|
2798
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2800
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
|
2804
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2805
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "d21fe878-5af7-4710-a220-f0a7b8991260"]]
|
2810
|
+
[1m[35mTrack302::Click Load (0.2ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2811
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
2812
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2813
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2814
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2815
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:16:29', '2016-01-11 04:16:29', 298486374)[0m
|
2817
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2818
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2819
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
2821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2822
|
+
------------------------------------------
|
2823
|
+
Track302::LinkTest: test_autogenerate_uuid
|
2824
|
+
------------------------------------------
|
2825
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2826
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3ad26c21-107e-43c9-b947-6c6f7bd691a9"]]
|
2827
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2829
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2830
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2831
|
+
--------------------------------------------
|
2832
|
+
Track302::LinkTest: test_stores_original_url
|
2833
|
+
--------------------------------------------
|
2834
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2835
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "df06a87d-cdc7-4cd5-ac5c-13b716ac4a8b"]]
|
2836
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2838
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2839
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2840
|
+
-----------------------------------------------------------
|
2841
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
2842
|
+
-----------------------------------------------------------
|
2843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2844
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "bedaa479-4604-4dec-8c5c-ab24b9dc4c2b"]]
|
2845
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2848
|
+
[1m[35mTrack302::Link Load (0.0ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "0c215e6a-7d98-4f5e-a52c-51ab32620982"]]
|
2849
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2851
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2852
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2853
|
+
------------------------
|
2854
|
+
Track302Test: test_truth
|
2855
|
+
------------------------
|
2856
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2857
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2858
|
+
----------------------------------------------------------------------
|
2859
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2860
|
+
----------------------------------------------------------------------
|
2861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2862
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
|
2863
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2865
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
|
2869
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2870
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2872
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2873
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
2874
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "9f1ae3f0-c6ec-4e73-9822-bc9141971f15"]]
|
2875
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
2876
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2877
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2878
|
+
----------------------------------------------------------------------------
|
2879
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2880
|
+
----------------------------------------------------------------------------
|
2881
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2882
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"]]
|
2883
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2885
|
+
Processing by Track302::RedirectController#show as HTML
|
2886
|
+
Parameters: {"uuid"=>"7e4a9d21-7940-4109-a5d6-c045c1f714e4", "path"=>"/one/two%20three"}
|
2887
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "7e4a9d21-7940-4109-a5d6-c045c1f714e4"]]
|
2888
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2889
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2891
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2892
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
2893
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2894
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2895
|
+
-----------------------------------------------------------------
|
2896
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2897
|
+
-----------------------------------------------------------------
|
2898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2899
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "76e65370-a96f-4482-8c3c-b7328d4b1ca4"]]
|
2900
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2902
|
+
Processing by Track302::RedirectController#show as HTML
|
2903
|
+
Parameters: {"uuid"=>"wrong76e65370-a96f-4482-8c3c-b7328d4b1ca4", "path"=>"/one/two%20three"}
|
2904
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2908
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2909
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2910
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2911
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:17:54', '2016-01-11 04:17:54', 298486374)[0m
|
2913
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2914
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT 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)[0m
|
2915
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
2917
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2918
|
+
-----------------------------------------------------------------
|
2919
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
2920
|
+
-----------------------------------------------------------------
|
2921
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2922
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "e6cf6d43-ff40-448b-baea-3325ebe3213e"]]
|
2923
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2931
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2932
|
+
----------------------------------------------------------------------------
|
2933
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
2934
|
+
----------------------------------------------------------------------------
|
2935
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2936
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"]]
|
2937
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2939
|
+
Processing by Track302::RedirectController#show as HTML
|
2940
|
+
Parameters: {"uuid"=>"2967e62a-090e-4158-8298-999ed6e3dee4", "path"=>"/one/two%20three"}
|
2941
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "2967e62a-090e-4158-8298-999ed6e3dee4"]]
|
2942
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2943
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2945
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2946
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
|
2947
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2948
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2949
|
+
----------------------------------------------------------------------
|
2950
|
+
Track302::RedirectControllerTest: test_should_track_click_through_data
|
2951
|
+
----------------------------------------------------------------------
|
2952
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2953
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
|
2954
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2956
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
|
2960
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2961
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "01b6dfa2-2e24-4c9c-8c0d-cd4659f833f4"]]
|
2966
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
2967
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2968
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2970
|
+
[1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
2971
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:18:18', '2016-01-11 04:18:18', 298486374)[0m
|
2973
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
2974
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
2975
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (8.9ms)[0m [1mcommit transaction[0m
|
2977
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2978
|
+
---------------------------------------------------------------------
|
2979
|
+
Track302::RedirectControllerTest: test_should_track_clickthrough_data
|
2980
|
+
---------------------------------------------------------------------
|
2981
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2982
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
|
2983
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2985
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
|
2989
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2990
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2992
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
2993
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
2994
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "82f525ba-d035-42b7-a483-9cd076baca8b"]]
|
2995
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
2996
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2997
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2998
|
+
-----------------------------------------------------------------
|
2999
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
3000
|
+
-----------------------------------------------------------------
|
3001
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3002
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "066facd1-6b9e-4aad-ba57-4ed22ed0a7f3"]]
|
3003
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3005
|
+
Processing by Track302::RedirectController#show as HTML
|
3006
|
+
Parameters: {"uuid"=>"wrong066facd1-6b9e-4aad-ba57-4ed22ed0a7f3", "path"=>"/one/two%20three"}
|
3007
|
+
[1m[35mTrack302::Link Load (0.0ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
3011
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3012
|
+
----------------------------------------------------------------------------
|
3013
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
3014
|
+
----------------------------------------------------------------------------
|
3015
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3016
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"]]
|
3017
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "39ab5b23-8a53-4026-97d9-36a95b3c6152"]]
|
3022
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3023
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3028
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3029
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3030
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
3031
|
+
[1m[35mFixture Insert (0.7ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:18:27', '2016-01-11 04:18:27', 298486374)[0m
|
3033
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "track302_links"
|
3034
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
3035
|
+
[1m[35mFixture Insert (0.0ms)[0m 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
|
+
[1m[36m (8.8ms)[0m [1mcommit transaction[0m
|
3037
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3038
|
+
------------------------------------------
|
3039
|
+
Track302::LinkTest: test_autogenerate_uuid
|
3040
|
+
------------------------------------------
|
3041
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3042
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cc51ed32-1582-443f-9abe-9f92fdd34592"]]
|
3043
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3045
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
3046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3047
|
+
-----------------------------------------------------------
|
3048
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
3049
|
+
-----------------------------------------------------------
|
3050
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3051
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3165e3a5-d357-4ae0-acff-3700a2ae9721"]]
|
3052
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3054
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3055
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "3d787b69-2c4f-4e7b-8843-379a42d719bf"]]
|
3056
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3058
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3059
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3060
|
+
--------------------------------------------
|
3061
|
+
Track302::LinkTest: test_stores_original_url
|
3062
|
+
--------------------------------------------
|
3063
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3064
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "cfa9e2b7-888f-4f87-8016-1ec5bafe7f16"]]
|
3065
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3067
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3069
|
+
-----------------------------------------------------------------
|
3070
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
3071
|
+
-----------------------------------------------------------------
|
3072
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3073
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "90d15d47-2db1-40f6-aa19-fe14a46b26cb"]]
|
3074
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["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
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
3082
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3083
|
+
---------------------------------------------------------------------
|
3084
|
+
Track302::RedirectControllerTest: test_should_track_clickthrough_data
|
3085
|
+
---------------------------------------------------------------------
|
3086
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3087
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
|
3088
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3090
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
|
3094
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3095
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["uuid", "46a91cbf-ed74-4db0-9ef2-1b2ed861fe14"]]
|
3100
|
+
[1m[35mTrack302::Click Load (0.1ms)[0m SELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1
|
3101
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3102
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3103
|
+
----------------------------------------------------------------------------
|
3104
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
3105
|
+
----------------------------------------------------------------------------
|
3106
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3107
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"]]
|
3108
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "99ac4e5b-902f-4c51-9be8-8f34ce2ec8f4"]]
|
3113
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3114
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
3119
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3120
|
+
------------------------
|
3121
|
+
Track302Test: test_truth
|
3122
|
+
------------------------
|
3123
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3125
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3126
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "track302_clicks"[0m
|
3127
|
+
[1m[35mFixture Insert (0.6ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "created_at", "updated_at", "id") VALUES ('b7e563a0ce1c4b70b74cf687f4cce9020879cd4f', '2016-01-11 04:21:04', '2016-01-11 04:21:04', 298486374)[0m
|
3129
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "track302_links"
|
3130
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
3131
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
3133
|
+
[1m[35m (0.0ms)[0m begin transaction
|
3134
|
+
------------------------
|
3135
|
+
Track302Test: test_truth
|
3136
|
+
------------------------
|
3137
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
3138
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3139
|
+
---------------------------------------------------------------------
|
3140
|
+
Track302::RedirectControllerTest: test_should_track_clickthrough_data
|
3141
|
+
---------------------------------------------------------------------
|
3142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3143
|
+
[1m[35mTrack302::Link Load (0.2ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
|
3144
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3146
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ?[0m [["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
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
|
3150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3151
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3153
|
+
Redirected to http://www.google.com/one/two%20three?q=123#anchor456
|
3154
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
3155
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "track302_clicks" WHERE "track302_clicks"."uuid" = ? [["uuid", "19e4c722-f128-49e6-88d9-1bed97022853"]]
|
3156
|
+
[1m[36mTrack302::Click Load (0.1ms)[0m [1mSELECT "track302_clicks".* FROM "track302_clicks" ORDER BY "track302_clicks"."id" DESC LIMIT 1[0m
|
3157
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
3158
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3159
|
+
-----------------------------------------------------------------
|
3160
|
+
Track302::RedirectControllerTest: test_should_404_on_unknown_link
|
3161
|
+
-----------------------------------------------------------------
|
3162
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3163
|
+
[1m[36mTrack302::Link Load (0.2ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "a595bb42-15d3-4aac-9880-cf63c09c3ee7"]]
|
3164
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3166
|
+
Processing by Track302::RedirectController#show as HTML
|
3167
|
+
Parameters: {"uuid"=>"wronga595bb42-15d3-4aac-9880-cf63c09c3ee7", "path"=>"/one/two%20three"}
|
3168
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m 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
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
3172
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3173
|
+
----------------------------------------------------------------------------
|
3174
|
+
Track302::RedirectControllerTest: test_should_get_redirected_to_original_url
|
3175
|
+
----------------------------------------------------------------------------
|
3176
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3177
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"]]
|
3178
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mTrack302::Link Load (0.1ms)[0m [1mSELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1[0m [["uuid", "96a1fe33-ac26-4ad6-b793-a508d38b5bb7"]]
|
3183
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3184
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "track302_clicks" ("uuid", "data", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
3189
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3190
|
+
------------------------------------------
|
3191
|
+
Track302::LinkTest: test_autogenerate_uuid
|
3192
|
+
------------------------------------------
|
3193
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3194
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "fb149dec-f9fa-4afb-abda-cc2b65b5e887"]]
|
3195
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3197
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
3198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3199
|
+
-----------------------------------------------------------
|
3200
|
+
Track302::LinkTest: test_autogenerate_uuid_even_if_provided
|
3201
|
+
-----------------------------------------------------------
|
3202
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3203
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "f28c5330-f283-46b9-b96c-3b1617b6cfda"]]
|
3204
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3207
|
+
[1m[35mTrack302::Link Load (0.0ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "552bf98d-66ed-4561-b8f3-1b965d72ab62"]]
|
3208
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "track302_links" ("original", "uuid", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3210
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
3211
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3212
|
+
--------------------------------------------
|
3213
|
+
Track302::LinkTest: test_stores_original_url
|
3214
|
+
--------------------------------------------
|
3215
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3216
|
+
[1m[35mTrack302::Link Load (0.1ms)[0m SELECT "track302_links".* FROM "track302_links" WHERE "track302_links"."uuid" = ? LIMIT 1 [["uuid", "b9c69d5a-0ae3-4945-9008-308bc5f622a2"]]
|
3217
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "track302_links" ("original", "created_at", "updated_at", "uuid") VALUES (?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3219
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|