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.
- checksums.yaml +5 -5
- data/{LICENSE.text → LICENSE.txt} +0 -0
- data/{README.markdown → README.md} +0 -0
- data/app/controllers/dismissible_blocks_controller.rb +2 -2
- data/app/helpers/dismissible_blocks_helper.rb +1 -1
- data/dismissible_blocks.gemspec +33 -0
- data/lib/dismissible_blocks/version.rb +1 -1
- metadata +35 -126
- data/Gemfile +0 -7
- data/Rakefile +0 -34
- data/test/capybara_helper.rb +0 -34
- data/test/controllers/dismissible_blocks_controller_test.rb +0 -18
- data/test/dummy/Rakefile +0 -3
- data/test/dummy/app/assets/javascripts/application.js +0 -3
- data/test/dummy/app/assets/stylesheets/application.css +0 -17
- data/test/dummy/app/controllers/application_controller.rb +0 -29
- data/test/dummy/app/controllers/landings_controller.rb +0 -6
- data/test/dummy/app/controllers/sessions_controller.rb +0 -28
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/landings_helper.rb +0 -2
- data/test/dummy/app/helpers/sessions_helper.rb +0 -2
- data/test/dummy/app/models/user.rb +0 -9
- data/test/dummy/app/views/landings/show.html.erb +0 -10
- data/test/dummy/app/views/layouts/application.html.erb +0 -18
- data/test/dummy/app/views/sessions/new.html.erb +0 -15
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -3
- data/test/dummy/config/application.rb +0 -13
- data/test/dummy/config/boot.rb +0 -4
- data/test/dummy/config/database.yml +0 -11
- data/test/dummy/config/environment.rb +0 -3
- data/test/dummy/config/environments/development.rb +0 -12
- data/test/dummy/config/environments/test.rb +0 -13
- data/test/dummy/config/initializers/assets.rb +0 -1
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -1
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -1
- data/test/dummy/config/initializers/session_store.rb +0 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -3
- data/test/dummy/config/routes.rb +0 -7
- data/test/dummy/config/secrets.yml +0 -5
- data/test/dummy/db/migrate/20140303154458_create_users.rb +0 -10
- data/test/dummy/db/migrate/20140303161500_add_dismissed_blocks_to_users.rb +0 -9
- data/test/dummy/db/schema.rb +0 -24
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -442
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/58a8328804a777933d757eb9a448eaf5 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/68b2c32b107dd99071629b05c392d6cd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/96c147c638b08a4c0178d9c66c3b9c48 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/a303e31a3b163f257d2061cd9abb98d2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ac2d5385dbcd9cea11c510dc83189bba +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/bec12e1e92fe458e19b5f9869454ac1a +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/features/dismissible_blocks_test.rb +0 -21
- data/test/fixtures/users.yml +0 -9
- data/test/helpers/dismissible_blocks_helper_test.rb +0 -73
- data/test/lib/controllers/helpers_test.rb +0 -14
- 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,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 %>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
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,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
|
data/test/dummy/config/boot.rb
DELETED
@@ -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'
|
data/test/dummy/config/routes.rb
DELETED
data/test/dummy/db/schema.rb
DELETED
@@ -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
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
data/test/dummy/log/test.log
DELETED
@@ -1,442 +0,0 @@
|
|
1
|
-
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) [0m
|
2
|
-
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
3
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
-
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6
|
-
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
|
7
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303154458')[0m
|
8
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9
|
-
[1m[35m (0.1ms)[0m begin transaction
|
10
|
-
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "users"[0m
|
11
|
-
[1m[35mFixture Insert (0.1ms)[0m 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
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
15
|
-
[1m[35m (0.6ms)[0m commit transaction
|
16
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17
|
-
------------------------------------------------------------
|
18
|
-
DismissibleBlocksTest: test_block_is_displayed_and_dismissed
|
19
|
-
------------------------------------------------------------
|
20
|
-
[1m[35mUser Load (0.2ms)[0m 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
|
-
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1[0m [["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
|
-
[1m[35mUser Load (0.3ms)[0m 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
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1[0m [["username", "john"]]
|
42
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
43
|
-
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1[0m
|
44
|
-
[1m[35mSQL (0.2ms)[0m 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
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
-
[1m[35m (1.7ms)[0m rollback transaction
|
56
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
-
---------------------------------------------------------------------
|
58
|
-
DismissibleBlocksTest: test_block_is_not_displayed;_already_dismissed
|
59
|
-
---------------------------------------------------------------------
|
60
|
-
[1m[35mUser Load (0.1ms)[0m 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
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1[0m [["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
|
-
[1m[35mUser Load (0.0ms)[0m 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
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
85
|
-
[1m[35m (0.0ms)[0m begin transaction
|
86
|
-
---------------------------------------------------------------------------------------
|
87
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
|
88
|
-
---------------------------------------------------------------------------------------
|
89
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
90
|
-
[1m[35m (0.0ms)[0m begin transaction
|
91
|
-
-------------------------------------------------------------------------------------------
|
92
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
|
93
|
-
-------------------------------------------------------------------------------------------
|
94
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
95
|
-
[1m[35m (0.0ms)[0m begin transaction
|
96
|
-
------------------------------------------------------------------
|
97
|
-
DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
|
98
|
-
------------------------------------------------------------------
|
99
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
100
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
101
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
102
|
-
--------------------------------------------------------------------
|
103
|
-
DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
|
104
|
-
--------------------------------------------------------------------
|
105
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
106
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
107
|
-
[1m[35m (0.0ms)[0m begin transaction
|
108
|
-
-------------------------------------------------------------------------------
|
109
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
|
110
|
-
-------------------------------------------------------------------------------
|
111
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
112
|
-
[1m[35m (0.0ms)[0m begin transaction
|
113
|
-
-----------------------------------------------------------------------------
|
114
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
|
115
|
-
-----------------------------------------------------------------------------
|
116
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
117
|
-
[1m[35m (0.0ms)[0m begin transaction
|
118
|
-
---------------------------------------------------------------------------
|
119
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
|
120
|
-
---------------------------------------------------------------------------
|
121
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
122
|
-
[1m[35m (0.0ms)[0m begin transaction
|
123
|
-
-------------------------------------------------------------------------
|
124
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
|
125
|
-
-------------------------------------------------------------------------
|
126
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
127
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
128
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
129
|
-
--------------------------------------------------------------
|
130
|
-
DismissibleBlocksHelperTest: test_omit_block_because_dismissed
|
131
|
-
--------------------------------------------------------------
|
132
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 298486374]]
|
133
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
134
|
-
[1m[35m (0.0ms)[0m begin transaction
|
135
|
-
----------------------------------------------------------------------------------
|
136
|
-
DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
|
137
|
-
----------------------------------------------------------------------------------
|
138
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
139
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
140
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141
|
-
------------------------------------------------------------------------------------------
|
142
|
-
DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
|
143
|
-
------------------------------------------------------------------------------------------
|
144
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
145
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
146
|
-
[1m[35m (0.0ms)[0m 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
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
154
|
-
[1m[35m (0.0ms)[0m begin transaction
|
155
|
-
------------------------------------------------------------
|
156
|
-
DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
|
157
|
-
------------------------------------------------------------
|
158
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
159
|
-
Processing by DismissibleBlocksController#create as JSON
|
160
|
-
Parameters: {"block"=>"lorem"}
|
161
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
|
162
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
163
|
-
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
|
164
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:00:19.834843"], ["id", 980190962]]
|
165
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
166
|
-
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
|
167
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
168
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
169
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
170
|
-
[1m[36m (1.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) [0m
|
171
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
172
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
173
|
-
[1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
174
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
175
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
|
176
|
-
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303154458')[0m
|
177
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
178
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
179
|
-
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
180
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
181
|
-
[1m[35mFixture Insert (0.1ms)[0m 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
|
-
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
185
|
-
[1m[35m (0.0ms)[0m begin transaction
|
186
|
-
------------------------------------------------------------
|
187
|
-
DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
|
188
|
-
------------------------------------------------------------
|
189
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
190
|
-
Processing by DismissibleBlocksController#create as JSON
|
191
|
-
Parameters: {"block"=>"lorem"}
|
192
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
|
193
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
194
|
-
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
|
195
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:00:35.148541"], ["id", 980190962]]
|
196
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
197
|
-
Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
198
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
199
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
200
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
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
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
208
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
-
------------------------------------------------------------------------------------------
|
210
|
-
DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
|
211
|
-
------------------------------------------------------------------------------------------
|
212
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
213
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
214
|
-
[1m[35m (0.0ms)[0m begin transaction
|
215
|
-
-------------------------------------------------------------------------------
|
216
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
|
217
|
-
-------------------------------------------------------------------------------
|
218
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
219
|
-
[1m[35m (0.0ms)[0m begin transaction
|
220
|
-
--------------------------------------------------------------
|
221
|
-
DismissibleBlocksHelperTest: test_omit_block_because_dismissed
|
222
|
-
--------------------------------------------------------------
|
223
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 298486374]]
|
224
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
225
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
226
|
-
---------------------------------------------------------------------------
|
227
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
|
228
|
-
---------------------------------------------------------------------------
|
229
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
230
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
231
|
-
------------------------------------------------------------------
|
232
|
-
DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
|
233
|
-
------------------------------------------------------------------
|
234
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
235
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
236
|
-
[1m[35m (0.1ms)[0m begin transaction
|
237
|
-
----------------------------------------------------------------------------------
|
238
|
-
DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
|
239
|
-
----------------------------------------------------------------------------------
|
240
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
241
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
242
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
243
|
-
--------------------------------------------------------------------
|
244
|
-
DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
|
245
|
-
--------------------------------------------------------------------
|
246
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
247
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
248
|
-
[1m[35m (0.0ms)[0m begin transaction
|
249
|
-
-----------------------------------------------------------------------------
|
250
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
|
251
|
-
-----------------------------------------------------------------------------
|
252
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
253
|
-
[1m[35m (0.0ms)[0m begin transaction
|
254
|
-
-------------------------------------------------------------------------
|
255
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
|
256
|
-
-------------------------------------------------------------------------
|
257
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
258
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
259
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
260
|
-
---------------------------------------------------------------------------------------
|
261
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
|
262
|
-
---------------------------------------------------------------------------------------
|
263
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
264
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
265
|
-
-------------------------------------------------------------------------------------------
|
266
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
|
267
|
-
-------------------------------------------------------------------------------------------
|
268
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
269
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
270
|
-
------------------------------------------------------------
|
271
|
-
DismissibleBlocksTest: test_block_is_displayed_and_dismissed
|
272
|
-
------------------------------------------------------------
|
273
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
274
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
275
|
-
[1m[36m (1.6ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "password" varchar, "created_at" datetime, "updated_at" datetime, "dismissed_blocks" text) [0m
|
276
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
277
|
-
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
278
|
-
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
279
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
280
|
-
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303161500')
|
281
|
-
[1m[36m (0.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303154458')[0m
|
282
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
283
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
284
|
-
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
285
|
-
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
286
|
-
[1m[35mFixture Insert (0.1ms)[0m 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
|
-
[1m[36m (1.6ms)[0m [1mcommit transaction[0m
|
290
|
-
[1m[35m (0.1ms)[0m begin transaction
|
291
|
-
----------------------------------------------------------------------------------
|
292
|
-
DismissibleBlocksHelperTest: test_verify_block_name_added_to_html5_data_attributes
|
293
|
-
----------------------------------------------------------------------------------
|
294
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
295
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
296
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
297
|
-
--------------------------------------------------------------------
|
298
|
-
DismissibleBlocksHelperTest: test_render_block_because_not_dismissed
|
299
|
-
--------------------------------------------------------------------
|
300
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
301
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
302
|
-
[1m[35m (0.0ms)[0m begin transaction
|
303
|
-
-------------------------------------------------------------------------
|
304
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_content_missing
|
305
|
-
-------------------------------------------------------------------------
|
306
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
307
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
308
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
309
|
-
-----------------------------------------------------------------------------
|
310
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_not_array
|
311
|
-
-----------------------------------------------------------------------------
|
312
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
313
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
314
|
-
-------------------------------------------------------------------------------
|
315
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_attribute_unavailable
|
316
|
-
-------------------------------------------------------------------------------
|
317
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
318
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
319
|
-
------------------------------------------------------------------------------------------
|
320
|
-
DismissibleBlocksHelperTest: test_does_not_modify_data_attributes_that_already_have_values
|
321
|
-
------------------------------------------------------------------------------------------
|
322
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
323
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
324
|
-
[1m[35m (0.0ms)[0m begin transaction
|
325
|
-
---------------------------------------------------------------------------
|
326
|
-
DismissibleBlocksHelperTest: test_raise_exception_because_model_unavailable
|
327
|
-
---------------------------------------------------------------------------
|
328
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
329
|
-
[1m[35m (0.0ms)[0m begin transaction
|
330
|
-
--------------------------------------------------------------
|
331
|
-
DismissibleBlocksHelperTest: test_omit_block_because_dismissed
|
332
|
-
--------------------------------------------------------------
|
333
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 298486374]]
|
334
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
335
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
336
|
-
------------------------------------------------------------------
|
337
|
-
DismissibleBlocksHelperTest: test_yields_name_to_the_content_block
|
338
|
-
------------------------------------------------------------------
|
339
|
-
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]
|
340
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
341
|
-
[1m[35m (0.1ms)[0m 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
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
349
|
-
[1m[35m (0.0ms)[0m begin transaction
|
350
|
-
------------------------------------------------------------
|
351
|
-
DismissibleBlocksControllerTest: test_dismiss_block_via_ajax
|
352
|
-
------------------------------------------------------------
|
353
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
354
|
-
Processing by DismissibleBlocksController#create as JSON
|
355
|
-
Parameters: {"block"=>"lorem"}
|
356
|
-
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1 [["username", "john"]]
|
357
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
358
|
-
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1
|
359
|
-
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "dismissed_blocks" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["dismissed_blocks", "---\n- lorem\n"], ["updated_at", "2015-02-26 17:01:11.696473"], ["id", 980190962]]
|
360
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
361
|
-
Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.5ms)
|
362
|
-
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
363
|
-
[1m[35m (0.3ms)[0m rollback transaction
|
364
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
365
|
-
---------------------------------------------------------------------------------------
|
366
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_be_DismissibleBlocksController
|
367
|
-
---------------------------------------------------------------------------------------
|
368
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
369
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
370
|
-
-------------------------------------------------------------------------------------------
|
371
|
-
DismissibleBlocks::Controllers::HelpersTest: test_should_not_be_DismissibleBlocksController
|
372
|
-
-------------------------------------------------------------------------------------------
|
373
|
-
[1m[35m (0.0ms)[0m rollback transaction
|
374
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
375
|
-
------------------------------------------------------------
|
376
|
-
DismissibleBlocksTest: test_block_is_displayed_and_dismissed
|
377
|
-
------------------------------------------------------------
|
378
|
-
[1m[35mUser Load (0.1ms)[0m 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
|
-
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1[0m [["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
|
-
[1m[35mUser Load (0.1ms)[0m 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
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? LIMIT 1[0m [["username", "john"]]
|
400
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
401
|
-
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE ("users"."username" = 'john' AND "users"."id" != 980190962) LIMIT 1[0m
|
402
|
-
[1m[35mSQL (0.8ms)[0m 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
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
-
[1m[35m (0.4ms)[0m rollback transaction
|
414
|
-
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
415
|
-
---------------------------------------------------------------------
|
416
|
-
DismissibleBlocksTest: test_block_is_not_displayed;_already_dismissed
|
417
|
-
---------------------------------------------------------------------
|
418
|
-
[1m[35mUser Load (0.1ms)[0m 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
|
-
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."username" = ? AND "users"."password" = ? LIMIT 1[0m [["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
|
-
[1m[35mUser Load (0.1ms)[0m 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
|
-
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|