devise-verifiable 0.0.1 → 0.0.2
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/README.md +160 -1
- data/Rakefile +0 -3
- data/app/views/devise/verification/new.erb +1 -1
- data/lib/devise/verifiable/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +783 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0P/0P64YMvGLyegqKbcLGgQEMgpMem2a76XNfbXIz9-Ey0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/2Z/2ZzBFKsYkcL7dzgbWqo4jJdlDSNlOfTD0FzxEs83YfQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5H/5Has1ABsMg4JciWxY0IXGJ9jrklIuQvhrst6U4txXEI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/BJ/BJSW3SvCsdyDxfrPXPEX-SdPn6WpFejINpQC-ohzq1M.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ef/EfCKTq2iOPF4d01VJrrgpUuh44uhCjBz25uWlUfQgBY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Fs/FsGm4YIKEUTAAoLtBvqu9W2QJph2IK0QwuDkhZTX9Po.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MF/MFgFMZhNsZnh8MW9MuTLeEtvZv5AIBWkKyUNES7gz90.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ts/TsaMB5qto1CIDm1WwK0uKeujSqouaReUozJBxbUdsdo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Wy/Wym9Ug7gXRIXfbtpdzIYFihdPQG4pPDAeAd-HMcOjgs.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/YP/YP5JCAFIR5kY0V4MhYD7ePTe4ax1ygemN4Cd6qHkwHE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/d8/d8CqIdctcil28w8GhXpp5W42tnCuYEoXjZOaUXO1uxI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/dG/dGmwK2w4ea6Db33cXkyKS6ufPhxdaAcKsHWKqy4q7u8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
- metadata +38 -8
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbffafb1e27e201f92d27f446210c271abf7ef96
|
4
|
+
data.tar.gz: ae3eec13cd1548ce0ceb89d45ae925b1cb5e62ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a290c7cb79e5ff81d6de9169020677a33fafbdf4170e9d7dde25d8ea0984fd348624e6f4dca6aa5be7e28d9e861bdb63e3f900c2aaba08116530ef5c65a84dcb
|
7
|
+
data.tar.gz: aaafb08a961dcbef7eb8515c72050d09087b12d222549f85ae70a2aed24d587a157f394629374193e83d00631ba218cb74c2666ea4c4ec1f9f648eca9477debc
|
data/README.md
CHANGED
@@ -1,14 +1,173 @@
|
|
1
1
|
# DeviseVerifiable
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/devise-verifiable)
|
4
|
+
|
3
5
|
DeviseVerifiable adds a second step to registration process.
|
4
6
|
|
7
|
+
This is useful to register users with additional information or verify the users
|
8
|
+
identity through a third-party service such as BlockScore.
|
9
|
+
|
10
|
+
|
5
11
|
## Instalation
|
6
12
|
|
7
|
-
Simply add
|
13
|
+
Simply add DeviseVerifiable to your application's Gemfile:
|
8
14
|
|
15
|
+
```
|
9
16
|
gem 'devise'
|
10
17
|
gem 'devise-verifiable'
|
18
|
+
```
|
11
19
|
|
12
20
|
## Configuration
|
13
21
|
|
22
|
+
DeviseVerifiable adds a configuration variable called
|
23
|
+
`fields_for_verification`. It configures which fields will be filled in the verification step:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
Devise.setup do |config|
|
27
|
+
config.fields_for_verification = [:full_name, :address]
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
To include DeviseVerifiable in a model, add the `verifiable`
|
32
|
+
module to Devise modules:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
class User < ActiveRecord::Base
|
36
|
+
devise :database_authenticatable, :registerable, :verifiable
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
|
41
|
+
If you have multiple models configured with devise, define the fields for verification individually using the `verify_fields` method:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
class User < ActiveRecord::Base
|
45
|
+
devise :database_authenticatable, :registerable, :verifiable
|
46
|
+
|
47
|
+
verify_fields :full_name, :address
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
To restrict unverified users from access certain pages, use the helper
|
52
|
+
`:authenticate_verified_user!`:
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
class HomeController < ApplicationController
|
56
|
+
# Only verified users will have access to home controller actions
|
57
|
+
before_action :authenticate_verified_user!
|
58
|
+
|
59
|
+
# ...
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
## Model
|
65
|
+
|
66
|
+
DeviseVerifiable will add some methods to your model:
|
67
|
+
|
68
|
+
**#verified?** -> this method will check if all fields used for verification are
|
69
|
+
filled.
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
user = User.new
|
73
|
+
|
74
|
+
user.verified? # => false
|
75
|
+
|
76
|
+
user.full_name = 'Rodrigo Ra'
|
77
|
+
user.address = '555, Atomic Avenue'
|
78
|
+
|
79
|
+
user.verified? # => true
|
80
|
+
```
|
81
|
+
|
82
|
+
**#valid_for_verification?** -> this method will validate all fields used for
|
83
|
+
verification and add errors messages for invalid fields. By default, it verifies
|
84
|
+
if the fields are `blank?`
|
85
|
+
|
86
|
+
|
87
|
+
```ruby
|
88
|
+
user = User.new
|
89
|
+
|
90
|
+
user.valid_for_verification? # => false
|
91
|
+
user.errors # => # <ActiveModel::Errors:0x007fe372bcc200 @base=...,
|
92
|
+
# @messages={:full_name=>["can't be blank"],
|
93
|
+
# :address=>["can't be blank"]}>
|
94
|
+
|
95
|
+
user.full_name = 'Rodrigo Ra'
|
96
|
+
user.address = '555, Atomic Avenue'
|
97
|
+
|
98
|
+
user.valid_for_verification? # => true
|
99
|
+
user.errors.empty? # => true
|
100
|
+
```
|
101
|
+
|
102
|
+
**#validate_for_verification** -> You can customize the validation for fields.
|
103
|
+
|
104
|
+
Let's say that you need validate the `zip_code`:
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
class User < ActiveRecord::Base
|
108
|
+
devise :database_authenticatable, :registerable, :verifiable
|
109
|
+
|
110
|
+
verify_fields :full_name, :address, :zip_code
|
111
|
+
|
112
|
+
protected
|
113
|
+
def validate_for_verification(field)
|
114
|
+
if field == :zip_code
|
115
|
+
# custom validation for zip_code
|
116
|
+
else
|
117
|
+
super
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
## Customizing the verification
|
124
|
+
|
125
|
+
To use a third-party service to verify the user identity.
|
126
|
+
|
127
|
+
### View
|
128
|
+
To customize the verification view, following the devise conventions, create a file in
|
129
|
+
`app/views/devise/verification` called `new.html.erb`.
|
130
|
+
|
131
|
+
### Controller
|
132
|
+
|
133
|
+
First, configure which controller you want to use in `config/routes.rb`:
|
134
|
+
|
135
|
+
devise_for :users, controllers: { verification: :custom_verification }
|
136
|
+
|
137
|
+
|
138
|
+
And create it (in this example, CustomVerificationController):
|
139
|
+
|
140
|
+
```ruby
|
141
|
+
class CustomVerificationController << Devise::VerificationController
|
142
|
+
|
143
|
+
def new
|
144
|
+
end
|
145
|
+
|
146
|
+
def create
|
147
|
+
end
|
148
|
+
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
## Example
|
153
|
+
|
154
|
+
[This app](https://github.com/Rodrigora/devise-verifiable-example) exemplifies the usage of this gem.
|
155
|
+
|
156
|
+
|
157
|
+
## Contributing
|
158
|
+
|
159
|
+
Questions or problems? Please post them on the [issue tracker](https://github.com/Rodrigora/devise-verifiable/issues).
|
160
|
+
|
161
|
+
You can contribute by doing the following:
|
162
|
+
|
163
|
+
1. Fork it
|
164
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
165
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
166
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
167
|
+
5. Create new Pull Request
|
168
|
+
|
169
|
+
To test the application run `bundle install` and then `rake test`.
|
170
|
+
|
171
|
+
## License
|
14
172
|
|
173
|
+
MIT License.
|
data/Rakefile
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -14132,3 +14132,786 @@ VerifiableTest: test_asserting_when_user_is_verified
|
|
14132
14132
|
VerifiableTest: test_Devise_configuration
|
14133
14133
|
-----------------------------------------
|
14134
14134
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14135
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14136
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14137
|
+
[1m[36mFixture Delete (1.6ms)[0m [1mDELETE FROM "users"[0m
|
14138
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "id") VALUES ('john@gmail.com', '$2a$04$Yde6klMcVO5U1k9Vkx/IPeALPU8D.gDJBa4RhKTyiYrda9J7mk9sa', '2016-04-07 20:09:27', '2016-04-07 20:09:27', 830138774)
|
14139
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("email", "encrypted_password", "full_name", "address", "created_at", "updated_at", "id") VALUES ('verified-john@gmail.com', '$2a$04$eWVWaG6YdPmAqYop8sigC.2x3FFjm6Xkeej3nWcmxPSwUuXO7ZDu6', 'Verified John Doe', '551, 5th Street', '2016-04-07 20:09:27', '2016-04-07 20:09:27', 778254699)[0m
|
14140
|
+
[1m[35m (3.8ms)[0m commit transaction
|
14141
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
14142
|
+
------------------------------------------------------------
|
14143
|
+
NavigationTest: test_shows_errors_messages_when_invalid_user
|
14144
|
+
------------------------------------------------------------
|
14145
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14146
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14147
|
+
Processing by Devise::SessionsController#new as HTML
|
14148
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (2.6ms)
|
14149
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (53.5ms)
|
14150
|
+
Completed 200 OK in 340ms (Views: 334.0ms | ActiveRecord: 0.0ms)
|
14151
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14152
|
+
Processing by Devise::SessionsController#create as HTML
|
14153
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14154
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "john@gmail.com"]]
|
14155
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14156
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["last_sign_in_at", "2016-04-07 20:09:27.582284"], ["current_sign_in_at", "2016-04-07 20:09:27.582284"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-04-07 20:09:27.583394"], ["id", 830138774]]
|
14157
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14158
|
+
Redirected to http://www.example.com/
|
14159
|
+
Completed 302 Found in 24ms (ActiveRecord: 1.0ms)
|
14160
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14161
|
+
Processing by HomeController#index as HTML
|
14162
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14163
|
+
Redirected to http://www.example.com/users/verification/new
|
14164
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14165
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
14166
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14167
|
+
Processing by Devise::VerificationController#new as HTML
|
14168
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14169
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.5ms)
|
14170
|
+
Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.1ms)
|
14171
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14172
|
+
Processing by Devise::VerificationController#new as HTML
|
14173
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14174
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.3ms)
|
14175
|
+
Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
14176
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14177
|
+
Processing by Devise::VerificationController#create as HTML
|
14178
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"", "address"=>""}, "commit"=>"Verify"}
|
14179
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14180
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.2ms)
|
14181
|
+
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
14182
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
14183
|
+
[1m[35m (0.2ms)[0m begin transaction
|
14184
|
+
--------------------------------------------------------------------------
|
14185
|
+
NavigationTest: test_verifies_the_user_filling_all_fields_for_verification
|
14186
|
+
--------------------------------------------------------------------------
|
14187
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 830138774]]
|
14188
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14189
|
+
Processing by Devise::SessionsController#new as HTML
|
14190
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.4ms)
|
14191
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.6ms)
|
14192
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
14193
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14194
|
+
Processing by Devise::SessionsController#create as HTML
|
14195
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14196
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "john@gmail.com"]]
|
14197
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14198
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-04-07 20:09:27.682447"], ["current_sign_in_at", "2016-04-07 20:09:27.682447"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-04-07 20:09:27.683065"], ["id", 830138774]]
|
14199
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14200
|
+
Redirected to http://www.example.com/
|
14201
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
14202
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14203
|
+
Processing by HomeController#index as HTML
|
14204
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14205
|
+
Redirected to http://www.example.com/users/verification/new
|
14206
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14207
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
14208
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14209
|
+
Processing by Devise::VerificationController#new as HTML
|
14210
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14211
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.4ms)
|
14212
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
14213
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14214
|
+
Processing by Devise::VerificationController#new as HTML
|
14215
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14216
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.4ms)
|
14217
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
|
14218
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14219
|
+
Processing by Devise::VerificationController#create as HTML
|
14220
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"John Doe", "address"=>"555, 5th Street"}, "commit"=>"Verify"}
|
14221
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14222
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14223
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "users" SET "full_name" = ?, "address" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["full_name", "John Doe"], ["address", "555, 5th Street"], ["updated_at", "2016-04-07 20:09:27.711257"], ["id", 830138774]]
|
14224
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14225
|
+
Redirected to http://www.example.com/
|
14226
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
|
14227
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14228
|
+
Processing by HomeController#index as HTML
|
14229
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14230
|
+
Rendered home/index.html.erb within layouts/application (0.5ms)
|
14231
|
+
Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)
|
14232
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
14233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14234
|
+
------------------------------------------------------------------
|
14235
|
+
NavigationTest: test_unverified_user_is_redirected_to_verification
|
14236
|
+
------------------------------------------------------------------
|
14237
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14238
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14239
|
+
Processing by Devise::SessionsController#new as HTML
|
14240
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.3ms)
|
14241
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.4ms)
|
14242
|
+
Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
14243
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14244
|
+
Processing by Devise::SessionsController#create as HTML
|
14245
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14246
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "john@gmail.com"]]
|
14247
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14248
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["last_sign_in_at", "2016-04-07 20:09:27.755579"], ["current_sign_in_at", "2016-04-07 20:09:27.755579"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-04-07 20:09:27.756144"], ["id", 830138774]]
|
14249
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
14250
|
+
Redirected to http://www.example.com/
|
14251
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
14252
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14253
|
+
Processing by HomeController#index as HTML
|
14254
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14255
|
+
Redirected to http://www.example.com/users/verification/new
|
14256
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14257
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
14258
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14259
|
+
Processing by Devise::VerificationController#new as HTML
|
14260
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14261
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.1ms)
|
14262
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
14263
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14264
|
+
Processing by HomeController#index as HTML
|
14265
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14266
|
+
Redirected to http://www.example.com/users/verification/new
|
14267
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14268
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
14269
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14270
|
+
Processing by Devise::VerificationController#new as HTML
|
14271
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14272
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.3ms)
|
14273
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
14274
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
14275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14276
|
+
------------------------------------------------------------------------------
|
14277
|
+
NavigationTest: test_verification_page_shows_form_with_fields_for_verification
|
14278
|
+
------------------------------------------------------------------------------
|
14279
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 830138774]]
|
14280
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14281
|
+
Processing by Devise::SessionsController#new as HTML
|
14282
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.4ms)
|
14283
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.7ms)
|
14284
|
+
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
|
14285
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14286
|
+
Processing by Devise::SessionsController#create as HTML
|
14287
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14288
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "john@gmail.com"]]
|
14289
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14290
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-04-07 20:09:27.806427"], ["current_sign_in_at", "2016-04-07 20:09:27.806427"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-04-07 20:09:27.807085"], ["id", 830138774]]
|
14291
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14292
|
+
Redirected to http://www.example.com/
|
14293
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
14294
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14295
|
+
Processing by HomeController#index as HTML
|
14296
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14297
|
+
Redirected to http://www.example.com/users/verification/new
|
14298
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14299
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
14300
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14301
|
+
Processing by Devise::VerificationController#new as HTML
|
14302
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14303
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.7ms)
|
14304
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
|
14305
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14306
|
+
Processing by Devise::VerificationController#new as HTML
|
14307
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14308
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.6ms)
|
14309
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
14310
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
14311
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14312
|
+
--------------------------------------------------------------------
|
14313
|
+
NavigationTest: test_verified_user_is_not_redirected_to_verification
|
14314
|
+
--------------------------------------------------------------------
|
14315
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 778254699]]
|
14316
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14317
|
+
Processing by Devise::SessionsController#new as HTML
|
14318
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.3ms)
|
14319
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
|
14320
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
14321
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14322
|
+
Processing by Devise::SessionsController#create as HTML
|
14323
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"verified-john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14324
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "verified-john@gmail.com"]]
|
14325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14326
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-04-07 20:09:27.854909"], ["current_sign_in_at", "2016-04-07 20:09:27.854909"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-04-07 20:09:27.855644"], ["id", 778254699]]
|
14327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14328
|
+
Redirected to http://www.example.com/
|
14329
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
|
14330
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14331
|
+
Processing by HomeController#index as HTML
|
14332
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 778254699]]
|
14333
|
+
Rendered home/index.html.erb within layouts/application (0.1ms)
|
14334
|
+
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
14335
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14336
|
+
Processing by HomeController#index as HTML
|
14337
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 778254699]]
|
14338
|
+
Rendered home/index.html.erb within layouts/application (0.1ms)
|
14339
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)
|
14340
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
14341
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14342
|
+
------------------------------------------------------------
|
14343
|
+
NavigationTest: test_root_path_requires_users_authentication
|
14344
|
+
------------------------------------------------------------
|
14345
|
+
Started GET "/" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14346
|
+
Processing by HomeController#index as HTML
|
14347
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
14348
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-04-07 17:09:27 -0300
|
14349
|
+
Processing by Devise::SessionsController#new as HTML
|
14350
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.4ms)
|
14351
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (3.2ms)
|
14352
|
+
Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)
|
14353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14355
|
+
--------------------------------
|
14356
|
+
DeviseVerifiableTest: test_truth
|
14357
|
+
--------------------------------
|
14358
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
14359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14360
|
+
-----------------------------------------
|
14361
|
+
VerifiableTest: test_Devise_configuration
|
14362
|
+
-----------------------------------------
|
14363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14365
|
+
-----------------------------------------------------
|
14366
|
+
VerifiableTest: test_refuting_when_user_isnt_verified
|
14367
|
+
-----------------------------------------------------
|
14368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14370
|
+
----------------------------------------------------
|
14371
|
+
VerifiableTest: test_asserting_when_user_is_verified
|
14372
|
+
----------------------------------------------------
|
14373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14375
|
+
--------------------------------------------------------------------
|
14376
|
+
VerifiableTest: test_adding_errors_for_empty_fields_for_verification
|
14377
|
+
--------------------------------------------------------------------
|
14378
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14379
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14380
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14381
|
+
--------------------------------------------------
|
14382
|
+
DefaultRoutingTest: test_map_new_user_verification
|
14383
|
+
--------------------------------------------------
|
14384
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14385
|
+
[1m[35m (0.3ms)[0m begin transaction
|
14386
|
+
----------------------------------------------
|
14387
|
+
DefaultRoutingTest: test_map_user_verification
|
14388
|
+
----------------------------------------------
|
14389
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14390
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14391
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14392
|
+
[1m[36mFixture Delete (1.4ms)[0m [1mDELETE FROM "users"[0m
|
14393
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "id") VALUES ('john@gmail.com', '$2a$04$clVZDhA0QS8.l5e1lCEIb.68Vpfmaa./XAKVwFqeRoi2OsuH6cYWi', '2016-12-10 14:22:55', '2016-12-10 14:22:55', 830138774)
|
14394
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("email", "encrypted_password", "full_name", "address", "created_at", "updated_at", "id") VALUES ('verified-john@gmail.com', '$2a$04$d8zJSRQhJayyUIgq4ogxZO6F4ypls2rzadURf/hi4uWW7GJgLSbTW', 'Verified John Doe', '551, 5th Street', '2016-12-10 14:22:55', '2016-12-10 14:22:55', 778254699)[0m
|
14395
|
+
[1m[35m (5.9ms)[0m commit transaction
|
14396
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14397
|
+
--------------------------------
|
14398
|
+
DeviseVerifiableTest: test_truth
|
14399
|
+
--------------------------------
|
14400
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14402
|
+
----------------------------------------------------
|
14403
|
+
VerifiableTest: test_asserting_when_user_is_verified
|
14404
|
+
----------------------------------------------------
|
14405
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14407
|
+
-----------------------------------------------------
|
14408
|
+
VerifiableTest: test_refuting_when_user_isnt_verified
|
14409
|
+
-----------------------------------------------------
|
14410
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14412
|
+
-----------------------------------------
|
14413
|
+
VerifiableTest: test_Devise_configuration
|
14414
|
+
-----------------------------------------
|
14415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
14416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14417
|
+
--------------------------------------------------------------------
|
14418
|
+
VerifiableTest: test_adding_errors_for_empty_fields_for_verification
|
14419
|
+
--------------------------------------------------------------------
|
14420
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14421
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14423
|
+
--------------------------------------------------------------------------
|
14424
|
+
NavigationTest: test_verifies_the_user_filling_all_fields_for_verification
|
14425
|
+
--------------------------------------------------------------------------
|
14426
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 830138774]]
|
14427
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14428
|
+
Processing by Devise::SessionsController#new as HTML
|
14429
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (2.7ms)
|
14430
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (39.2ms)
|
14431
|
+
Completed 200 OK in 416ms (Views: 406.8ms | ActiveRecord: 0.0ms)
|
14432
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14433
|
+
Processing by Devise::SessionsController#create as HTML
|
14434
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14435
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "john@gmail.com"]]
|
14436
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14437
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-12-10 14:22:56.526812"], ["current_sign_in_at", "2016-12-10 14:22:56.526812"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-12-10 14:22:56.527544"], ["id", 830138774]]
|
14438
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14439
|
+
Redirected to http://www.example.com/
|
14440
|
+
Completed 302 Found in 22ms (ActiveRecord: 0.8ms)
|
14441
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14442
|
+
Processing by HomeController#index as HTML
|
14443
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14444
|
+
Redirected to http://www.example.com/users/verification/new
|
14445
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14446
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
|
14447
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14448
|
+
Processing by Devise::VerificationController#new as HTML
|
14449
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14450
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (3.1ms)
|
14451
|
+
Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.1ms)
|
14452
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14453
|
+
Processing by Devise::VerificationController#new as HTML
|
14454
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14455
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.4ms)
|
14456
|
+
Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
14457
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14458
|
+
Processing by Devise::VerificationController#create as HTML
|
14459
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"John Doe", "address"=>"555, 5th Street"}, "commit"=>"Verify"}
|
14460
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14461
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14462
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "full_name" = ?, "address" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["full_name", "John Doe"], ["address", "555, 5th Street"], ["updated_at", "2016-12-10 14:22:56.608868"], ["id", 830138774]]
|
14463
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14464
|
+
Redirected to http://www.example.com/
|
14465
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
14466
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14467
|
+
Processing by HomeController#index as HTML
|
14468
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14469
|
+
Rendered home/index.html.erb within layouts/application (0.4ms)
|
14470
|
+
Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.1ms)
|
14471
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
14472
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14473
|
+
------------------------------------------------------------------
|
14474
|
+
NavigationTest: test_unverified_user_is_redirected_to_verification
|
14475
|
+
------------------------------------------------------------------
|
14476
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14477
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14478
|
+
Processing by Devise::SessionsController#new as HTML
|
14479
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.4ms)
|
14480
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
|
14481
|
+
Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
|
14482
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14483
|
+
Processing by Devise::SessionsController#create as HTML
|
14484
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14485
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "john@gmail.com"]]
|
14486
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14487
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["last_sign_in_at", "2016-12-10 14:22:56.649251"], ["current_sign_in_at", "2016-12-10 14:22:56.649251"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-12-10 14:22:56.649939"], ["id", 830138774]]
|
14488
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14489
|
+
Redirected to http://www.example.com/
|
14490
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
|
14491
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14492
|
+
Processing by HomeController#index as HTML
|
14493
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14494
|
+
Redirected to http://www.example.com/users/verification/new
|
14495
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14496
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
14497
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14498
|
+
Processing by Devise::VerificationController#new as HTML
|
14499
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14500
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.7ms)
|
14501
|
+
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)
|
14502
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14503
|
+
Processing by HomeController#index as HTML
|
14504
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14505
|
+
Redirected to http://www.example.com/users/verification/new
|
14506
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14507
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
14508
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14509
|
+
Processing by Devise::VerificationController#new as HTML
|
14510
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14511
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.3ms)
|
14512
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
14513
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
14514
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14515
|
+
------------------------------------------------------------------------------
|
14516
|
+
NavigationTest: test_verification_page_shows_form_with_fields_for_verification
|
14517
|
+
------------------------------------------------------------------------------
|
14518
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 830138774]]
|
14519
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14520
|
+
Processing by Devise::SessionsController#new as HTML
|
14521
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.3ms)
|
14522
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
|
14523
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
14524
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14525
|
+
Processing by Devise::SessionsController#create as HTML
|
14526
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14527
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "john@gmail.com"]]
|
14528
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14529
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-12-10 14:22:56.701455"], ["current_sign_in_at", "2016-12-10 14:22:56.701455"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-12-10 14:22:56.702163"], ["id", 830138774]]
|
14530
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14531
|
+
Redirected to http://www.example.com/
|
14532
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
14533
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14534
|
+
Processing by HomeController#index as HTML
|
14535
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14536
|
+
Redirected to http://www.example.com/users/verification/new
|
14537
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14538
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
|
14539
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14540
|
+
Processing by Devise::VerificationController#new as HTML
|
14541
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14542
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.2ms)
|
14543
|
+
Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
|
14544
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14545
|
+
Processing by Devise::VerificationController#new as HTML
|
14546
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14547
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.9ms)
|
14548
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
14549
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
14550
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14551
|
+
------------------------------------------------------------
|
14552
|
+
NavigationTest: test_root_path_requires_users_authentication
|
14553
|
+
------------------------------------------------------------
|
14554
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14555
|
+
Processing by HomeController#index as HTML
|
14556
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
|
14557
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14558
|
+
Processing by Devise::SessionsController#new as HTML
|
14559
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.5ms)
|
14560
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (3.1ms)
|
14561
|
+
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
14562
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14563
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14564
|
+
--------------------------------------------------------------------
|
14565
|
+
NavigationTest: test_verified_user_is_not_redirected_to_verification
|
14566
|
+
--------------------------------------------------------------------
|
14567
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 778254699]]
|
14568
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14569
|
+
Processing by Devise::SessionsController#new as HTML
|
14570
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.4ms)
|
14571
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.3ms)
|
14572
|
+
Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
|
14573
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14574
|
+
Processing by Devise::SessionsController#create as HTML
|
14575
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"verified-john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14576
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1 [["email", "verified-john@gmail.com"]]
|
14577
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
14578
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ? [["last_sign_in_at", "2016-12-10 14:22:56.792724"], ["current_sign_in_at", "2016-12-10 14:22:56.792724"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-12-10 14:22:56.793349"], ["id", 778254699]]
|
14579
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
14580
|
+
Redirected to http://www.example.com/
|
14581
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
14582
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14583
|
+
Processing by HomeController#index as HTML
|
14584
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 778254699]]
|
14585
|
+
Rendered home/index.html.erb within layouts/application (0.1ms)
|
14586
|
+
Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.1ms)
|
14587
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14588
|
+
Processing by HomeController#index as HTML
|
14589
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 778254699]]
|
14590
|
+
Rendered home/index.html.erb within layouts/application (0.1ms)
|
14591
|
+
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
14592
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
14593
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
14594
|
+
------------------------------------------------------------
|
14595
|
+
NavigationTest: test_shows_errors_messages_when_invalid_user
|
14596
|
+
------------------------------------------------------------
|
14597
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 830138774]]
|
14598
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14599
|
+
Processing by Devise::SessionsController#new as HTML
|
14600
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/shared/_links.html.erb (0.3ms)
|
14601
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-3.5.6/app/views/devise/sessions/new.html.erb within layouts/application (2.4ms)
|
14602
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
14603
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14604
|
+
Processing by Devise::SessionsController#create as HTML
|
14605
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14606
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "john@gmail.com"]]
|
14607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14608
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "users" SET "last_sign_in_at" = ?, "current_sign_in_at" = ?, "last_sign_in_ip" = ?, "current_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["last_sign_in_at", "2016-12-10 14:22:56.834586"], ["current_sign_in_at", "2016-12-10 14:22:56.834586"], ["last_sign_in_ip", "127.0.0.1"], ["current_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", "2016-12-10 14:22:56.835236"], ["id", 830138774]]
|
14609
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
14610
|
+
Redirected to http://www.example.com/
|
14611
|
+
Completed 302 Found in 9ms (ActiveRecord: 1.7ms)
|
14612
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14613
|
+
Processing by HomeController#index as HTML
|
14614
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14615
|
+
Redirected to http://www.example.com/users/verification/new
|
14616
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14617
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
|
14618
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14619
|
+
Processing by Devise::VerificationController#new as HTML
|
14620
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14621
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.2ms)
|
14622
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
14623
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14624
|
+
Processing by Devise::VerificationController#new as HTML
|
14625
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 830138774]]
|
14626
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.1ms)
|
14627
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
14628
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-12-10 12:22:56 -0200
|
14629
|
+
Processing by Devise::VerificationController#create as HTML
|
14630
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"", "address"=>""}, "commit"=>"Verify"}
|
14631
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 830138774]]
|
14632
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.9ms)
|
14633
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
14634
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
14635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14636
|
+
--------------------------------------------------
|
14637
|
+
DefaultRoutingTest: test_map_new_user_verification
|
14638
|
+
--------------------------------------------------
|
14639
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14640
|
+
[1m[35m (0.1ms)[0m begin transaction
|
14641
|
+
----------------------------------------------
|
14642
|
+
DefaultRoutingTest: test_map_user_verification
|
14643
|
+
----------------------------------------------
|
14644
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
14645
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
14646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14647
|
+
[1m[36mFixture Delete (1.6ms)[0m [1m[31mDELETE FROM "users"[0m
|
14648
|
+
[1m[36mFixture Insert (0.7ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "id") VALUES ('john@gmail.com', '$2a$04$o1lLQ8tAUtsiDrh5ZZfve.UI5mg1NEivIqGjeAArW/yBSN5OjT23i', '2016-12-10 15:01:36.453088', '2016-12-10 15:01:36.453088', 830138774)[0m
|
14649
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "encrypted_password", "full_name", "address", "created_at", "updated_at", "id") VALUES ('verified-john@gmail.com', '$2a$04$QIA60.iK6RiuX4CCYwKyL.pHf5uSZ8UFYevFFXLwFbtdUL9P3hsMS', 'Verified John Doe', '551, 5th Street', '2016-12-10 15:01:36.453088', '2016-12-10 15:01:36.453088', 778254699)[0m
|
14650
|
+
[1m[35m (3.6ms)[0m [1m[36mcommit transaction[0m
|
14651
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14652
|
+
--------------------------------------------------
|
14653
|
+
DefaultRoutingTest: test_map_new_user_verification
|
14654
|
+
--------------------------------------------------
|
14655
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14656
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14657
|
+
----------------------------------------------
|
14658
|
+
DefaultRoutingTest: test_map_user_verification
|
14659
|
+
----------------------------------------------
|
14660
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14661
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14662
|
+
------------------------------------------------------------
|
14663
|
+
NavigationTest: test_shows_errors_messages_when_invalid_user
|
14664
|
+
------------------------------------------------------------
|
14665
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14666
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:36 -0200
|
14667
|
+
Processing by Devise::SessionsController#new as HTML
|
14668
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14669
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (2.2ms)
|
14670
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (53.5ms)
|
14671
|
+
Completed 200 OK in 404ms (Views: 396.0ms | ActiveRecord: 0.0ms)
|
14672
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14673
|
+
Processing by Devise::SessionsController#create as HTML
|
14674
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14675
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["email", "john@gmail.com"], ["LIMIT", 1]]
|
14676
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14677
|
+
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", 2016-12-10 15:01:37 UTC], ["last_sign_in_at", 2016-12-10 15:01:37 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 830138774]]
|
14678
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14679
|
+
Redirected to http://www.example.com/
|
14680
|
+
Completed 302 Found in 25ms (ActiveRecord: 1.0ms)
|
14681
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14682
|
+
Processing by HomeController#index as HTML
|
14683
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14684
|
+
Redirected to http://www.example.com/users/verification/new
|
14685
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14686
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
14687
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14688
|
+
Processing by Devise::VerificationController#new as HTML
|
14689
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14690
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14691
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.3ms)
|
14692
|
+
Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.1ms)
|
14693
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14694
|
+
Processing by Devise::VerificationController#new as HTML
|
14695
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14696
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14697
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.1ms)
|
14698
|
+
Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.2ms)
|
14699
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14700
|
+
Processing by Devise::VerificationController#create as HTML
|
14701
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"", "address"=>""}, "commit"=>"Verify"}
|
14702
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14703
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14704
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.5ms)
|
14705
|
+
Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.2ms)
|
14706
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
14707
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14708
|
+
--------------------------------------------------------------------------
|
14709
|
+
NavigationTest: test_verifies_the_user_filling_all_fields_for_verification
|
14710
|
+
--------------------------------------------------------------------------
|
14711
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14712
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14713
|
+
Processing by Devise::SessionsController#new as HTML
|
14714
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14715
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.2ms)
|
14716
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (6.8ms)
|
14717
|
+
Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.0ms)
|
14718
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14719
|
+
Processing by Devise::SessionsController#create as HTML
|
14720
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14721
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["email", "john@gmail.com"], ["LIMIT", 1]]
|
14722
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14723
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", 2016-12-10 15:01:37 UTC], ["last_sign_in_at", 2016-12-10 15:01:37 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 830138774]]
|
14724
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14725
|
+
Redirected to http://www.example.com/
|
14726
|
+
Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
|
14727
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14728
|
+
Processing by HomeController#index as HTML
|
14729
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14730
|
+
Redirected to http://www.example.com/users/verification/new
|
14731
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14732
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
14733
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14734
|
+
Processing by Devise::VerificationController#new as HTML
|
14735
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14736
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14737
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.9ms)
|
14738
|
+
Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.2ms)
|
14739
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14740
|
+
Processing by Devise::VerificationController#new as HTML
|
14741
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14742
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14743
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.8ms)
|
14744
|
+
Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 0.2ms)
|
14745
|
+
Started POST "/users/verification" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14746
|
+
Processing by Devise::VerificationController#create as HTML
|
14747
|
+
Parameters: {"utf8"=>"✓", "user"=>{"full_name"=>"John Doe", "address"=>"555, 5th Street"}, "commit"=>"Verify"}
|
14748
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14749
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14750
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "users" SET "full_name" = ?, "address" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["full_name", "John Doe"], ["address", "555, 5th Street"], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 830138774]]
|
14751
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14752
|
+
Redirected to http://www.example.com/
|
14753
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
14754
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14755
|
+
Processing by HomeController#index as HTML
|
14756
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14757
|
+
Rendering home/index.html.erb within layouts/application
|
14758
|
+
Rendered home/index.html.erb within layouts/application (0.4ms)
|
14759
|
+
Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 0.1ms)
|
14760
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
14761
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14762
|
+
------------------------------------------------------------------------------
|
14763
|
+
NavigationTest: test_verification_page_shows_form_with_fields_for_verification
|
14764
|
+
------------------------------------------------------------------------------
|
14765
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14766
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14767
|
+
Processing by Devise::SessionsController#new as HTML
|
14768
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14769
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.1ms)
|
14770
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (6.9ms)
|
14771
|
+
Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.0ms)
|
14772
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14773
|
+
Processing by Devise::SessionsController#create as HTML
|
14774
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14775
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["email", "john@gmail.com"], ["LIMIT", 1]]
|
14776
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14777
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", 2016-12-10 15:01:37 UTC], ["last_sign_in_at", 2016-12-10 15:01:37 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 830138774]]
|
14778
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14779
|
+
Redirected to http://www.example.com/
|
14780
|
+
Completed 302 Found in 15ms (ActiveRecord: 0.6ms)
|
14781
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14782
|
+
Processing by HomeController#index as HTML
|
14783
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14784
|
+
Redirected to http://www.example.com/users/verification/new
|
14785
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14786
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
14787
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14788
|
+
Processing by Devise::VerificationController#new as HTML
|
14789
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14790
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14791
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.4ms)
|
14792
|
+
Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 0.1ms)
|
14793
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14794
|
+
Processing by Devise::VerificationController#new as HTML
|
14795
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14796
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14797
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.6ms)
|
14798
|
+
Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.2ms)
|
14799
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
14800
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14801
|
+
------------------------------------------------------------------
|
14802
|
+
NavigationTest: test_unverified_user_is_redirected_to_verification
|
14803
|
+
------------------------------------------------------------------
|
14804
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14805
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14806
|
+
Processing by Devise::SessionsController#new as HTML
|
14807
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14808
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.0ms)
|
14809
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (5.9ms)
|
14810
|
+
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.0ms)
|
14811
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14812
|
+
Processing by Devise::SessionsController#create as HTML
|
14813
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14814
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["email", "john@gmail.com"], ["LIMIT", 1]]
|
14815
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14816
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", 2016-12-10 15:01:37 UTC], ["last_sign_in_at", 2016-12-10 15:01:37 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 830138774]]
|
14817
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14818
|
+
Redirected to http://www.example.com/
|
14819
|
+
Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
|
14820
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14821
|
+
Processing by HomeController#index as HTML
|
14822
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14823
|
+
Redirected to http://www.example.com/users/verification/new
|
14824
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14825
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
|
14826
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14827
|
+
Processing by Devise::VerificationController#new as HTML
|
14828
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14829
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14830
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (1.8ms)
|
14831
|
+
Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 0.2ms)
|
14832
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14833
|
+
Processing by HomeController#index as HTML
|
14834
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14835
|
+
Redirected to http://www.example.com/users/verification/new
|
14836
|
+
Filter chain halted as :authenticate_verified_user! rendered or redirected
|
14837
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
14838
|
+
Started GET "/users/verification/new" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14839
|
+
Processing by Devise::VerificationController#new as HTML
|
14840
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14841
|
+
Rendering /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application
|
14842
|
+
Rendered /Users/rodrigora/Projects/devise-verifiable/app/views/devise/verification/new.erb within layouts/application (2.0ms)
|
14843
|
+
Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 0.2ms)
|
14844
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
14845
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14846
|
+
------------------------------------------------------------
|
14847
|
+
NavigationTest: test_root_path_requires_users_authentication
|
14848
|
+
------------------------------------------------------------
|
14849
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14850
|
+
Processing by HomeController#index as HTML
|
14851
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
14852
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14853
|
+
Processing by Devise::SessionsController#new as HTML
|
14854
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14855
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.0ms)
|
14856
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (6.9ms)
|
14857
|
+
Completed 200 OK in 24ms (Views: 22.8ms | ActiveRecord: 0.0ms)
|
14858
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14859
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14860
|
+
--------------------------------------------------------------------
|
14861
|
+
NavigationTest: test_verified_user_is_not_redirected_to_verification
|
14862
|
+
--------------------------------------------------------------------
|
14863
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 778254699], ["LIMIT", 1]]
|
14864
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14865
|
+
Processing by Devise::SessionsController#new as HTML
|
14866
|
+
Rendering /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application
|
14867
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/shared/_links.html.erb (1.1ms)
|
14868
|
+
Rendered /Users/rodrigora/.rvm/gems/ruby-2.2.4@devise-verifiable/gems/devise-4.2.0/app/views/devise/sessions/new.html.erb within layouts/application (7.4ms)
|
14869
|
+
Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.0ms)
|
14870
|
+
Started POST "/users/sign_in" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14871
|
+
Processing by Devise::SessionsController#create as HTML
|
14872
|
+
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"verified-john@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
|
14873
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["email", "verified-john@gmail.com"], ["LIMIT", 1]]
|
14874
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
14875
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "current_sign_in_ip" = ?, "last_sign_in_ip" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["current_sign_in_at", 2016-12-10 15:01:37 UTC], ["last_sign_in_at", 2016-12-10 15:01:37 UTC], ["current_sign_in_ip", "127.0.0.1"], ["last_sign_in_ip", "127.0.0.1"], ["sign_in_count", 1], ["updated_at", 2016-12-10 15:01:37 UTC], ["id", 778254699]]
|
14876
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
14877
|
+
Redirected to http://www.example.com/
|
14878
|
+
Completed 302 Found in 20ms (ActiveRecord: 1.0ms)
|
14879
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14880
|
+
Processing by HomeController#index as HTML
|
14881
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 778254699], ["LIMIT", 1]]
|
14882
|
+
Rendering home/index.html.erb within layouts/application
|
14883
|
+
Rendered home/index.html.erb within layouts/application (0.3ms)
|
14884
|
+
Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.2ms)
|
14885
|
+
Started GET "/" for 127.0.0.1 at 2016-12-10 13:01:37 -0200
|
14886
|
+
Processing by HomeController#index as HTML
|
14887
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 778254699], ["LIMIT", 1]]
|
14888
|
+
Rendering home/index.html.erb within layouts/application
|
14889
|
+
Rendered home/index.html.erb within layouts/application (0.3ms)
|
14890
|
+
Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
14891
|
+
[1m[35m (8.4ms)[0m [1m[31mrollback transaction[0m
|
14892
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14893
|
+
--------------------------------
|
14894
|
+
DeviseVerifiableTest: test_truth
|
14895
|
+
--------------------------------
|
14896
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14897
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14898
|
+
----------------------------------------------------
|
14899
|
+
VerifiableTest: test_asserting_when_user_is_verified
|
14900
|
+
----------------------------------------------------
|
14901
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14902
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14903
|
+
-----------------------------------------
|
14904
|
+
VerifiableTest: test_Devise_configuration
|
14905
|
+
-----------------------------------------
|
14906
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14907
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14908
|
+
--------------------------------------------------------------------
|
14909
|
+
VerifiableTest: test_adding_errors_for_empty_fields_for_verification
|
14910
|
+
--------------------------------------------------------------------
|
14911
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 830138774], ["LIMIT", 1]]
|
14912
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
14913
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14914
|
+
-----------------------------------------------------
|
14915
|
+
VerifiableTest: test_refuting_when_user_isnt_verified
|
14916
|
+
-----------------------------------------------------
|
14917
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|