dismissible_blocks 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +5 -5
  2. data/{LICENSE.text → LICENSE.txt} +0 -0
  3. data/{README.markdown → README.md} +0 -0
  4. data/app/controllers/dismissible_blocks_controller.rb +2 -2
  5. data/app/helpers/dismissible_blocks_helper.rb +1 -1
  6. data/dismissible_blocks.gemspec +33 -0
  7. data/lib/dismissible_blocks/version.rb +1 -1
  8. metadata +35 -126
  9. data/Gemfile +0 -7
  10. data/Rakefile +0 -34
  11. data/test/capybara_helper.rb +0 -34
  12. data/test/controllers/dismissible_blocks_controller_test.rb +0 -18
  13. data/test/dummy/Rakefile +0 -3
  14. data/test/dummy/app/assets/javascripts/application.js +0 -3
  15. data/test/dummy/app/assets/stylesheets/application.css +0 -17
  16. data/test/dummy/app/controllers/application_controller.rb +0 -29
  17. data/test/dummy/app/controllers/landings_controller.rb +0 -6
  18. data/test/dummy/app/controllers/sessions_controller.rb +0 -28
  19. data/test/dummy/app/helpers/application_helper.rb +0 -2
  20. data/test/dummy/app/helpers/landings_helper.rb +0 -2
  21. data/test/dummy/app/helpers/sessions_helper.rb +0 -2
  22. data/test/dummy/app/models/user.rb +0 -9
  23. data/test/dummy/app/views/landings/show.html.erb +0 -10
  24. data/test/dummy/app/views/layouts/application.html.erb +0 -18
  25. data/test/dummy/app/views/sessions/new.html.erb +0 -15
  26. data/test/dummy/bin/bundle +0 -3
  27. data/test/dummy/bin/rails +0 -4
  28. data/test/dummy/bin/rake +0 -4
  29. data/test/dummy/bin/setup +0 -29
  30. data/test/dummy/config.ru +0 -3
  31. data/test/dummy/config/application.rb +0 -13
  32. data/test/dummy/config/boot.rb +0 -4
  33. data/test/dummy/config/database.yml +0 -11
  34. data/test/dummy/config/environment.rb +0 -3
  35. data/test/dummy/config/environments/development.rb +0 -12
  36. data/test/dummy/config/environments/test.rb +0 -13
  37. data/test/dummy/config/initializers/assets.rb +0 -1
  38. data/test/dummy/config/initializers/cookies_serializer.rb +0 -1
  39. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -1
  40. data/test/dummy/config/initializers/session_store.rb +0 -1
  41. data/test/dummy/config/initializers/wrap_parameters.rb +0 -3
  42. data/test/dummy/config/routes.rb +0 -7
  43. data/test/dummy/config/secrets.yml +0 -5
  44. data/test/dummy/db/migrate/20140303154458_create_users.rb +0 -10
  45. data/test/dummy/db/migrate/20140303161500_add_dismissed_blocks_to_users.rb +0 -9
  46. data/test/dummy/db/schema.rb +0 -24
  47. data/test/dummy/db/test.sqlite3 +0 -0
  48. data/test/dummy/log/test.log +0 -442
  49. data/test/dummy/public/404.html +0 -67
  50. data/test/dummy/public/422.html +0 -67
  51. data/test/dummy/public/500.html +0 -66
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  54. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  55. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  56. data/test/dummy/tmp/cache/assets/test/sprockets/58a8328804a777933d757eb9a448eaf5 +0 -0
  57. data/test/dummy/tmp/cache/assets/test/sprockets/68b2c32b107dd99071629b05c392d6cd +0 -0
  58. data/test/dummy/tmp/cache/assets/test/sprockets/96c147c638b08a4c0178d9c66c3b9c48 +0 -0
  59. data/test/dummy/tmp/cache/assets/test/sprockets/a303e31a3b163f257d2061cd9abb98d2 +0 -0
  60. data/test/dummy/tmp/cache/assets/test/sprockets/ac2d5385dbcd9cea11c510dc83189bba +0 -0
  61. data/test/dummy/tmp/cache/assets/test/sprockets/bec12e1e92fe458e19b5f9869454ac1a +0 -0
  62. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  63. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  64. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  65. data/test/features/dismissible_blocks_test.rb +0 -21
  66. data/test/fixtures/users.yml +0 -9
  67. data/test/helpers/dismissible_blocks_helper_test.rb +0 -73
  68. data/test/lib/controllers/helpers_test.rb +0 -14
  69. data/test/test_helper.rb +0 -8
