any_login 1.5.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/any_login/application.css +3 -0
- data/app/controllers/any_login/application_controller.rb +1 -9
- data/app/views/any_login/_any_login.html.erb +4 -4
- data/app/views/any_login/assets/_css.html.erb +101 -0
- data/app/views/any_login/assets/_js.html.erb +25 -0
- data/config/routes.rb +0 -2
- data/lib/any_login/helpers.rb +3 -1
- data/lib/any_login/providers/devise.rb +1 -1
- data/lib/any_login/version.rb +1 -1
- data/test/rails_apps/authlogic/db/development.sqlite3 +0 -0
- data/test/rails_apps/authlogic/db/schema.rb +3 -5
- data/test/rails_apps/authlogic/db/test.sqlite3 +0 -0
- data/test/rails_apps/authlogic/log/development.log +331 -0
- data/test/rails_apps/authlogic/log/test.log +409 -0
- data/test/rails_apps/authlogic/tmp/local_secret.txt +1 -0
- data/test/rails_apps/clearance/config/environment.rb +1 -0
- data/test/rails_apps/clearance/db/development.sqlite3 +0 -0
- data/test/rails_apps/clearance/db/schema.rb +10 -12
- data/test/rails_apps/clearance/db/test.sqlite3 +0 -0
- data/test/rails_apps/clearance/log/development.log +25 -0
- data/test/rails_apps/clearance/log/test.log +744 -0
- data/test/rails_apps/clearance/tmp/local_secret.txt +1 -0
- data/test/rails_apps/devise/db/development.sqlite3 +0 -0
- data/test/rails_apps/devise/db/schema.rb +3 -5
- data/test/rails_apps/devise/db/test.sqlite3 +0 -0
- data/test/rails_apps/devise/log/development.log +598 -0
- data/test/rails_apps/devise/log/test.log +760 -0
- data/test/rails_apps/devise/tmp/local_secret.txt +1 -0
- data/test/rails_apps/sorcery/db/development.sqlite3 +0 -0
- data/test/rails_apps/sorcery/db/schema.rb +3 -5
- data/test/rails_apps/sorcery/db/test.sqlite3 +0 -0
- data/test/rails_apps/sorcery/log/development.log +24 -0
- data/test/rails_apps/sorcery/log/test.log +113 -0
- data/test/rails_apps/sorcery/tmp/local_secret.txt +1 -0
- data/test/test_helper_common.rb +2 -1
- metadata +76 -10
- data/app/assets/javascripts/any_login/application.js +0 -23
@@ -0,0 +1,760 @@
|
|
1
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
2
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
3
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
4
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
5
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
6
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
7
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
8
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
9
|
+
(20150907190846),
|
10
|
+
(20150907190739);[0m
|
11
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
12
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
13
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 18:52:41.903932', '2025-05-28 18:52:41.903933') RETURNING "key"[0m
|
14
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
15
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
16
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '52e1e8cd766b3d53d6cae4509a0f542c9787d86f', '2025-05-28 18:52:41.904197', '2025-05-28 18:52:41.904197') RETURNING "key"[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
18
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[36mbegin transaction[0m
|
19
|
+
-------------------------------------------------------------------------
|
20
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_returns_an_Array
|
21
|
+
-------------------------------------------------------------------------
|
22
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
23
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
24
|
+
--------------------------------------------------------------------------------------
|
25
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_return_true_with_the_grouped?
|
26
|
+
--------------------------------------------------------------------------------------
|
27
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
28
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
29
|
+
--------------------------------------------------------------------------------------
|
30
|
+
AnyLogin::CollectionTest: test_single_collection_should_return_false_with_the_grouped?
|
31
|
+
--------------------------------------------------------------------------------------
|
32
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
33
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
34
|
+
------------------------------------------------------------------------
|
35
|
+
AnyLogin::CollectionTest: test_single_collection_should_returns_an_Array
|
36
|
+
------------------------------------------------------------------------
|
37
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
38
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
39
|
+
------------------------
|
40
|
+
AnyLoginTest: test_truth
|
41
|
+
------------------------
|
42
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
43
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
44
|
+
-----------------------------------------------------------------------------------
|
45
|
+
NavigationTest: test_it_properly_logs_users_in_and_allows_access_to_the_secret_page
|
46
|
+
-----------------------------------------------------------------------------------
|
47
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
48
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
49
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 18:52:41.954914"], ["updated_at", "2025-05-28 18:52:41.954914"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$GKJJ6gX4ws7lT/01aaxtYeKrIf0l0H9T8Jp6.U2X83Z1tjYugCdvW"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
50
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
52
|
+
Processing by HomeController#index as HTML
|
53
|
+
Rendering layout layouts/application.html.erb
|
54
|
+
Rendering home/index.html.erb within layouts/application
|
55
|
+
Rendered home/index.html.erb within layouts/application (Duration: 1.4ms | Allocations: 498)
|
56
|
+
Rendered shared/_header.html.erb (Duration: 0.1ms | Allocations: 65)
|
57
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.1ms | Allocations: 78)
|
58
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.1ms | Allocations: 57)
|
59
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.1ms | Allocations: 76)
|
60
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
61
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 5.4ms | Allocations: 1733)
|
62
|
+
Rendered shared/_footer.html.erb (Duration: 6.1ms | Allocations: 2290)
|
63
|
+
Rendered layout layouts/application.html.erb (Duration: 9.2ms | Allocations: 3327)
|
64
|
+
Completed 200 OK in 21ms (Views: 11.7ms | ActiveRecord: 0.1ms | Allocations: 8818)
|
65
|
+
Started POST "/any_login/any_login/sign_in" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
66
|
+
Processing by AnyLogin::ApplicationController#any_login as HTML
|
67
|
+
Parameters: {"selected_id" => "1"}
|
68
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
69
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
70
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "updated_at" = ?, "sign_in_count" = ?, "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ? WHERE "users"."id" = ?[0m [["updated_at", "2025-05-28 18:52:44.686725"], ["sign_in_count", 1], ["current_sign_in_at", "2025-05-28 18:52:44.686610"], ["last_sign_in_at", "2025-05-28 18:52:44.686610"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["id", 1]]
|
71
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
72
|
+
Redirected to http://127.0.0.1:60783/
|
73
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms | Allocations: 1725)
|
74
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
75
|
+
Processing by HomeController#index as HTML
|
76
|
+
Rendering layout layouts/application.html.erb
|
77
|
+
Rendering home/index.html.erb within layouts/application
|
78
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.9ms | Allocations: 703)
|
79
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | Allocations: 9)
|
80
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | Allocations: 8)
|
81
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | Allocations: 8)
|
82
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | Allocations: 10)
|
83
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
84
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
85
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.7ms | Allocations: 944)
|
86
|
+
Rendered shared/_footer.html.erb (Duration: 0.8ms | Allocations: 1054)
|
87
|
+
Rendered layout layouts/application.html.erb (Duration: 1.8ms | Allocations: 1915)
|
88
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms | Allocations: 2091)
|
89
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
90
|
+
Processing by HomeController#about as HTML
|
91
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
92
|
+
Rendering layout layouts/application.html.erb
|
93
|
+
Rendering home/about.html.erb within layouts/application
|
94
|
+
Rendered home/about.html.erb within layouts/application (Duration: 0.1ms | Allocations: 57)
|
95
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | Allocations: 9)
|
96
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | Allocations: 8)
|
97
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | Allocations: 8)
|
98
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | Allocations: 10)
|
99
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
100
|
+
[1m[36mCACHE User Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
101
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.5ms | Allocations: 728)
|
102
|
+
Rendered shared/_footer.html.erb (Duration: 0.6ms | Allocations: 842)
|
103
|
+
Rendered layout layouts/application.html.erb (Duration: 0.8ms | Allocations: 1057)
|
104
|
+
Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.0ms | Allocations: 2268)
|
105
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
106
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
107
|
+
---------------------------------------------------------------------
|
108
|
+
NavigationTest: test_user_cannot_navigate_to_about_page_without_login
|
109
|
+
---------------------------------------------------------------------
|
110
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
112
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 18:52:44.831744"], ["updated_at", "2025-05-28 18:52:44.831744"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$Kb1mS3U0bcbR/VzJIIRUGuRk2AngnrbVdKH1YpCsDWsuxMADCgx5O"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
113
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
114
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
115
|
+
Processing by HomeController#about as HTML
|
116
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms | Allocations: 200)
|
117
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2025-05-28 21:52:44 +0300
|
118
|
+
Processing by Devise::SessionsController#new as HTML
|
119
|
+
Rendering layout layouts/application.html.erb
|
120
|
+
Rendering /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application
|
121
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/shared/_links.html.erb (Duration: 0.3ms | Allocations: 409)
|
122
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application (Duration: 3.2ms | Allocations: 1996)
|
123
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | Allocations: 9)
|
124
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | Allocations: 9)
|
125
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | Allocations: 9)
|
126
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | Allocations: 11)
|
127
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
128
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.4ms | Allocations: 525)
|
129
|
+
Rendered shared/_footer.html.erb (Duration: 0.5ms | Allocations: 644)
|
130
|
+
Rendered layout layouts/application.html.erb (Duration: 3.8ms | Allocations: 2798)
|
131
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms | Allocations: 4272)
|
132
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
133
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
134
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
135
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
136
|
+
--------------------------------------------------------------------------------------
|
137
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_return_true_with_the_grouped?
|
138
|
+
--------------------------------------------------------------------------------------
|
139
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
140
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
141
|
+
--------------------------------------------------------------------------------------
|
142
|
+
AnyLogin::CollectionTest: test_single_collection_should_return_false_with_the_grouped?
|
143
|
+
--------------------------------------------------------------------------------------
|
144
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
145
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
146
|
+
------------------------------------------------------------------------
|
147
|
+
AnyLogin::CollectionTest: test_single_collection_should_returns_an_Array
|
148
|
+
------------------------------------------------------------------------
|
149
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
150
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
151
|
+
-------------------------------------------------------------------------
|
152
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_returns_an_Array
|
153
|
+
-------------------------------------------------------------------------
|
154
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
155
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
156
|
+
-----------------------------------------------------------------------------------
|
157
|
+
NavigationTest: test_it_properly_logs_users_in_and_allows_access_to_the_secret_page
|
158
|
+
-----------------------------------------------------------------------------------
|
159
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
160
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
161
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:08:12.610041"], ["updated_at", "2025-05-28 19:08:12.610041"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$ippUhaFzGTi5VqwC53UhAuilapnkb7VmdLaoKVzl4/RQ/6HGwms3G"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
162
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
163
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
164
|
+
Processing by HomeController#index as HTML
|
165
|
+
Rendering layout layouts/application.html.erb
|
166
|
+
Rendering home/index.html.erb within layouts/application
|
167
|
+
Rendered home/index.html.erb within layouts/application (Duration: 1.3ms | GC: 0.0ms)
|
168
|
+
Rendered shared/_header.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
169
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
170
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
171
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
172
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
173
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 3.2ms | GC: 0.0ms)
|
174
|
+
Rendered shared/_footer.html.erb (Duration: 4.2ms | GC: 0.0ms)
|
175
|
+
Rendered layout layouts/application.html.erb (Duration: 6.9ms | GC: 0.0ms)
|
176
|
+
Completed 200 OK in 20ms (Views: 9.5ms | ActiveRecord: 0.2ms (1 query, 0 cached) | GC: 0.0ms)
|
177
|
+
Started POST "/any_login/any_login/sign_in" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
178
|
+
Processing by AnyLogin::ApplicationController#any_login as HTML
|
179
|
+
Parameters: {"selected_id" => "1"}
|
180
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
181
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
182
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "updated_at" = ?, "sign_in_count" = ?, "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ? WHERE "users"."id" = ?[0m [["updated_at", "2025-05-28 19:08:15.507990"], ["sign_in_count", 1], ["current_sign_in_at", "2025-05-28 19:08:15.507867"], ["last_sign_in_at", "2025-05-28 19:08:15.507867"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["id", 1]]
|
183
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
184
|
+
Redirected to http://127.0.0.1:61111/
|
185
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms (2 queries, 0 cached) | GC: 0.0ms)
|
186
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
187
|
+
Processing by HomeController#index as HTML
|
188
|
+
Rendering layout layouts/application.html.erb
|
189
|
+
Rendering home/index.html.erb within layouts/application
|
190
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.9ms | GC: 0.0ms)
|
191
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
192
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
193
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
194
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
195
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
196
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
197
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.8ms | GC: 0.0ms)
|
198
|
+
Rendered shared/_footer.html.erb (Duration: 0.9ms | GC: 0.0ms)
|
199
|
+
Rendered layout layouts/application.html.erb (Duration: 2.0ms | GC: 0.0ms)
|
200
|
+
Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
|
201
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
202
|
+
Processing by HomeController#about as HTML
|
203
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
204
|
+
Rendering layout layouts/application.html.erb
|
205
|
+
Rendering home/about.html.erb within layouts/application
|
206
|
+
Rendered home/about.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
|
207
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
208
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
209
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
210
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
211
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
212
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
213
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 3.2ms | GC: 0.3ms)
|
214
|
+
Rendered shared/_footer.html.erb (Duration: 3.3ms | GC: 0.3ms)
|
215
|
+
Rendered layout layouts/application.html.erb (Duration: 3.6ms | GC: 0.3ms)
|
216
|
+
Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.1ms (3 queries, 0 cached) | GC: 0.3ms)
|
217
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
218
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
219
|
+
---------------------------------------------------------------------
|
220
|
+
NavigationTest: test_user_cannot_navigate_to_about_page_without_login
|
221
|
+
---------------------------------------------------------------------
|
222
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
223
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
224
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:08:15.581892"], ["updated_at", "2025-05-28 19:08:15.581892"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$F3LlNjvcWbKXXhf2n9JHauGcEZZlwTMygXOWILZJEDGBfFtYO3eY."], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
225
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
226
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
227
|
+
Processing by HomeController#about as HTML
|
228
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
229
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2025-05-28 22:08:15 +0300
|
230
|
+
Processing by Devise::SessionsController#new as HTML
|
231
|
+
Rendering layout layouts/application.html.erb
|
232
|
+
Rendering /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application
|
233
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/shared/_links.html.erb (Duration: 0.3ms | GC: 0.0ms)
|
234
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application (Duration: 3.0ms | GC: 0.0ms)
|
235
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
236
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
237
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
238
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
239
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
240
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 2.3ms | GC: 0.2ms)
|
241
|
+
Rendered shared/_footer.html.erb (Duration: 2.4ms | GC: 0.2ms)
|
242
|
+
Rendered layout layouts/application.html.erb (Duration: 5.7ms | GC: 0.2ms)
|
243
|
+
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.2ms)
|
244
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
245
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
246
|
+
------------------------
|
247
|
+
AnyLoginTest: test_truth
|
248
|
+
------------------------
|
249
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
250
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
251
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
252
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
253
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
254
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
255
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
256
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
257
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
258
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
259
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
260
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
261
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
262
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
263
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
264
|
+
(20150907190846),
|
265
|
+
(20150907190739);[0m
|
266
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
267
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
268
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:08:22.859848', '2025-05-28 19:08:22.859849') RETURNING "key"[0m
|
269
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
270
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
271
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '52e1e8cd766b3d53d6cae4509a0f542c9787d86f', '2025-05-28 19:08:22.861841', '2025-05-28 19:08:22.861842') RETURNING "key"[0m
|
272
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
273
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
274
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
275
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
276
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
277
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
278
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
279
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
280
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
281
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
282
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
283
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
284
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
285
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
286
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
287
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
288
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
289
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
290
|
+
(20150907190846),
|
291
|
+
(20150907190739);[0m
|
292
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
293
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
294
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:12:54.890503', '2025-05-28 19:12:54.890504') RETURNING "key"[0m
|
295
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
296
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
297
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:12:54.890842', '2025-05-28 19:12:54.890843') RETURNING "key"[0m
|
298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
299
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
300
|
+
------------------------
|
301
|
+
AnyLoginTest: test_truth
|
302
|
+
------------------------
|
303
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
304
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
305
|
+
--------------------------------------------------------------------------------------
|
306
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_return_true_with_the_grouped?
|
307
|
+
--------------------------------------------------------------------------------------
|
308
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
309
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
310
|
+
-------------------------------------------------------------------------
|
311
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_returns_an_Array
|
312
|
+
-------------------------------------------------------------------------
|
313
|
+
[1m[36mTRANSACTION (0.8ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
314
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
315
|
+
------------------------------------------------------------------------
|
316
|
+
AnyLogin::CollectionTest: test_single_collection_should_returns_an_Array
|
317
|
+
------------------------------------------------------------------------
|
318
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
319
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
320
|
+
--------------------------------------------------------------------------------------
|
321
|
+
AnyLogin::CollectionTest: test_single_collection_should_return_false_with_the_grouped?
|
322
|
+
--------------------------------------------------------------------------------------
|
323
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
324
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
325
|
+
---------------------------------------------------------------------
|
326
|
+
NavigationTest: test_user_cannot_navigate_to_about_page_without_login
|
327
|
+
---------------------------------------------------------------------
|
328
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
329
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
330
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:12:54.971224"], ["updated_at", "2025-05-28 19:12:54.971224"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$JVasdP51dChLMvKT5vwkLuIdL.GvkkZFLAhc1UXEiRSDdo/GxyJ7e"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
331
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
332
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:12:55 +0300
|
333
|
+
Processing by HomeController#about as HTML
|
334
|
+
Completed 401 Unauthorized in 5ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
335
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2025-05-28 22:12:55 +0300
|
336
|
+
Processing by Devise::SessionsController#new as HTML
|
337
|
+
Rendering layout layouts/application.html.erb
|
338
|
+
Rendering /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application
|
339
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/shared/_links.html.erb (Duration: 0.3ms | GC: 0.0ms)
|
340
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application (Duration: 2.8ms | GC: 0.0ms)
|
341
|
+
Rendered shared/_header.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
342
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
343
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
344
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
345
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
346
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 2.0ms | GC: 0.0ms)
|
347
|
+
Rendered shared/_footer.html.erb (Duration: 2.8ms | GC: 0.0ms)
|
348
|
+
Rendered layout layouts/application.html.erb (Duration: 6.4ms | GC: 0.0ms)
|
349
|
+
Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.2ms (1 query, 0 cached) | GC: 0.0ms)
|
350
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
351
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
352
|
+
-----------------------------------------------------------------------------------
|
353
|
+
NavigationTest: test_it_properly_logs_users_in_and_allows_access_to_the_secret_page
|
354
|
+
-----------------------------------------------------------------------------------
|
355
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
356
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
357
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:12:56.066654"], ["updated_at", "2025-05-28 19:12:56.066654"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$xfWH3Iu5T8I.Je3cf6jHHuispLABWM2NtatrWq8h76Rqay5iqN5Gy"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
358
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
359
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:12:56 +0300
|
360
|
+
Processing by HomeController#index as HTML
|
361
|
+
Rendering layout layouts/application.html.erb
|
362
|
+
Rendering home/index.html.erb within layouts/application
|
363
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.2ms | GC: 0.0ms)
|
364
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
365
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
366
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
367
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
368
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
369
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.7ms | GC: 0.0ms)
|
370
|
+
Rendered shared/_footer.html.erb (Duration: 0.8ms | GC: 0.0ms)
|
371
|
+
Rendered layout layouts/application.html.erb (Duration: 1.2ms | GC: 0.0ms)
|
372
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.0ms)
|
373
|
+
Started POST "/any_login/any_login/sign_in" for 127.0.0.1 at 2025-05-28 22:12:56 +0300
|
374
|
+
Processing by AnyLogin::ApplicationController#any_login as HTML
|
375
|
+
Parameters: {"selected_id" => "1", "id" => ""}
|
376
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
377
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
378
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "updated_at" = ?, "sign_in_count" = ?, "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ? WHERE "users"."id" = ?[0m [["updated_at", "2025-05-28 19:12:56.145469"], ["sign_in_count", 1], ["current_sign_in_at", "2025-05-28 19:12:56.144586"], ["last_sign_in_at", "2025-05-28 19:12:56.144586"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["id", 1]]
|
379
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
380
|
+
Redirected to http://127.0.0.1:61234/
|
381
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms (2 queries, 0 cached) | GC: 0.0ms)
|
382
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:12:56 +0300
|
383
|
+
Processing by HomeController#index as HTML
|
384
|
+
Rendering layout layouts/application.html.erb
|
385
|
+
Rendering home/index.html.erb within layouts/application
|
386
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.2ms | GC: 0.0ms)
|
387
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
388
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
389
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
390
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
391
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
392
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
393
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 4.0ms | GC: 0.0ms)
|
394
|
+
Rendered shared/_footer.html.erb (Duration: 4.1ms | GC: 0.0ms)
|
395
|
+
Rendered layout layouts/application.html.erb (Duration: 4.3ms | GC: 0.0ms)
|
396
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
|
397
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:12:56 +0300
|
398
|
+
Processing by HomeController#about as HTML
|
399
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
400
|
+
Rendering layout layouts/application.html.erb
|
401
|
+
Rendering home/about.html.erb within layouts/application
|
402
|
+
Rendered home/about.html.erb within layouts/application (Duration: 0.7ms | GC: 0.0ms)
|
403
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
404
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
405
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
406
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
407
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
408
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
409
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 2.3ms | GC: 0.0ms)
|
410
|
+
Rendered shared/_footer.html.erb (Duration: 2.4ms | GC: 0.0ms)
|
411
|
+
Rendered layout layouts/application.html.erb (Duration: 3.5ms | GC: 0.0ms)
|
412
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms (3 queries, 0 cached) | GC: 0.0ms)
|
413
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
415
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
416
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
417
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
418
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
419
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
420
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
421
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
422
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
423
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
424
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
425
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
426
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
427
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
428
|
+
(20150907190846),
|
429
|
+
(20150907190739);[0m
|
430
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
431
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
432
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:13:05.625933', '2025-05-28 19:13:05.625934') RETURNING "key"[0m
|
433
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
434
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
435
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:13:05.626985', '2025-05-28 19:13:05.626986') RETURNING "key"[0m
|
436
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
437
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
438
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
439
|
+
---------------------------------------------------------------------
|
440
|
+
NavigationTest: test_user_cannot_navigate_to_about_page_without_login
|
441
|
+
---------------------------------------------------------------------
|
442
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
443
|
+
[1m[36mUser Exists? (2.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
444
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:13:15.966343"], ["updated_at", "2025-05-28 19:13:15.966343"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$HFLYYU01Xzosv48LfDYX0uWjYLaDrrRQbe21IAjG50KPBaZ9Asbee"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
445
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
446
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:13:16 +0300
|
447
|
+
Processing by HomeController#about as HTML
|
448
|
+
Completed 401 Unauthorized in 3ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
449
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2025-05-28 22:13:16 +0300
|
450
|
+
Processing by Devise::SessionsController#new as HTML
|
451
|
+
Rendering layout layouts/application.html.erb
|
452
|
+
Rendering /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application
|
453
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/shared/_links.html.erb (Duration: 0.3ms | GC: 0.0ms)
|
454
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application (Duration: 2.4ms | GC: 0.0ms)
|
455
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
456
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
457
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
458
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
459
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
460
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 1.6ms | GC: 0.0ms)
|
461
|
+
Rendered shared/_footer.html.erb (Duration: 1.9ms | GC: 0.0ms)
|
462
|
+
Rendered layout layouts/application.html.erb (Duration: 4.7ms | GC: 0.0ms)
|
463
|
+
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.2ms (1 query, 0 cached) | GC: 0.0ms)
|
464
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
465
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
466
|
+
-----------------------------------------------------------------------------------
|
467
|
+
NavigationTest: test_it_properly_logs_users_in_and_allows_access_to_the_secret_page
|
468
|
+
-----------------------------------------------------------------------------------
|
469
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
470
|
+
[1m[36mUser Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
471
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:13:17.012121"], ["updated_at", "2025-05-28 19:13:17.012121"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$jdfrxx91oM1G2AxLUFR6leS5XorsPUFsrKWqrfrw1d5VEPJTC2LT."], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
472
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
473
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:13:17 +0300
|
474
|
+
Processing by HomeController#index as HTML
|
475
|
+
Rendering layout layouts/application.html.erb
|
476
|
+
Rendering home/index.html.erb within layouts/application
|
477
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.3ms | GC: 0.0ms)
|
478
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
479
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
480
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
481
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
482
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
483
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 0.8ms | GC: 0.0ms)
|
484
|
+
Rendered shared/_footer.html.erb (Duration: 0.9ms | GC: 0.0ms)
|
485
|
+
Rendered layout layouts/application.html.erb (Duration: 1.7ms | GC: 0.0ms)
|
486
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.0ms)
|
487
|
+
Started POST "/any_login/any_login/sign_in" for 127.0.0.1 at 2025-05-28 22:13:17 +0300
|
488
|
+
Processing by AnyLogin::ApplicationController#any_login as HTML
|
489
|
+
Parameters: {"selected_id" => "1", "id" => ""}
|
490
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
491
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
492
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "updated_at" = ?, "sign_in_count" = ?, "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ? WHERE "users"."id" = ?[0m [["updated_at", "2025-05-28 19:13:17.101155"], ["sign_in_count", 1], ["current_sign_in_at", "2025-05-28 19:13:17.100311"], ["last_sign_in_at", "2025-05-28 19:13:17.100311"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["id", 1]]
|
493
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
494
|
+
Redirected to http://127.0.0.1:61315/
|
495
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms (2 queries, 0 cached) | GC: 0.2ms)
|
496
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:13:17 +0300
|
497
|
+
Processing by HomeController#index as HTML
|
498
|
+
Rendering layout layouts/application.html.erb
|
499
|
+
Rendering home/index.html.erb within layouts/application
|
500
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.2ms | GC: 0.0ms)
|
501
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
502
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
503
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
504
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
505
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
506
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
507
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 4.0ms | GC: 0.0ms)
|
508
|
+
Rendered shared/_footer.html.erb (Duration: 4.1ms | GC: 0.0ms)
|
509
|
+
Rendered layout layouts/application.html.erb (Duration: 4.4ms | GC: 0.0ms)
|
510
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.0ms)
|
511
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:13:17 +0300
|
512
|
+
Processing by HomeController#about as HTML
|
513
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
514
|
+
Rendering layout layouts/application.html.erb
|
515
|
+
Rendering home/about.html.erb within layouts/application
|
516
|
+
Rendered home/about.html.erb within layouts/application (Duration: 0.1ms | GC: 0.0ms)
|
517
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
518
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
519
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
520
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
521
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
522
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
523
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 1.7ms | GC: 0.0ms)
|
524
|
+
Rendered shared/_footer.html.erb (Duration: 1.8ms | GC: 0.0ms)
|
525
|
+
Rendered layout layouts/application.html.erb (Duration: 2.2ms | GC: 0.0ms)
|
526
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms (3 queries, 0 cached) | GC: 0.0ms)
|
527
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
528
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
529
|
+
------------------------
|
530
|
+
AnyLoginTest: test_truth
|
531
|
+
------------------------
|
532
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
533
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
534
|
+
-------------------------------------------------------------------------
|
535
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_returns_an_Array
|
536
|
+
-------------------------------------------------------------------------
|
537
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
538
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
539
|
+
------------------------------------------------------------------------
|
540
|
+
AnyLogin::CollectionTest: test_single_collection_should_returns_an_Array
|
541
|
+
------------------------------------------------------------------------
|
542
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
543
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
544
|
+
--------------------------------------------------------------------------------------
|
545
|
+
AnyLogin::CollectionTest: test_single_collection_should_return_false_with_the_grouped?
|
546
|
+
--------------------------------------------------------------------------------------
|
547
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
548
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
549
|
+
--------------------------------------------------------------------------------------
|
550
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_return_true_with_the_grouped?
|
551
|
+
--------------------------------------------------------------------------------------
|
552
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
553
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
554
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
555
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
556
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
557
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
558
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
559
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
560
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
561
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
562
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
563
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
564
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
565
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
566
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
567
|
+
(20150907190846),
|
568
|
+
(20150907190739);[0m
|
569
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
570
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
571
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:13:22.070614', '2025-05-28 19:13:22.070614') RETURNING "key"[0m
|
572
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
573
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
574
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:13:22.070947', '2025-05-28 19:13:22.070947') RETURNING "key"[0m
|
575
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
576
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
577
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
578
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
579
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
580
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
581
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
582
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
583
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
584
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
585
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
586
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
587
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
588
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
589
|
+
(20150907190846),
|
590
|
+
(20150907190739);[0m
|
591
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
592
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
593
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:13:45.298517', '2025-05-28 19:13:45.298519') RETURNING "key"[0m
|
594
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
595
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
596
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:13:45.299884', '2025-05-28 19:13:45.299884') RETURNING "key"[0m
|
597
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
598
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
599
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
600
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
602
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
603
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
604
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
605
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
606
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
607
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
608
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
609
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
610
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
611
|
+
(20150907190846),
|
612
|
+
(20150907190739);[0m
|
613
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
614
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
615
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:16:26.425378', '2025-05-28 19:16:26.425379') RETURNING "key"[0m
|
616
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
617
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
618
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:16:26.426214', '2025-05-28 19:16:26.426214') RETURNING "key"[0m
|
619
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
620
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
621
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
622
|
+
-----------------------------------------------------------------------------------
|
623
|
+
NavigationTest: test_it_properly_logs_users_in_and_allows_access_to_the_secret_page
|
624
|
+
-----------------------------------------------------------------------------------
|
625
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
626
|
+
[1m[36mUser Exists? (2.4ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
627
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:23:26.215579"], ["updated_at", "2025-05-28 19:23:26.215579"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$QrKN9Hnr2DPSW7PXlhe7feGQx0nzpYwYayiciZLrQNv3CGDEwiGP6"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
628
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
629
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
630
|
+
Processing by HomeController#index as HTML
|
631
|
+
Rendering layout layouts/application.html.erb
|
632
|
+
Rendering home/index.html.erb within layouts/application
|
633
|
+
Rendered home/index.html.erb within layouts/application (Duration: 1.4ms | GC: 0.0ms)
|
634
|
+
Rendered shared/_header.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
635
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
636
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
637
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.1ms | GC: 0.0ms)
|
638
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
639
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 2.6ms | GC: 0.0ms)
|
640
|
+
Rendered shared/_footer.html.erb (Duration: 3.1ms | GC: 0.0ms)
|
641
|
+
Rendered layout layouts/application.html.erb (Duration: 5.9ms | GC: 0.0ms)
|
642
|
+
Completed 200 OK in 18ms (Views: 8.1ms | ActiveRecord: 0.2ms (1 query, 0 cached) | GC: 0.0ms)
|
643
|
+
Started POST "/any_login/any_login/sign_in" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
644
|
+
Processing by AnyLogin::ApplicationController#any_login as HTML
|
645
|
+
Parameters: {"selected_id" => "1"}
|
646
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
647
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
648
|
+
[1m[36mUser Update (0.1ms)[0m [1m[33mUPDATE "users" SET "updated_at" = ?, "sign_in_count" = ?, "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ? WHERE "users"."id" = ?[0m [["updated_at", "2025-05-28 19:23:27.333188"], ["sign_in_count", 1], ["current_sign_in_at", "2025-05-28 19:23:27.333075"], ["last_sign_in_at", "2025-05-28 19:23:27.333075"], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["id", 1]]
|
649
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
650
|
+
Redirected to http://127.0.0.1:62951/
|
651
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms (2 queries, 0 cached) | GC: 0.0ms)
|
652
|
+
Started GET "/" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
653
|
+
Processing by HomeController#index as HTML
|
654
|
+
Rendering layout layouts/application.html.erb
|
655
|
+
Rendering home/index.html.erb within layouts/application
|
656
|
+
Rendered home/index.html.erb within layouts/application (Duration: 0.9ms | GC: 0.0ms)
|
657
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
658
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
659
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
660
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
661
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
662
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
663
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 1.5ms | GC: 0.4ms)
|
664
|
+
Rendered shared/_footer.html.erb (Duration: 1.6ms | GC: 0.4ms)
|
665
|
+
Rendered layout layouts/application.html.erb (Duration: 2.6ms | GC: 0.4ms)
|
666
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms (2 queries, 0 cached) | GC: 0.4ms)
|
667
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
668
|
+
Processing by HomeController#about as HTML
|
669
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
670
|
+
Rendering layout layouts/application.html.erb
|
671
|
+
Rendering home/about.html.erb within layouts/application
|
672
|
+
Rendered home/about.html.erb within layouts/application (Duration: 0.2ms | GC: 0.0ms)
|
673
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
674
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
675
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
676
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
677
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
678
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
679
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 2.9ms | GC: 0.0ms)
|
680
|
+
Rendered shared/_footer.html.erb (Duration: 3.0ms | GC: 0.0ms)
|
681
|
+
Rendered layout layouts/application.html.erb (Duration: 3.5ms | GC: 0.2ms)
|
682
|
+
Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.1ms (3 queries, 0 cached) | GC: 0.2ms)
|
683
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
684
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
685
|
+
---------------------------------------------------------------------
|
686
|
+
NavigationTest: test_user_cannot_navigate_to_about_page_without_login
|
687
|
+
---------------------------------------------------------------------
|
688
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
689
|
+
[1m[36mUser Exists? (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "test@test.com"], ["LIMIT", 1]]
|
690
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "age", "created_at", "updated_at", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "role") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"[0m [["name", "test"], ["age", nil], ["created_at", "2025-05-28 19:23:27.395570"], ["updated_at", "2025-05-28 19:23:27.395570"], ["email", "test@test.com"], ["encrypted_password", "$2a$04$heCorFSOT/TurzuNHChh/eorZ0V0kJi0VC0I7/WbM9vgCGJs7Ee62"], ["reset_password_token", nil], ["reset_password_sent_at", nil], ["remember_created_at", nil], ["sign_in_count", 0], ["current_sign_in_at", nil], ["last_sign_in_at", nil], ["current_sign_in_ip", nil], ["last_sign_in_ip", nil], ["role", "user"]]
|
691
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
692
|
+
Started GET "/about" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
693
|
+
Processing by HomeController#about as HTML
|
694
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
|
695
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2025-05-28 22:23:27 +0300
|
696
|
+
Processing by Devise::SessionsController#new as HTML
|
697
|
+
Rendering layout layouts/application.html.erb
|
698
|
+
Rendering /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application
|
699
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/shared/_links.html.erb (Duration: 0.4ms | GC: 0.0ms)
|
700
|
+
Rendered /Users/igor/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/devise-4.9.4/app/views/devise/sessions/new.html.erb within layouts/application (Duration: 3.0ms | GC: 0.0ms)
|
701
|
+
Rendered shared/_header.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
702
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_js.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
703
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/assets/_css.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
704
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/svg/_user.html.erb (Duration: 0.0ms | GC: 0.0ms)
|
705
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" LIMIT ?[0m [["LIMIT", 10]]
|
706
|
+
Rendered /Users/igor/projects/any_login/app/views/any_login/_any_login.html.erb (Duration: 1.9ms | GC: 0.2ms)
|
707
|
+
Rendered shared/_footer.html.erb (Duration: 1.9ms | GC: 0.2ms)
|
708
|
+
Rendered layout layouts/application.html.erb (Duration: 5.1ms | GC: 0.2ms)
|
709
|
+
Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms (1 query, 0 cached) | GC: 0.2ms)
|
710
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
711
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
712
|
+
------------------------
|
713
|
+
AnyLoginTest: test_truth
|
714
|
+
------------------------
|
715
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
716
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
717
|
+
--------------------------------------------------------------------------------------
|
718
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_return_true_with_the_grouped?
|
719
|
+
--------------------------------------------------------------------------------------
|
720
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
721
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
722
|
+
--------------------------------------------------------------------------------------
|
723
|
+
AnyLogin::CollectionTest: test_single_collection_should_return_false_with_the_grouped?
|
724
|
+
--------------------------------------------------------------------------------------
|
725
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
726
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
727
|
+
-------------------------------------------------------------------------
|
728
|
+
AnyLogin::CollectionTest: test_grouped_collection_should_returns_an_Array
|
729
|
+
-------------------------------------------------------------------------
|
730
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
731
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN deferred TRANSACTION[0m
|
732
|
+
------------------------------------------------------------------------
|
733
|
+
AnyLogin::CollectionTest: test_single_collection_should_returns_an_Array
|
734
|
+
------------------------------------------------------------------------
|
735
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION[0m
|
736
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
737
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
738
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
739
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
740
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
741
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
742
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
743
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "age" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "email" varchar DEFAULT '' NOT NULL, "encrypted_password" varchar DEFAULT '' NOT NULL, "reset_password_token" varchar, "reset_password_sent_at" datetime(6), "remember_created_at" datetime(6), "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime(6), "last_sign_in_at" datetime(6), "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "role" varchar)[0m
|
744
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
745
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")[0m
|
746
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
747
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
748
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20150909210357)[0m
|
749
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
750
|
+
(20150907190846),
|
751
|
+
(20150907190739);[0m
|
752
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
753
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
754
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2025-05-28 19:23:36.136073', '2025-05-28 19:23:36.136074') RETURNING "key"[0m
|
755
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
756
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
757
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '302577067720455939bda38a5427dcea4bb89a1f', '2025-05-28 19:23:36.136931', '2025-05-28 19:23:36.136932') RETURNING "key"[0m
|
758
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
759
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
760
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|