@@ -1,28 +0,0 @@
1
- class SessionsController < ApplicationController
2
- before_filter :check_authentication, only: :destroy
3
-
4
- def new
5
- if authenticated?
6
- flash[:notice] = 'You are already logged in.'
7
- redirect_to landing_url
8
- end
9
- end
10
-
11
- def create
12
- user = User.authenticate params[:username], params[:password]
13
- if user
14
- signin user.username
15
- flash[:notice] = 'You have been logged in.'
16
- redirect_to landing_url
17
- else
18
- flash.now[:alert] = 'Your username and/or password are incorrect.'
19
- render :new
20
- end
21
- end
22
-
23
- def destroy
24
- signout
25
- flash[:notice] = 'You have been logged out.'
26
- redirect_to login_url
27
- end
28
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module LandingsHelper
2
- end
@@ -1,2 +0,0 @@
1
- module SessionsHelper
2
- end
@@ -1,9 +0,0 @@
1
- class User < ActiveRecord::Base
2
- serialize :dismissed_blocks, Array
3
-
4
- validates :username, uniqueness: true
5
-
6
- def self.authenticate(username, password)
7
- User.find_by username: username, password: password
8
- end
9
- end
@@ -1,10 +0,0 @@
1
- <h1>Dummy</h1>
2
-
3
- <%= render_dismissible_block 'lorem' do %>
4
- <div class="block" data-dismissible>
5
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras vitae.</p>
6
- <p><a href="#" data-dismissible-hide>Hide</a></p>
7
- </div>
8
- <% end %>
9
-
10
- <p><%= link_to 'Logout', logout_path %></p>
@@ -1,18 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application' %>
6
- <%= javascript_include_tag 'application' %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
- <% flash.each do |name, message| %>
11
- <%= content_tag :p, class: "flash flash-#{name}" do %>
12
- <%= message %>
13
- <% end %>
14
- <% end %>
15
-
16
- <%= yield %>
17
- </body>
18
- </html>
@@ -1,15 +0,0 @@
1
- <%= form_tag login_path do %>
2
- <p>
3
- <%= label_tag :username %>
4
- <%= text_field_tag :username, params[:username] %>
5
- </p>
6
-
7
- <p>
8
- <%= label_tag :password %>
9
- <%= password_field_tag :password %>
10
- </p>
11
-
12
- <p>
13
- <%= submit_tag 'Login' %>
14
- </p>
15
- <% end %>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
data/test/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/test/dummy/bin/setup DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
data/test/dummy/config.ru DELETED
@@ -1,3 +0,0 @@
1
- require ::File.expand_path('../config/environment', __FILE__)
2
-
3
- run Rails.application
@@ -1,13 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
- require 'rails/all'
3
-
4
- Bundler.require(*Rails.groups)
5
- require 'dismissible_blocks'
6
-
7
- module Dummy
8
- class Unauthorized < StandardError; end
9
-
10
- class Application < Rails::Application
11
- config.active_record.raise_in_transactional_callbacks = true
12
- end
13
- end
@@ -1,4 +0,0 @@
1
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
2
-
3
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
4
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,11 +0,0 @@
1
- development:
2
- adapter: sqlite3
3
- database: db/development.sqlite3
4
- pool: 5
5
- timeout: 5000
6
-
7
- test:
8
- adapter: sqlite3
9
- database: db/test.sqlite3
10
- pool: 5
11
- timeout: 5000
@@ -1,3 +0,0 @@
1
- require File.expand_path('../application', __FILE__)
2
-
3
- Rails.application.initialize!
@@ -1,12 +0,0 @@
1
- Rails.application.configure do
2
- config.cache_classes = false
3
- config.eager_load = false
4
- config.consider_all_requests_local = true
5
- config.action_controller.perform_caching = false
6
- config.action_mailer.raise_delivery_errors = false
7
- config.active_support.deprecation = :log
8
- config.active_record.migration_error = :page_load
9
- config.assets.debug = true
10
- config.assets.digest = true
11
- config.assets.raise_runtime_errors = true
12
- end
@@ -1,13 +0,0 @@
1
- Rails.application.configure do
2
- config.cache_classes = true
3
- config.eager_load = false
4
- config.serve_static_files = true
5
- config.static_cache_control = 'public, max-age=3600'
6
- config.consider_all_requests_local = true
7
- config.action_controller.perform_caching = false
8
- config.action_dispatch.show_exceptions = false
9
- config.action_controller.allow_forgery_protection = false
10
- config.action_mailer.delivery_method = :test
11
- config.active_support.test_order = :random
12
- config.active_support.deprecation = :stderr
13
- end
@@ -1 +0,0 @@
1
- Rails.application.config.assets.version = '1.0'
@@ -1 +0,0 @@
1
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1 +0,0 @@
1
- Rails.application.config.filter_parameters += [:password]
@@ -1 +0,0 @@
1
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,3 +0,0 @@
1
- ActiveSupport.on_load(:action_controller) do
2
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
3
- end
@@ -1,7 +0,0 @@
1
- Rails.application.routes.draw do
2
- root to: redirect('/login')
3
- get 'login' => 'sessions#new'
4
- post 'login' => 'sessions#create'
5
- get 'logout' => 'sessions#destroy'
6
- resource :landing, only: [:show]
7
- end
@@ -1,5 +0,0 @@
1
- development:
2
- secret_key_base: lorem_ipsum
3
-
4
- test:
5
- secret_key_base: ipsum_lorem
@@ -1,10 +0,0 @@
1
- class CreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table :users do |t|
4
- t.string :username
5
- t.string :password
6
-
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,9 +0,0 @@
1
- class AddDismissedBlocksToUsers < ActiveRecord::Migration
2
- def up
3
- add_column :users, :dismissed_blocks, :text
4
- end
5
-
6
- def down
7
- remove_column :users, :dismissed_blocks
8
- end
9
- end
@@ -1,24 +0,0 @@
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: 20140303161500) do
15
-
16
- create_table "users", force: true do |t|
17
- t.string "username"
18
- t.string "password"
19
- t.datetime "created_at"
20
- t.datetime "updated_at"
21
- t.text "dismissed_blocks"
22
- end
23
-
24
- end
Binary file
@@ -1,442 +0,0 @@
1
-  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) 
2
-  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
-  (0.1ms) select sqlite_version(*)
4
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
-  (0.1ms) SELECT version FROM "schema_migrations"
6
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
7
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303154458')
8
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
-  (0.1ms) begin transaction
10
- Fixture Delete (0.2ms) DELETE FROM "users"
11
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('john', 'lorem', NULL, '2015-02-26 17:00:16', '2015-02-26 17:00:16', 980190962)
12
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('mike', 'ipsum', '---
13
- - lorem
14
- ', '2015-02-26 17:00:16', '2015-02-26 17:00:16', 298486374)
15
-  (0.6ms) commit transaction
16
-  (0.0ms) begin transaction
17
- ------------------------------------------------------------
18
- DismissibleBlocksTest: test_block_is_displayed_and_dismissed
19
- ------------------------------------------------------------
20
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
21
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:00:18 -0500
22
- Processing by SessionsController#new as HTML
23
- Rendered sessions/new.html.erb within layouts/application (2.3ms)
24
- Completed 200 OK in 36ms (Views: 29.4ms | ActiveRecord: 0.0ms)
25
- Started GET "/assets/application.css" for 127.0.0.1 at 2015-02-26 12:00:18 -0500
26
- Started GET "/assets/application.js" for 127.0.0.1 at 2015-02-26 12:00:18 -0500
27
- Started POST "/login" for 127.0.0.1 at 2015-02-26 12:00:18 -0500
28
- Processing by SessionsController#create as HTML
29
- Parameters: {"utf8"=>"✓", "username"=>"john", "password"=>"[FILTERED]", "commit"=>"Login"}
30
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1 [["username", "john"], ["password", "lorem"]]
31
- Redirected to http://127.0.0.1:62057/landing
32
- Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
33
- Started GET "/landing" for 127.0.0.1 at 2015-02-26 12:00:18 -0500
34
- Processing by LandingsController#show as HTML
35
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
36
- Rendered landings/show.html.erb within layouts/application (2.4ms)
37
- Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms)
38
- Started POST "/dismissible_blocks.json" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
39
- Processing by DismissibleBlocksController#create as JSON
40
- Parameters: {"block"=>"lorem", "dismissible_block"=>{"block"=>"lorem"}}
41
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
42
-  (0.1ms) SAVEPOINT active_record_1
43
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
44
- SQL (0.2ms) UPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ? [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:00:19.054600"], ["id", 980190962]]
45
-  (0.1ms) RELEASE SAVEPOINT active_record_1
46
- Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.6ms)
47
- Started GET "/logout" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
48
- Processing by SessionsController#destroy as HTML
49
- Redirected to http://127.0.0.1:62057/login
50
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
51
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
52
- Processing by SessionsController#new as HTML
53
- Rendered sessions/new.html.erb within layouts/application (0.4ms)
54
- Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
55
-  (1.7ms) rollback transaction
56
-  (0.1ms) begin transaction
57
- ---------------------------------------------------------------------
58
- DismissibleBlocksTest: test_block_is_not_displayed;_already_dismissed
59
- ---------------------------------------------------------------------
60
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
61
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
62
- Processing by SessionsController#new as HTML
63
- Rendered sessions/new.html.erb within layouts/application (0.6ms)
64
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
65
- Started POST "/login" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
66
- Processing by SessionsController#create as HTML
67
- Parameters: {"utf8"=>"✓", "username"=>"mike", "password"=>"[FILTERED]", "commit"=>"Login"}
68
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1 [["username", "mike"], ["password", "ipsum"]]
69
- Redirected to http://127.0.0.1:62057/landing
70
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
71
- Started GET "/landing" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
72
- Processing by LandingsController#show as HTML
73
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "mike"]]
74
- Rendered landings/show.html.erb within layouts/application (0.6ms)
75
- Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
76
- Started GET "/logout" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
77
- Processing by SessionsController#destroy as HTML
78
- Redirected to http://127.0.0.1:62057/login
79
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
80
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:00:19 -0500
81
- Processing by SessionsController#new as HTML
82
- Rendered sessions/new.html.erb within layouts/application (0.4ms)
83
- Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
84
-  (0.1ms) rollback transaction
85
-  (0.0ms) begin transaction
86
- ---------------------------------------------------------------------------------------
87
- DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
88
- ---------------------------------------------------------------------------------------
89
-  (0.0ms) rollback transaction
90
-  (0.0ms) begin transaction
91
- -------------------------------------------------------------------------------------------
92
- DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
93
- -------------------------------------------------------------------------------------------
94
-  (0.0ms) rollback transaction
95
-  (0.0ms) begin transaction
96
- ------------------------------------------------------------------
97
- DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
98
- ------------------------------------------------------------------
99
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
100
-  (0.0ms) rollback transaction
101
-  (0.0ms) begin transaction
102
- --------------------------------------------------------------------
103
- DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
104
- --------------------------------------------------------------------
105
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
106
-  (0.0ms) rollback transaction
107
-  (0.0ms) begin transaction
108
- -------------------------------------------------------------------------------
109
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
110
- -------------------------------------------------------------------------------
111
-  (0.1ms) rollback transaction
112
-  (0.0ms) begin transaction
113
- -----------------------------------------------------------------------------
114
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
115
- -----------------------------------------------------------------------------
116
-  (0.0ms) rollback transaction
117
-  (0.0ms) begin transaction
118
- ---------------------------------------------------------------------------
119
- DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
120
- ---------------------------------------------------------------------------
121
-  (0.1ms) rollback transaction
122
-  (0.0ms) begin transaction
123
- -------------------------------------------------------------------------
124
- DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
125
- -------------------------------------------------------------------------
126
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
127
-  (0.1ms) rollback transaction
128
-  (0.1ms) begin transaction
129
- --------------------------------------------------------------
130
- DismissibleBlocksHelperTest: test_omit_block_because_dismissed
131
- --------------------------------------------------------------
132
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
133
-  (0.0ms) rollback transaction
134
-  (0.0ms) begin transaction
135
- ----------------------------------------------------------------------------------
136
- DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
137
- ----------------------------------------------------------------------------------
138
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
139
-  (0.0ms) rollback transaction
140
-  (0.0ms) begin transaction
141
- ------------------------------------------------------------------------------------------
142
- DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
143
- ------------------------------------------------------------------------------------------
144
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
145
-  (0.0ms) rollback transaction
146
-  (0.0ms) begin transaction
147
- ---------------------------------------------------------------------------------
148
- DismissibleBlocksControllerTest: test_dismiss_block_fails_via_ajax;_not_logged_in
149
- ---------------------------------------------------------------------------------
150
- Processing by DismissibleBlocksController#create as JSON
151
- Parameters: {"block"=>"lorem"}
152
- Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
153
-  (0.1ms) rollback transaction
154
-  (0.0ms) begin transaction
155
- ------------------------------------------------------------
156
- DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
157
- ------------------------------------------------------------
158
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
159
- Processing by DismissibleBlocksController#create as JSON
160
- Parameters: {"block"=>"lorem"}
161
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
162
-  (0.0ms) SAVEPOINT active_record_1
163
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
164
- SQL (0.2ms) UPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ? [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:00:19.834843"], ["id", 980190962]]
165
-  (0.0ms) RELEASE SAVEPOINT active_record_1
166
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
167
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
168
-  (0.3ms) rollback transaction
169
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
170
-  (1.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) 
171
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
172
-  (0.1ms) select sqlite_version(*)
173
-  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
174
-  (0.1ms) SELECT version FROM "schema_migrations"
175
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
176
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303154458')
177
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
178
-  (0.1ms) begin transaction
179
- Fixture Delete (0.3ms) DELETE FROM "users"
180
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('john', 'lorem', NULL, '2015-02-26 17:00:35', '2015-02-26 17:00:35', 980190962)
181
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('mike', 'ipsum', '---
182
- - lorem
183
- ', '2015-02-26 17:00:35', '2015-02-26 17:00:35', 298486374)
184
-  (0.6ms) commit transaction
185
-  (0.0ms) begin transaction
186
- ------------------------------------------------------------
187
- DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
188
- ------------------------------------------------------------
189
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
190
- Processing by DismissibleBlocksController#create as JSON
191
- Parameters: {"block"=>"lorem"}
192
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
193
-  (0.0ms) SAVEPOINT active_record_1
194
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
195
- SQL (0.2ms) UPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ? [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:00:35.148541"], ["id", 980190962]]
196
-  (0.0ms) RELEASE SAVEPOINT active_record_1
197
- Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.5ms)
198
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
199
-  (0.3ms) rollback transaction
200
-  (0.0ms) begin transaction
201
- ---------------------------------------------------------------------------------
202
- DismissibleBlocksControllerTest: test_dismiss_block_fails_via_ajax;_not_logged_in
203
- ---------------------------------------------------------------------------------
204
- Processing by DismissibleBlocksController#create as JSON
205
- Parameters: {"block"=>"lorem"}
206
- Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
207
-  (0.1ms) rollback transaction
208
-  (0.1ms) begin transaction
209
- ------------------------------------------------------------------------------------------
210
- DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
211
- ------------------------------------------------------------------------------------------
212
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
213
-  (0.1ms) rollback transaction
214
-  (0.0ms) begin transaction
215
- -------------------------------------------------------------------------------
216
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
217
- -------------------------------------------------------------------------------
218
-  (0.0ms) rollback transaction
219
-  (0.0ms) begin transaction
220
- --------------------------------------------------------------
221
- DismissibleBlocksHelperTest: test_omit_block_because_dismissed
222
- --------------------------------------------------------------
223
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
224
-  (0.0ms) rollback transaction
225
-  (0.0ms) begin transaction
226
- ---------------------------------------------------------------------------
227
- DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
228
- ---------------------------------------------------------------------------
229
-  (0.0ms) rollback transaction
230
-  (0.1ms) begin transaction
231
- ------------------------------------------------------------------
232
- DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
233
- ------------------------------------------------------------------
234
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
235
-  (0.1ms) rollback transaction
236
-  (0.1ms) begin transaction
237
- ----------------------------------------------------------------------------------
238
- DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
239
- ----------------------------------------------------------------------------------
240
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
241
-  (0.1ms) rollback transaction
242
-  (0.0ms) begin transaction
243
- --------------------------------------------------------------------
244
- DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
245
- --------------------------------------------------------------------
246
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
247
-  (0.1ms) rollback transaction
248
-  (0.0ms) begin transaction
249
- -----------------------------------------------------------------------------
250
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
251
- -----------------------------------------------------------------------------
252
-  (0.0ms) rollback transaction
253
-  (0.0ms) begin transaction
254
- -------------------------------------------------------------------------
255
- DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
256
- -------------------------------------------------------------------------
257
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
258
-  (0.1ms) rollback transaction
259
-  (0.0ms) begin transaction
260
- ---------------------------------------------------------------------------------------
261
- DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
262
- ---------------------------------------------------------------------------------------
263
-  (0.0ms) rollback transaction
264
-  (0.1ms) begin transaction
265
- -------------------------------------------------------------------------------------------
266
- DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
267
- -------------------------------------------------------------------------------------------
268
-  (0.0ms) rollback transaction
269
-  (0.0ms) begin transaction
270
- ------------------------------------------------------------
271
- DismissibleBlocksTest: test_block_is_displayed_and_dismissed
272
- ------------------------------------------------------------
273
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
274
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
275
-  (1.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) 
276
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
277
-  (0.0ms) select sqlite_version(*)
278
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
279
-  (0.1ms) SELECT version FROM "schema_migrations"
280
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
281
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140303154458')
282
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
283
-  (0.1ms) begin transaction
284
- Fixture Delete (0.2ms) DELETE FROM "users"
285
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('john', 'lorem', NULL, '2015-02-26 17:01:11', '2015-02-26 17:01:11', 980190962)
286
- Fixture Insert (0.1ms) INSERT INTO "users" ("username", "password", "dismissed_blocks", "created_at", "updated_at", "id") VALUES ('mike', 'ipsum', '---
287
- - lorem
288
- ', '2015-02-26 17:01:11', '2015-02-26 17:01:11', 298486374)
289
-  (1.6ms) commit transaction
290
-  (0.1ms) begin transaction
291
- ----------------------------------------------------------------------------------
292
- DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
293
- ----------------------------------------------------------------------------------
294
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
295
-  (0.1ms) rollback transaction
296
-  (0.0ms) begin transaction
297
- --------------------------------------------------------------------
298
- DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
299
- --------------------------------------------------------------------
300
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
301
-  (0.1ms) rollback transaction
302
-  (0.0ms) begin transaction
303
- -------------------------------------------------------------------------
304
- DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
305
- -------------------------------------------------------------------------
306
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
307
-  (0.0ms) rollback transaction
308
-  (0.0ms) begin transaction
309
- -----------------------------------------------------------------------------
310
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
311
- -----------------------------------------------------------------------------
312
-  (0.0ms) rollback transaction
313
-  (0.0ms) begin transaction
314
- -------------------------------------------------------------------------------
315
- DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
316
- -------------------------------------------------------------------------------
317
-  (0.0ms) rollback transaction
318
-  (0.0ms) begin transaction
319
- ------------------------------------------------------------------------------------------
320
- DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
321
- ------------------------------------------------------------------------------------------
322
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
323
-  (0.0ms) rollback transaction
324
-  (0.0ms) begin transaction
325
- ---------------------------------------------------------------------------
326
- DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
327
- ---------------------------------------------------------------------------
328
-  (0.0ms) rollback transaction
329
-  (0.0ms) begin transaction
330
- --------------------------------------------------------------
331
- DismissibleBlocksHelperTest: test_omit_block_because_dismissed
332
- --------------------------------------------------------------
333
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
334
-  (0.0ms) rollback transaction
335
-  (0.0ms) begin transaction
336
- ------------------------------------------------------------------
337
- DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
338
- ------------------------------------------------------------------
339
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
340
-  (0.0ms) rollback transaction
341
-  (0.1ms) begin transaction
342
- ---------------------------------------------------------------------------------
343
- DismissibleBlocksControllerTest: test_dismiss_block_fails_via_ajax;_not_logged_in
344
- ---------------------------------------------------------------------------------
345
- Processing by DismissibleBlocksController#create as JSON
346
- Parameters: {"block"=>"lorem"}
347
- Completed 422 Unprocessable Entity in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
348
-  (0.0ms) rollback transaction
349
-  (0.0ms) begin transaction
350
- ------------------------------------------------------------
351
- DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
352
- ------------------------------------------------------------
353
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
354
- Processing by DismissibleBlocksController#create as JSON
355
- Parameters: {"block"=>"lorem"}
356
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
357
-  (0.0ms) SAVEPOINT active_record_1
358
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
359
- SQL (0.2ms) UPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ? [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:01:11.696473"], ["id", 980190962]]
360
-  (0.0ms) RELEASE SAVEPOINT active_record_1
361
- Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.5ms)
362
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
363
-  (0.3ms) rollback transaction
364
-  (0.0ms) begin transaction
365
- ---------------------------------------------------------------------------------------
366
- DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
367
- ---------------------------------------------------------------------------------------
368
-  (0.0ms) rollback transaction
369
-  (0.0ms) begin transaction
370
- -------------------------------------------------------------------------------------------
371
- DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
372
- -------------------------------------------------------------------------------------------
373
-  (0.0ms) rollback transaction
374
-  (0.0ms) begin transaction
375
- ------------------------------------------------------------
376
- DismissibleBlocksTest: test_block_is_displayed_and_dismissed
377
- ------------------------------------------------------------
378
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
379
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
380
- Processing by SessionsController#new as HTML
381
- Rendered sessions/new.html.erb within layouts/application (1.2ms)
382
- Completed 200 OK in 24ms (Views: 16.6ms | ActiveRecord: 0.0ms)
383
- Started GET "/assets/application.css" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
384
- Started GET "/assets/application.js" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
385
- Started POST "/login" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
386
- Processing by SessionsController#create as HTML
387
- Parameters: {"utf8"=>"✓", "username"=>"john", "password"=>"[FILTERED]", "commit"=>"Login"}
388
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1 [["username", "john"], ["password", "lorem"]]
389
- Redirected to http://127.0.0.1:62278/landing
390
- Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
391
- Started GET "/landing" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
392
- Processing by LandingsController#show as HTML
393
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
394
- Rendered landings/show.html.erb within layouts/application (1.0ms)
395
- Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)
396
- Started POST "/dismissible_blocks.json" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
397
- Processing by DismissibleBlocksController#create as JSON
398
- Parameters: {"block"=>"lorem", "dismissible_block"=>{"block"=>"lorem"}}
399
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
400
-  (0.1ms) SAVEPOINT active_record_1
401
- User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
402
- SQL (0.8ms) UPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ? [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:01:13.626497"], ["id", 980190962]]
403
-  (0.0ms) RELEASE SAVEPOINT active_record_1
404
- Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.0ms)
405
- Started GET "/logout" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
406
- Processing by SessionsController#destroy as HTML
407
- Redirected to http://127.0.0.1:62278/login
408
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
409
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
410
- Processing by SessionsController#new as HTML
411
- Rendered sessions/new.html.erb within layouts/application (1.0ms)
412
- Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
413
-  (0.4ms) rollback transaction
414
-  (0.0ms) begin transaction
415
- ---------------------------------------------------------------------
416
- DismissibleBlocksTest: test_block_is_not_displayed;_already_dismissed
417
- ---------------------------------------------------------------------
418
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
419
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:01:13 -0500
420
- Processing by SessionsController#new as HTML
421
- Rendered sessions/new.html.erb within layouts/application (0.9ms)
422
- Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
423
- Started POST "/login" for 127.0.0.1 at 2015-02-26 12:01:14 -0500
424
- Processing by SessionsController#create as HTML
425
- Parameters: {"utf8"=>"✓", "username"=>"mike", "password"=>"[FILTERED]", "commit"=>"Login"}
426
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1 [["username", "mike"], ["password", "ipsum"]]
427
- Redirected to http://127.0.0.1:62278/landing
428
- Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
429
- Started GET "/landing" for 127.0.0.1 at 2015-02-26 12:01:14 -0500
430
- Processing by LandingsController#show as HTML
431
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "mike"]]
432
- Rendered landings/show.html.erb within layouts/application (0.7ms)
433
- Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms)
434
- Started GET "/logout" for 127.0.0.1 at 2015-02-26 12:01:14 -0500
435
- Processing by SessionsController#destroy as HTML
436
- Redirected to http://127.0.0.1:62278/login
437
- Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
438
- Started GET "/login" for 127.0.0.1 at 2015-02-26 12:01:14 -0500
439
- Processing by SessionsController#new as HTML
440
- Rendered sessions/new.html.erb within layouts/application (0.4ms)
441
- Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
442
-  (0.1ms) rollback transaction