proof-rails 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b258deb5a2e9c78ea8c8831678ae8ffcafd2657a
4
- data.tar.gz: 4598105d0eb4106d47b2da9227475fa244da1ed2
3
+ metadata.gz: 8b55952e04751b07177db44630c63ac07bb3ea77
4
+ data.tar.gz: b771279db48bd2bd15e08e2ac844746ff34a7b2e
5
5
  SHA512:
6
- metadata.gz: 2f44f9ad80c2cf6f43072a7e32b5e34a999d7aadb08715ac9f1aaadccfbdb0760b6d9acb553326b774d98b9842485defcdd1dbcefb863c9307f326fe580e7749
7
- data.tar.gz: 2c7196386c7bf387423cc2913c430ec3a521abf32a2e7d945746811d46a9571305808288d4360d62d77633d7163a331adca8b3a83e1e8c803d7747f08ad77eff
6
+ metadata.gz: 343e684b5b1b1f433181fc41f632196ccbae14661eef5af1e87afa2d605bffa8a8751aef7ed4a80dac0e382e1ccde0c52d1749d6ad73741a8f2390d257229afd
7
+ data.tar.gz: 4078b4186e325f1cb8de0d7394b4606c43e1269f7acb3b27198cf91e94cfe36e9b68e463aaa1caf33113a7af930d61274abd51637cd68af235f1e034513d9f10
@@ -1,15 +1,18 @@
1
1
  module Proof
2
2
  module Generators
3
- class DeviseGenerator < Rails::Generators::Base
3
+ class DeviseGenerator < Rails::Generators::NamedBase
4
4
  source_root File.expand_path('../templates', __FILE__)
5
- desc "This generator creates a 'login' route, and configures it to work with Devise."
5
+ argument :class_name, type: :string, default: "User"
6
+ desc "This generator creates a 'login' route, and configures it to work with Devise (with the default model name User)."
6
7
 
7
8
  def create_controller
8
- copy_file "authentication_controller.rb", "app/controllers/authentication_controller.rb"
9
+ controller_file = "authentication_controller.rb.erb"
10
+ destination_file = "app/controllers/authentication_controller.rb"
11
+ template controller_file, destination_file
9
12
  end
10
13
 
11
14
  def create_routes
12
- route "post 'login' => 'authentication#login'"
15
+ route "post 'login', to: 'authentication#login'"
13
16
  end
14
17
  end
15
18
  end
@@ -0,0 +1,3 @@
1
+ class AuthenticationController < ApplicationController
2
+ proof_actions authenticatable: :<%= class_name %>, authenticate: :valid_password?
3
+ end
@@ -6,11 +6,15 @@ module Proof
6
6
  end
7
7
 
8
8
  module ClassMethods
9
- def proof_actions(options={})
9
+ def proof_actions(options={}, &block)
10
10
  options[:authenticatable] ||= :User
11
11
  options[:identifier] ||= :email
12
12
  options[:password] ||= :password
13
13
  options[:authenticate] ||= :authenticate
14
+ options[:block] = nil
15
+ if block_given?
16
+ options[:block] = block
17
+ end
14
18
  cattr_accessor :proof_options
15
19
  self.proof_options = options
16
20
  include Proof::ProofActions::LocalInstanceMethods
@@ -20,9 +24,15 @@ module Proof
20
24
  module LocalInstanceMethods
21
25
  def login
22
26
  proof_class = self.class.proof_options[:authenticatable].to_s.camelize.constantize
23
- user = proof_class.find_by(self.class.proof_options[:identifier] => params[:identifier])
27
+ identifier = self.class.proof_options[:identifier]
28
+ user = proof_class.find_by(identifier => params[identifier])
24
29
  if user && user.send(self.class.proof_options[:authenticate], params[self.class.proof_options[:password]])
25
- render json: { auth_token: Proof::Token.from_data({ user_id: user.id }) }
30
+ auth_token = Proof::Token.from_data({ user_id: user.id }).to_s
31
+ json = { auth_token: auth_token }
32
+ if !self.class.proof_options[:block].nil?
33
+ json = self.class.proof_options[:block].call(user, auth_token)
34
+ end
35
+ render json: json
26
36
  else
27
37
  render json: { error: "Invalid Credentials." }, status: :unauthorized
28
38
  end
@@ -6,7 +6,15 @@ module Proof
6
6
  options[:authenticatable] ||= :User
7
7
 
8
8
  raw_token = request.headers['Authorization'].split(' ').last if request.headers['Authorization']
9
- token = Proof::Token.from_token(raw_token) if raw_token
9
+ begin
10
+ token = Proof::Token.from_token(raw_token) if raw_token
11
+ rescue JWT::ExpiredSignature
12
+ render json: { error: 'Expired Token' }, status: :unauthorized and return
13
+ rescue JWT::VerificationError
14
+ render json: { error: 'Invalid Token Signature' }, status: :unauthorized and return
15
+ rescue JWT::IncorrectAlgorithm
16
+ render json: { error: 'Token Specifies Wrong Algorithm' }, status: :unauthorized and return
17
+ end
10
18
 
11
19
  proof_class = options[:authenticatable].to_s.camelize.constantize
12
20
 
data/lib/proof/token.rb CHANGED
@@ -19,17 +19,17 @@ module Proof
19
19
 
20
20
  def self.from_data(data, secret_key=Rails.application.secrets.secret_key_base, algorithm='HS256', expiration_date=24.hours.from_now.to_i)
21
21
  # Must Clone Data Hash to Avoid Side Effects
22
- data_immutable = data.clone do |d|
23
- d[:exp] = expiration_date
24
- end
22
+ data_immutable = data.clone.merge({ exp: expiration_date })
25
23
  token = JWT.encode(data_immutable, secret_key, algorithm)
26
- new(data, secret_key, algorithm, token)
24
+ new(data_immutable, secret_key, algorithm, token)
27
25
  end
28
26
 
29
- def self.from_token(token, secret_key=Rails.application.secrets.secret_key_base)
27
+ def self.from_token(token, secret_key=Rails.application.secrets.secret_key_base, algorithm='HS256')
30
28
  decoded = JWT.decode(token, secret_key)
31
29
  data = decoded[0]
32
- algorithm = algorithm_from_header(decoded[1])
30
+ if algorithm != algorithm_from_header(decoded[1])
31
+ raise JWT::IncorrectAlgorithm.new("Payload algorithm is #{algorithm_from_header(decoded[1])} but #{algorithm} was used to Encrypt.")
32
+ end
33
33
  new(data, secret_key, algorithm, token)
34
34
  end
35
35
 
@@ -39,7 +39,7 @@ module Proof
39
39
  private_class_method :algorithm_from_header
40
40
 
41
41
  def expired?
42
- return expiration_date < Time.now.to_i
42
+ return @expiration_date < Time.now.to_i
43
43
  end
44
44
 
45
45
  def to_s
data/lib/proof/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Proof
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -0,0 +1,27 @@
1
+ require 'json'
2
+ require 'test_helper'
3
+
4
+ class BlockActionsTest < ActionController::TestCase
5
+ def setup
6
+ User.create(email: 'real@email.com', password: 'realpassword')
7
+
8
+ @controller = BlockController.new
9
+ @request = ActionController::TestRequest.new
10
+ @response = ActionController::TestResponse.new
11
+
12
+ Rails.application.routes.draw do
13
+ post 'login', to: 'block#login'
14
+ end
15
+ end
16
+
17
+ def test_proof_actions_block_works
18
+ post :login, { 'email' => 'real@email.com', 'password' => 'realpassword' }
19
+ response = JSON.parse(@response.body)
20
+
21
+ assert_response :success
22
+
23
+ assert_not_nil response['user_id']
24
+ assert_not_nil response['email']
25
+ assert_not_nil response['auth_token']
26
+ end
27
+ end
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,14 @@
1
+ class BlockController < ApplicationController
2
+ proof_actions authenticatable: :User do |user, token|
3
+ {
4
+ user_id: user.id,
5
+ email: user.email,
6
+ auth_token: token
7
+ }
8
+ end
9
+ before_action :require_proof, except: :login
10
+
11
+ def test
12
+ render json: { status: 'authorized' }
13
+ end
14
+ end
@@ -0,0 +1,2 @@
1
+ module BlockHelper
2
+ end
@@ -1,17 +0,0 @@
1
-  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (16.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateUsers (20150721184218)
6
-  (0.1ms) begin transaction
7
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150721184218"]]
9
-  (18.7ms) commit transaction
10
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
-  (0.1ms) begin transaction
12
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$10$mBfsqha7JS/1dmbEyuKcu.nkIWS8OQJfUsdtyK.KBJ8Vl0aH3Pm6a"], ["created_at", "2015-07-21 18:45:29.262150"], ["updated_at", "2015-07-21 18:45:29.262150"]]
13
-  (10.0ms) commit transaction
14
-  (0.1ms) begin transaction
15
-  (0.0ms) commit transaction
16
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
17
- User Load (1.1ms) SELECT "users".* FROM "users"
@@ -1,1758 +1,164 @@
1
-  (0.1ms) begin transaction
2
- ---------------------
3
- ProofTest: test_truth
4
- ---------------------
5
-  (0.1ms) rollback transaction
6
-  (0.1ms) begin transaction
7
- ---------------------
8
- ProofTest: test_truth
9
- ---------------------
10
-  (0.1ms) rollback transaction
11
-  (0.1ms) begin transaction
12
- ---------------------
13
- ProofTest: test_truth
14
- ---------------------
15
-  (0.0ms) rollback transaction
16
-  (0.2ms) begin transaction
17
- -----------------------------------------
18
- TokenTest: test_create_token_from_encoded
19
- -----------------------------------------
20
-  (0.1ms) rollback transaction
21
-  (0.0ms) begin transaction
22
- --------------------------------------
23
- TokenTest: test_create_token_from_data
24
- --------------------------------------
25
-  (0.0ms) rollback transaction
26
-  (0.0ms) begin transaction
27
- ---------------------
28
- ProofTest: test_truth
29
- ---------------------
30
-  (0.0ms) rollback transaction
31
-  (0.1ms) begin transaction
32
- -----------------------------------------
33
- TokenTest: test_create_token_from_encoded
34
- -----------------------------------------
35
-  (0.0ms) rollback transaction
36
-  (0.1ms) begin transaction
37
- --------------------------------------
38
- TokenTest: test_create_token_from_data
39
- --------------------------------------
40
-  (0.1ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- ---------------------
43
- ProofTest: test_truth
44
- ---------------------
45
-  (0.0ms) rollback transaction
46
-  (0.1ms) begin transaction
47
- --------------------------------------
48
- TokenTest: test_create_token_from_data
49
- --------------------------------------
50
-  (0.1ms) rollback transaction
51
-  (0.0ms) begin transaction
52
- -----------------------------------------
53
- TokenTest: test_create_token_from_encoded
54
- -----------------------------------------
55
-  (0.0ms) rollback transaction
56
-  (0.0ms) begin transaction
57
- ---------------------
58
- ProofTest: test_truth
59
- ---------------------
60
-  (0.0ms) rollback transaction
61
-  (0.1ms) begin transaction
62
- ---------------------
63
- ProofTest: test_truth
64
- ---------------------
65
-  (0.0ms) rollback transaction
66
-  (0.1ms) begin transaction
67
- -----------------------------------------
68
- TokenTest: test_create_token_from_encoded
69
- -----------------------------------------
70
-  (0.0ms) rollback transaction
71
-  (0.0ms) begin transaction
72
- --------------------------------------
73
- TokenTest: test_create_token_from_data
74
- --------------------------------------
75
-  (0.1ms) rollback transaction
76
-  (0.1ms) begin transaction
77
- --------------------------------------
78
- TokenTest: test_create_token_from_data
79
- --------------------------------------
80
-  (0.0ms) rollback transaction
81
-  (0.0ms) begin transaction
82
- -----------------------------------------
83
- TokenTest: test_create_token_from_encoded
84
- -----------------------------------------
85
-  (0.0ms) rollback transaction
86
-  (0.0ms) begin transaction
87
- ---------------------
88
- ProofTest: test_truth
89
- ---------------------
90
-  (0.0ms) rollback transaction
91
-  (0.1ms) begin transaction
92
- --------------------------------------
93
- TokenTest: test_create_token_from_data
94
- --------------------------------------
95
-  (0.1ms) rollback transaction
96
-  (0.0ms) begin transaction
97
- -----------------------------------------
98
- TokenTest: test_create_token_from_encoded
99
- -----------------------------------------
100
-  (0.0ms) rollback transaction
101
-  (0.0ms) begin transaction
102
- ---------------------
103
- ProofTest: test_truth
104
- ---------------------
105
-  (0.0ms) rollback transaction
106
-  (0.1ms) begin transaction
107
- ---------------------
108
- ProofTest: test_truth
109
- ---------------------
110
-  (0.0ms) rollback transaction
111
-  (0.0ms) begin transaction
112
- --------------------------------------
113
- TokenTest: test_create_token_from_data
114
- --------------------------------------
115
-  (0.0ms) rollback transaction
116
-  (0.0ms) begin transaction
117
- -----------------------------------------
118
- TokenTest: test_create_token_from_encoded
119
- -----------------------------------------
120
-  (0.1ms) rollback transaction
121
-  (0.1ms) begin transaction
122
- ---------------------
123
- ProofTest: test_truth
124
- ---------------------
125
-  (0.0ms) rollback transaction
126
-  (0.0ms) begin transaction
127
- --------------------------------------
128
- TokenTest: test_create_token_from_data
129
- --------------------------------------
130
-  (0.0ms) rollback transaction
131
-  (0.0ms) begin transaction
132
- -----------------------------------------
133
- TokenTest: test_create_token_from_encoded
134
- -----------------------------------------
135
-  (0.1ms) rollback transaction
136
-  (0.1ms) begin transaction
137
- --------------------------------------
138
- TokenTest: test_create_token_from_data
139
- --------------------------------------
140
-  (0.1ms) rollback transaction
141
-  (0.0ms) begin transaction
142
- -----------------------------------------
143
- TokenTest: test_create_token_from_encoded
144
- -----------------------------------------
145
-  (0.1ms) rollback transaction
146
-  (0.1ms) begin transaction
147
- ---------------------
148
- ProofTest: test_truth
149
- ---------------------
150
-  (0.0ms) rollback transaction
151
-  (0.1ms) begin transaction
152
- --------------------------------------
153
- TokenTest: test_create_token_from_data
154
- --------------------------------------
155
-  (0.1ms) rollback transaction
156
-  (0.0ms) begin transaction
157
- -----------------------------------------
158
- TokenTest: test_create_token_from_encoded
159
- -----------------------------------------
160
-  (0.1ms) rollback transaction
161
-  (0.1ms) begin transaction
162
- ---------------------
163
- ProofTest: test_truth
164
- ---------------------
165
-  (0.0ms) rollback transaction
166
-  (0.1ms) begin transaction
167
- --------------------------------------
168
- TokenTest: test_create_token_from_data
169
- --------------------------------------
170
-  (0.1ms) rollback transaction
171
-  (0.0ms) begin transaction
172
- -----------------------------------------
173
- TokenTest: test_create_token_from_encoded
174
- -----------------------------------------
175
-  (0.1ms) rollback transaction
176
-  (0.1ms) begin transaction
177
- ---------------------
178
- ProofTest: test_truth
179
- ---------------------
180
-  (0.0ms) rollback transaction
181
-  (0.1ms) begin transaction
182
- ---------------------
183
- ProofTest: test_truth
184
- ---------------------
185
-  (0.0ms) rollback transaction
186
-  (0.0ms) begin transaction
187
- -----------------------------------------
188
- TokenTest: test_create_token_from_encoded
189
- -----------------------------------------
190
-  (0.1ms) rollback transaction
191
-  (0.0ms) begin transaction
192
- --------------------------------------
193
- TokenTest: test_create_token_from_data
194
- --------------------------------------
195
-  (0.0ms) rollback transaction
196
-  (0.1ms) begin transaction
197
- --------------------------------------
198
- TokenTest: test_create_token_from_data
199
- --------------------------------------
200
-  (0.1ms) rollback transaction
201
-  (0.0ms) begin transaction
202
- -----------------------------------------
203
- TokenTest: test_create_token_from_encoded
204
- -----------------------------------------
205
-  (0.1ms) rollback transaction
206
-  (0.1ms) begin transaction
207
- ---------------------
208
- ProofTest: test_truth
209
- ---------------------
210
-  (0.1ms) rollback transaction
211
-  (0.1ms) begin transaction
212
- --------------------------------------
213
- TokenTest: test_create_token_from_data
214
- --------------------------------------
215
-  (0.1ms) rollback transaction
216
-  (0.0ms) begin transaction
217
- -----------------------------------------
218
- TokenTest: test_create_token_from_encoded
219
- -----------------------------------------
220
-  (0.1ms) rollback transaction
221
-  (0.0ms) begin transaction
222
- ---------------------
223
- ProofTest: test_truth
224
- ---------------------
225
-  (0.0ms) rollback transaction
226
-  (0.1ms) begin transaction
227
- ---------------------
228
- ProofTest: test_truth
229
- ---------------------
230
-  (0.0ms) rollback transaction
231
-  (0.1ms) begin transaction
232
- --------------------------------------
233
- TokenTest: test_create_token_from_data
234
- --------------------------------------
235
-  (0.0ms) rollback transaction
236
-  (0.0ms) begin transaction
237
- -----------------------------------------
238
- TokenTest: test_create_token_from_encoded
239
- -----------------------------------------
240
-  (0.1ms) rollback transaction
241
-  (0.1ms) begin transaction
242
- ---------------------
243
- ProofTest: test_truth
244
- ---------------------
245
-  (0.0ms) rollback transaction
246
-  (0.0ms) begin transaction
247
- --------------------------------------
248
- TokenTest: test_create_token_from_data
249
- --------------------------------------
250
-  (0.0ms) rollback transaction
251
-  (0.0ms) begin transaction
252
- -----------------------------------------
253
- TokenTest: test_create_token_from_encoded
254
- -----------------------------------------
255
-  (0.1ms) rollback transaction
256
-  (0.1ms) begin transaction
257
- ---------------------
258
- ProofTest: test_truth
259
- ---------------------
260
-  (0.0ms) rollback transaction
261
-  (0.1ms) begin transaction
262
- --------------------------------------
263
- TokenTest: test_create_token_from_data
264
- --------------------------------------
265
-  (0.1ms) rollback transaction
266
-  (0.0ms) begin transaction
267
- -----------------------------------------
268
- TokenTest: test_create_token_from_encoded
269
- -----------------------------------------
270
-  (0.1ms) rollback transaction
271
-  (0.1ms) begin transaction
272
- --------------------------------------
273
- TokenTest: test_create_token_from_data
274
- --------------------------------------
275
-  (0.1ms) rollback transaction
276
-  (0.0ms) begin transaction
277
- -----------------------------------------
278
- TokenTest: test_create_token_from_encoded
279
- -----------------------------------------
280
-  (0.1ms) rollback transaction
281
-  (0.1ms) begin transaction
282
- ---------------------
283
- ProofTest: test_truth
284
- ---------------------
285
-  (0.0ms) rollback transaction
286
-  (0.1ms) begin transaction
287
- ---------------------
288
- ProofTest: test_truth
289
- ---------------------
290
-  (0.1ms) rollback transaction
291
-  (0.0ms) begin transaction
292
- --------------------------------------
293
- TokenTest: test_create_token_from_data
294
- --------------------------------------
295
-  (0.0ms) rollback transaction
296
-  (0.0ms) begin transaction
297
- -----------------------------------------
298
- TokenTest: test_create_token_from_encoded
299
- -----------------------------------------
300
-  (0.1ms) rollback transaction
301
-  (0.1ms) begin transaction
302
- ---------------------
303
- ProofTest: test_truth
304
- ---------------------
305
-  (0.0ms) rollback transaction
306
-  (0.0ms) begin transaction
307
- -----------------------------------------
308
- TokenTest: test_create_token_from_encoded
309
- -----------------------------------------
310
-  (0.0ms) rollback transaction
311
-  (0.1ms) begin transaction
312
- --------------------------------------
313
- TokenTest: test_create_token_from_data
314
- --------------------------------------
315
-  (0.0ms) rollback transaction
316
-  (0.1ms) begin transaction
317
- --------------------------------------
318
- TokenTest: test_create_token_from_data
319
- --------------------------------------
320
-  (0.0ms) rollback transaction
321
-  (0.0ms) begin transaction
322
- -----------------------------------------
323
- TokenTest: test_create_token_from_encoded
324
- -----------------------------------------
325
-  (0.0ms) rollback transaction
326
-  (0.0ms) begin transaction
327
- ---------------------
328
- ProofTest: test_truth
329
- ---------------------
330
-  (0.0ms) rollback transaction
331
-  (0.1ms) begin transaction
332
- ---------------------
333
- ProofTest: test_truth
334
- ---------------------
335
-  (0.1ms) rollback transaction
336
-  (0.1ms) begin transaction
337
- -----------------------------------------
338
- TokenTest: test_create_token_from_encoded
339
- -----------------------------------------
340
-  (0.0ms) rollback transaction
341
-  (0.0ms) begin transaction
342
- --------------------------------------
343
- TokenTest: test_create_token_from_data
344
- --------------------------------------
345
-  (0.0ms) rollback transaction
346
-  (0.1ms) begin transaction
347
- ---------------------
348
- ProofTest: test_truth
349
- ---------------------
350
-  (0.0ms) rollback transaction
351
-  (0.1ms) begin transaction
352
- --------------------------------------
353
- TokenTest: test_create_token_from_data
354
- --------------------------------------
355
-  (0.0ms) rollback transaction
356
-  (0.0ms) begin transaction
357
- -----------------------------------------
358
- TokenTest: test_create_token_from_encoded
359
- -----------------------------------------
360
-  (0.0ms) rollback transaction
361
-  (0.1ms) begin transaction
362
- ---------------------
363
- ProofTest: test_truth
364
- ---------------------
365
-  (0.0ms) rollback transaction
366
-  (0.0ms) begin transaction
367
- --------------------------------------
368
- TokenTest: test_create_token_from_data
369
- --------------------------------------
370
-  (0.0ms) rollback transaction
371
-  (0.0ms) begin transaction
372
- -----------------------------------------
373
- TokenTest: test_create_token_from_encoded
374
- -----------------------------------------
375
-  (0.0ms) rollback transaction
376
-  (16.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
377
-  (5.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
378
-  (0.1ms) select sqlite_version(*)
379
-  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
380
-  (0.4ms) SELECT version FROM "schema_migrations"
381
-  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150721184218')
382
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
383
-  (0.1ms) begin transaction
384
- --------------------------------------
385
- TokenTest: test_create_token_from_data
386
- --------------------------------------
387
-  (0.0ms) rollback transaction
388
-  (0.0ms) begin transaction
389
- -----------------------------------------
390
- TokenTest: test_create_token_from_encoded
391
- -----------------------------------------
392
-  (0.0ms) rollback transaction
393
-  (0.0ms) begin transaction
394
- ---------------------
395
- ProofTest: test_truth
396
- ---------------------
397
-  (0.0ms) rollback transaction
398
-  (0.0ms) begin transaction
399
- -------------------------------------------------------------
400
- ProofActionsTest: test_proof_actions_valid_user_returns_token
401
- -------------------------------------------------------------
402
-  (0.1ms) rollback transaction
403
-  (0.1ms) begin transaction
404
- ---------------------------------------------------------
405
- ProofActionsTest: test_proof_actions_defines_login_method
406
- ---------------------------------------------------------
407
-  (0.1ms) rollback transaction
408
-  (0.1ms) begin transaction
409
- ----------------------------------------------------------------------
410
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
411
- ----------------------------------------------------------------------
412
-  (0.1ms) rollback transaction
413
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
414
-  (0.1ms) begin transaction
415
- ---------------------
416
- ProofTest: test_truth
417
- ---------------------
418
-  (0.0ms) rollback transaction
419
-  (0.1ms) begin transaction
420
- --------------------------------------
421
- TokenTest: test_create_token_from_data
422
- --------------------------------------
423
-  (0.0ms) rollback transaction
424
-  (0.0ms) begin transaction
425
- -----------------------------------------
426
- TokenTest: test_create_token_from_encoded
427
- -----------------------------------------
428
-  (0.0ms) rollback transaction
429
-  (0.0ms) begin transaction
430
- ---------------------------------------------------------
431
- ProofActionsTest: test_proof_actions_defines_login_method
432
- ---------------------------------------------------------
433
-  (0.1ms) rollback transaction
434
-  (0.0ms) begin transaction
435
- -------------------------------------------------------------
436
- ProofActionsTest: test_proof_actions_valid_user_returns_token
437
- -------------------------------------------------------------
438
-  (0.1ms) rollback transaction
439
-  (0.0ms) begin transaction
440
- ----------------------------------------------------------------------
441
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
442
- ----------------------------------------------------------------------
443
-  (0.1ms) rollback transaction
444
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
445
-  (0.1ms) begin transaction
446
- ----------------------------------------------------------------------
447
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
448
- ----------------------------------------------------------------------
449
-  (0.1ms) rollback transaction
450
-  (0.0ms) begin transaction
451
- ---------------------------------------------------------
452
- ProofActionsTest: test_proof_actions_defines_login_method
453
- ---------------------------------------------------------
454
-  (0.0ms) rollback transaction
455
-  (0.0ms) begin transaction
456
- -------------------------------------------------------------
457
- ProofActionsTest: test_proof_actions_valid_user_returns_token
458
- -------------------------------------------------------------
459
-  (0.0ms) rollback transaction
460
-  (0.0ms) begin transaction
461
- --------------------------------------
462
- TokenTest: test_create_token_from_data
463
- --------------------------------------
464
-  (0.0ms) rollback transaction
465
-  (0.0ms) begin transaction
466
- -----------------------------------------
467
- TokenTest: test_create_token_from_encoded
468
- -----------------------------------------
469
-  (0.0ms) rollback transaction
470
-  (0.1ms) begin transaction
471
- ---------------------
472
- ProofTest: test_truth
473
- ---------------------
474
-  (0.0ms) rollback transaction
475
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
476
-  (0.1ms) begin transaction
477
- ---------------------
478
- ProofTest: test_truth
479
- ---------------------
480
-  (0.0ms) rollback transaction
481
-  (0.0ms) begin transaction
482
- --------------------------------------
483
- TokenTest: test_create_token_from_data
484
- --------------------------------------
485
-  (0.0ms) rollback transaction
486
-  (0.0ms) begin transaction
487
- -----------------------------------------
488
- TokenTest: test_create_token_from_encoded
489
- -----------------------------------------
490
-  (0.0ms) rollback transaction
491
-  (0.0ms) begin transaction
492
- ---------------------------------------------------------
493
- ProofActionsTest: test_proof_actions_defines_login_method
494
- ---------------------------------------------------------
495
-  (0.1ms) rollback transaction
496
-  (0.0ms) begin transaction
497
- ----------------------------------------------------------------------
498
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
499
- ----------------------------------------------------------------------
500
- Processing by AuthenticationController#login as HTML
501
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
502
- Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
503
-  (0.1ms) rollback transaction
504
-  (0.0ms) begin transaction
505
- -------------------------------------------------------------
506
- ProofActionsTest: test_proof_actions_valid_user_returns_token
507
- -------------------------------------------------------------
508
- Processing by AuthenticationController#login as HTML
509
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
510
- Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
511
-  (0.1ms) rollback transaction
512
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
513
-  (0.1ms) begin transaction
514
- -------------------------------------------------------------
515
- ProofActionsTest: test_proof_actions_valid_user_returns_token
516
- -------------------------------------------------------------
517
- Processing by AuthenticationController#login as HTML
518
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
519
- Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
520
-  (0.1ms) rollback transaction
521
-  (0.0ms) begin transaction
522
- ---------------------------------------------------------
523
- ProofActionsTest: test_proof_actions_defines_login_method
524
- ---------------------------------------------------------
525
-  (0.1ms) rollback transaction
526
-  (0.0ms) begin transaction
527
- ----------------------------------------------------------------------
528
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
529
- ----------------------------------------------------------------------
530
- Processing by AuthenticationController#login as HTML
531
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
532
- Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
533
-  (0.1ms) rollback transaction
534
-  (0.1ms) begin transaction
535
- --------------------------------------
536
- TokenTest: test_create_token_from_data
537
- --------------------------------------
538
-  (0.1ms) rollback transaction
539
-  (0.1ms) begin transaction
540
- -----------------------------------------
541
- TokenTest: test_create_token_from_encoded
542
- -----------------------------------------
543
-  (0.0ms) rollback transaction
544
-  (0.0ms) begin transaction
545
- ---------------------
546
- ProofTest: test_truth
547
- ---------------------
548
-  (0.0ms) rollback transaction
549
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
550
-  (0.1ms) begin transaction
551
- ---------------------------------------------------------
552
- ProofActionsTest: test_proof_actions_defines_login_method
553
- ---------------------------------------------------------
554
-  (0.1ms) rollback transaction
555
-  (0.1ms) begin transaction
556
- ----------------------------------------------------------------------
557
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
558
- ----------------------------------------------------------------------
559
-  (0.1ms) rollback transaction
560
-  (0.1ms) begin transaction
561
- -------------------------------------------------------------
562
- ProofActionsTest: test_proof_actions_valid_user_returns_token
563
- -------------------------------------------------------------
564
-  (0.1ms) rollback transaction
565
-  (0.1ms) begin transaction
566
- ---------------------
567
- ProofTest: test_truth
568
- ---------------------
569
-  (0.0ms) rollback transaction
570
-  (0.0ms) begin transaction
571
- -----------------------------------------
572
- TokenTest: test_create_token_from_encoded
573
- -----------------------------------------
574
-  (0.0ms) rollback transaction
575
-  (0.0ms) begin transaction
576
- --------------------------------------
577
- TokenTest: test_create_token_from_data
578
- --------------------------------------
579
-  (0.0ms) rollback transaction
580
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
581
-  (0.1ms) begin transaction
582
- ---------------------
583
- ProofTest: test_truth
584
- ---------------------
585
-  (0.0ms) rollback transaction
586
-  (0.0ms) begin transaction
587
- --------------------------------------
588
- TokenTest: test_create_token_from_data
589
- --------------------------------------
590
-  (0.0ms) rollback transaction
591
-  (0.0ms) begin transaction
592
- -----------------------------------------
593
- TokenTest: test_create_token_from_encoded
594
- -----------------------------------------
595
-  (0.0ms) rollback transaction
596
-  (0.0ms) begin transaction
597
- -------------------------------------------------------------
598
- ProofActionsTest: test_proof_actions_valid_user_returns_token
599
- -------------------------------------------------------------
600
- Processing by AuthenticationController#login as HTML
601
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
602
- Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
603
-  (0.1ms) rollback transaction
604
-  (0.0ms) begin transaction
605
- ---------------------------------------------------------
606
- ProofActionsTest: test_proof_actions_defines_login_method
607
- ---------------------------------------------------------
608
-  (0.2ms) rollback transaction
609
-  (0.1ms) begin transaction
610
- ----------------------------------------------------------------------
611
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
612
- ----------------------------------------------------------------------
613
- Processing by AuthenticationController#login as HTML
614
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
615
- Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
616
-  (0.0ms) rollback transaction
617
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
618
-  (0.1ms) begin transaction
619
- --------------------------------------
620
- TokenTest: test_create_token_from_data
621
- --------------------------------------
622
-  (0.0ms) rollback transaction
623
-  (0.0ms) begin transaction
624
- -----------------------------------------
625
- TokenTest: test_create_token_from_encoded
626
- -----------------------------------------
627
-  (0.0ms) rollback transaction
628
-  (0.1ms) begin transaction
629
- ---------------------
630
- ProofTest: test_truth
631
- ---------------------
632
-  (0.0ms) rollback transaction
633
-  (0.1ms) begin transaction
634
- ---------------------------------------------------------
635
- ProofActionsTest: test_proof_actions_defines_login_method
636
- ---------------------------------------------------------
637
-  (0.1ms) rollback transaction
638
-  (0.0ms) begin transaction
639
- ----------------------------------------------------------------------
640
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
641
- ----------------------------------------------------------------------
642
- Processing by AuthenticationController#login as HTML
643
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
644
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
645
- Completed 401 Unauthorized in 18ms (Views: 0.2ms | ActiveRecord: 0.3ms)
646
-  (0.1ms) rollback transaction
647
-  (0.0ms) begin transaction
648
- -------------------------------------------------------------
649
- ProofActionsTest: test_proof_actions_valid_user_returns_token
650
- -------------------------------------------------------------
651
- Processing by AuthenticationController#login as HTML
652
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
653
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
654
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
655
-  (0.1ms) rollback transaction
656
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
657
-  (0.2ms) begin transaction
658
- ---------------------
659
- ProofTest: test_truth
660
- ---------------------
661
-  (0.0ms) rollback transaction
662
-  (0.1ms) begin transaction
663
- --------------------------------------
664
- TokenTest: test_create_token_from_data
665
- --------------------------------------
666
-  (0.0ms) rollback transaction
667
-  (0.0ms) begin transaction
668
- -----------------------------------------
669
- TokenTest: test_create_token_from_encoded
670
- -----------------------------------------
671
-  (0.0ms) rollback transaction
672
-  (0.1ms) begin transaction
673
- ---------------------------------------------------------
674
- ProofActionsTest: test_proof_actions_defines_login_method
675
- ---------------------------------------------------------
676
-  (0.1ms) rollback transaction
677
-  (0.0ms) begin transaction
678
- -------------------------------------------------------------
679
- ProofActionsTest: test_proof_actions_valid_user_returns_token
680
- -------------------------------------------------------------
681
- Processing by AuthenticationController#login as HTML
682
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
683
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
684
- Completed 401 Unauthorized in 11ms (Views: 0.2ms | ActiveRecord: 0.2ms)
685
-  (0.1ms) rollback transaction
686
-  (0.0ms) begin transaction
687
- ----------------------------------------------------------------------
688
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
689
- ----------------------------------------------------------------------
690
- Processing by AuthenticationController#login as HTML
691
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
692
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
693
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
694
-  (0.1ms) rollback transaction
695
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
696
-  (0.1ms) begin transaction
697
- ----------------------------------------------------------------------
698
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
699
- ----------------------------------------------------------------------
700
- Processing by AuthenticationController#login as HTML
701
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
702
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
703
- Completed 401 Unauthorized in 12ms (Views: 0.2ms | ActiveRecord: 0.3ms)
704
-  (0.1ms) rollback transaction
705
-  (0.0ms) begin transaction
706
- ---------------------------------------------------------
707
- ProofActionsTest: test_proof_actions_defines_login_method
708
- ---------------------------------------------------------
709
-  (0.0ms) rollback transaction
710
-  (0.1ms) begin transaction
711
- -------------------------------------------------------------
712
- ProofActionsTest: test_proof_actions_valid_user_returns_token
713
- -------------------------------------------------------------
714
- Processing by AuthenticationController#login as HTML
715
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
716
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
717
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
718
-  (0.1ms) rollback transaction
719
-  (0.1ms) begin transaction
720
- --------------------------------------
721
- TokenTest: test_create_token_from_data
722
- --------------------------------------
723
-  (0.2ms) rollback transaction
724
-  (0.1ms) begin transaction
725
- -----------------------------------------
726
- TokenTest: test_create_token_from_encoded
727
- -----------------------------------------
728
-  (0.1ms) rollback transaction
729
-  (0.1ms) begin transaction
730
- ---------------------
731
- ProofTest: test_truth
732
- ---------------------
733
-  (0.1ms) rollback transaction
734
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
735
-  (0.1ms) begin transaction
736
- ---------------------------------------------------------
737
- ProofActionsTest: test_proof_actions_defines_login_method
738
- ---------------------------------------------------------
739
-  (0.1ms) rollback transaction
740
-  (0.1ms) begin transaction
741
- ----------------------------------------------------------------------
742
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
743
- ----------------------------------------------------------------------
744
- Processing by AuthenticationController#login as HTML
745
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
746
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
747
- Completed 401 Unauthorized in 13ms (Views: 0.3ms | ActiveRecord: 0.4ms)
748
-  (0.1ms) rollback transaction
749
-  (0.0ms) begin transaction
750
- -------------------------------------------------------------
751
- ProofActionsTest: test_proof_actions_valid_user_returns_token
752
- -------------------------------------------------------------
753
- Processing by AuthenticationController#login as HTML
754
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
755
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
756
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
757
-  (0.1ms) rollback transaction
758
-  (0.1ms) begin transaction
759
- --------------------------------------
760
- TokenTest: test_create_token_from_data
761
- --------------------------------------
762
-  (0.1ms) rollback transaction
763
-  (0.1ms) begin transaction
764
- -----------------------------------------
765
- TokenTest: test_create_token_from_encoded
766
- -----------------------------------------
767
-  (0.1ms) rollback transaction
768
-  (0.1ms) begin transaction
769
- ---------------------
770
- ProofTest: test_truth
771
- ---------------------
772
-  (0.1ms) rollback transaction
773
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
774
-  (0.1ms) begin transaction
775
- --------------------------------------
776
- TokenTest: test_create_token_from_data
777
- --------------------------------------
778
-  (0.2ms) rollback transaction
779
-  (0.0ms) begin transaction
780
- -----------------------------------------
781
- TokenTest: test_create_token_from_encoded
782
- -----------------------------------------
783
-  (0.0ms) rollback transaction
784
-  (0.0ms) begin transaction
785
- ---------------------------------------------------------
786
- ProofActionsTest: test_proof_actions_defines_login_method
787
- ---------------------------------------------------------
788
-  (0.1ms) rollback transaction
789
-  (0.1ms) begin transaction
790
- ----------------------------------------------------------------------
791
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
792
- ----------------------------------------------------------------------
793
- Processing by AuthenticationController#login as HTML
794
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
795
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
796
- Completed 401 Unauthorized in 26ms (Views: 0.2ms | ActiveRecord: 0.4ms)
797
-  (0.1ms) rollback transaction
798
-  (0.0ms) begin transaction
799
- -------------------------------------------------------------
800
- ProofActionsTest: test_proof_actions_valid_user_returns_token
801
- -------------------------------------------------------------
802
- Processing by AuthenticationController#login as HTML
803
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
804
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
805
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
806
-  (0.1ms) rollback transaction
807
-  (0.0ms) begin transaction
808
- ---------------------
809
- ProofTest: test_truth
810
- ---------------------
811
-  (0.0ms) rollback transaction
812
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
813
-  (0.1ms) begin transaction
814
- -------------------------------------------------------------
815
- ProofActionsTest: test_proof_actions_valid_user_returns_token
816
- -------------------------------------------------------------
817
- Processing by AuthenticationController#login as HTML
818
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
819
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
820
- Completed 404 Not Found in 11ms (ActiveRecord: 0.4ms)
821
-  (0.1ms) rollback transaction
822
-  (0.0ms) begin transaction
823
- ----------------------------------------------------------------------
824
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
825
- ----------------------------------------------------------------------
826
- Processing by AuthenticationController#login as HTML
827
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
828
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
829
- Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
830
-  (0.1ms) rollback transaction
831
-  (0.0ms) begin transaction
832
- ---------------------------------------------------------
833
- ProofActionsTest: test_proof_actions_defines_login_method
834
- ---------------------------------------------------------
835
-  (0.1ms) rollback transaction
836
-  (0.0ms) begin transaction
837
- ---------------------
838
- ProofTest: test_truth
839
- ---------------------
840
-  (0.0ms) rollback transaction
841
-  (0.1ms) begin transaction
842
- -----------------------------------------
843
- TokenTest: test_create_token_from_encoded
844
- -----------------------------------------
845
-  (0.1ms) rollback transaction
846
-  (0.1ms) begin transaction
847
- --------------------------------------
848
- TokenTest: test_create_token_from_data
849
- --------------------------------------
850
-  (0.2ms) rollback transaction
851
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
852
-  (0.1ms) begin transaction
853
- ---------------------
854
- ProofTest: test_truth
855
- ---------------------
856
-  (0.0ms) rollback transaction
857
-  (0.1ms) begin transaction
858
- --------------------------------------
859
- TokenTest: test_create_token_from_data
860
- --------------------------------------
861
-  (0.0ms) rollback transaction
862
-  (0.0ms) begin transaction
863
- -----------------------------------------
864
- TokenTest: test_create_token_from_encoded
865
- -----------------------------------------
866
-  (0.0ms) rollback transaction
867
-  (0.1ms) begin transaction
868
- ---------------------------------------------------------
869
- ProofActionsTest: test_proof_actions_defines_login_method
870
- ---------------------------------------------------------
871
-  (0.1ms) rollback transaction
872
-  (0.0ms) begin transaction
873
- ----------------------------------------------------------------------
874
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
875
- ----------------------------------------------------------------------
876
- Processing by AuthenticationController#login as HTML
877
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
878
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
879
- Completed 401 Unauthorized in 11ms (Views: 0.2ms | ActiveRecord: 0.3ms)
880
-  (0.1ms) rollback transaction
881
-  (0.0ms) begin transaction
882
- -------------------------------------------------------------
883
- ProofActionsTest: test_proof_actions_valid_user_returns_token
884
- -------------------------------------------------------------
885
- Processing by AuthenticationController#login as HTML
886
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
887
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
888
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
889
-  (0.1ms) rollback transaction
890
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
891
-  (0.1ms) begin transaction
892
- -----------------------------------------
893
- TokenTest: test_create_token_from_encoded
894
- -----------------------------------------
895
-  (0.1ms) rollback transaction
896
-  (0.0ms) begin transaction
897
- --------------------------------------
898
- TokenTest: test_create_token_from_data
899
- --------------------------------------
900
-  (0.0ms) rollback transaction
901
-  (0.0ms) begin transaction
902
- ----------------------------------------------------------------------
903
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
904
- ----------------------------------------------------------------------
905
- Processing by AuthenticationController#login as HTML
906
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
907
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
908
- Completed 401 Unauthorized in 15ms (Views: 0.2ms | ActiveRecord: 0.3ms)
909
-  (0.1ms) rollback transaction
910
-  (0.0ms) begin transaction
911
- -------------------------------------------------------------
912
- ProofActionsTest: test_proof_actions_valid_user_returns_token
913
- -------------------------------------------------------------
914
- Processing by AuthenticationController#login as HTML
915
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
916
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
917
- Completed 401 Unauthorized in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
918
-  (0.1ms) rollback transaction
919
-  (0.1ms) begin transaction
920
- ---------------------------------------------------------
921
- ProofActionsTest: test_proof_actions_defines_login_method
922
- ---------------------------------------------------------
923
-  (0.1ms) rollback transaction
924
-  (0.1ms) begin transaction
925
- ---------------------
926
- ProofTest: test_truth
927
- ---------------------
928
-  (0.0ms) rollback transaction
929
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
930
-  (0.1ms) begin transaction
931
- ---------------------------------------------------------
932
- ProofActionsTest: test_proof_actions_defines_login_method
933
- ---------------------------------------------------------
934
-  (0.1ms) SAVEPOINT active_record_1
935
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$RuVCYb3r5pTJxro0neYQauOtz4Q0URCRf6iBuIJaJ6lTDuGfRHnNC"], ["created_at", "2015-07-21 19:10:19.012762"], ["updated_at", "2015-07-21 19:10:19.012762"]]
936
-  (0.0ms) RELEASE SAVEPOINT active_record_1
937
-  (0.3ms) rollback transaction
938
-  (0.1ms) begin transaction
939
- ----------------------------------------------------------------------
940
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
941
- ----------------------------------------------------------------------
942
-  (0.1ms) SAVEPOINT active_record_1
943
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$eTP13.eeiMk4V/CxASUMTuAzWlZ3B4/TTub/7PvSVO8pBXvhiUR8W"], ["created_at", "2015-07-21 19:10:19.024797"], ["updated_at", "2015-07-21 19:10:19.024797"]]
944
-  (0.1ms) RELEASE SAVEPOINT active_record_1
945
- Processing by AuthenticationController#login as HTML
946
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
947
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
948
- Completed 401 Unauthorized in 7ms (Views: 0.2ms | ActiveRecord: 0.1ms)
949
-  (0.1ms) rollback transaction
950
-  (0.0ms) begin transaction
951
- -------------------------------------------------------------
952
- ProofActionsTest: test_proof_actions_valid_user_returns_token
953
- -------------------------------------------------------------
954
-  (0.0ms) SAVEPOINT active_record_1
955
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$9/YdLydJQ3c5U8r.fHm2Mu99Dx27img1nOfljkL0e/Co7EhpDWmB2"], ["created_at", "2015-07-21 19:10:19.039575"], ["updated_at", "2015-07-21 19:10:19.039575"]]
956
-  (0.0ms) RELEASE SAVEPOINT active_record_1
957
- Processing by AuthenticationController#login as HTML
958
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
959
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
960
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
961
-  (0.1ms) rollback transaction
962
-  (0.1ms) begin transaction
963
- --------------------------------------
964
- TokenTest: test_create_token_from_data
965
- --------------------------------------
966
-  (0.0ms) rollback transaction
967
-  (0.0ms) begin transaction
968
- -----------------------------------------
969
- TokenTest: test_create_token_from_encoded
970
- -----------------------------------------
971
-  (0.0ms) rollback transaction
972
-  (0.1ms) begin transaction
973
- ---------------------
974
- ProofTest: test_truth
975
- ---------------------
976
-  (0.1ms) rollback transaction
977
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
978
-  (0.1ms) begin transaction
979
- ---------------------------------------------------------
980
- ProofActionsTest: test_proof_actions_defines_login_method
981
- ---------------------------------------------------------
982
-  (0.1ms) SAVEPOINT active_record_1
983
- SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$Vr9p9bD7HZ1uAQ5D968XNuEY.RjO3ThBwZcptfpv3dJkTl4UmzzhO"], ["created_at", "2015-07-21 21:21:11.790523"], ["updated_at", "2015-07-21 21:21:11.790523"]]
984
-  (0.1ms) RELEASE SAVEPOINT active_record_1
985
-  (0.1ms) rollback transaction
986
-  (0.0ms) begin transaction
987
- ----------------------------------------------------------------------
988
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
989
- ----------------------------------------------------------------------
990
-  (0.1ms) SAVEPOINT active_record_1
991
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$EUFja0UpwMTXkXBbt9i9AuTVCi8mSS/Lo0fV6w8lti0gbakGV2qqq"], ["created_at", "2015-07-21 21:21:11.801914"], ["updated_at", "2015-07-21 21:21:11.801914"]]
992
-  (0.0ms) RELEASE SAVEPOINT active_record_1
993
- Processing by AuthenticationController#login as HTML
994
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
995
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
996
- Completed 401 Unauthorized in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
997
-  (0.2ms) rollback transaction
998
-  (0.1ms) begin transaction
999
- -------------------------------------------------------------
1000
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1001
- -------------------------------------------------------------
1002
-  (0.1ms) SAVEPOINT active_record_1
1003
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$.PEK1x.5oEnqlwJw2IeglO1HkG/HOgE7VBRbdV/2qt.8ocpNucHjK"], ["created_at", "2015-07-21 21:21:11.815044"], ["updated_at", "2015-07-21 21:21:11.815044"]]
1004
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1005
- Processing by AuthenticationController#login as HTML
1006
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1007
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1008
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1009
-  (0.1ms) rollback transaction
1010
-  (0.1ms) begin transaction
1011
- ---------------------
1012
- ProofTest: test_truth
1013
- ---------------------
1014
-  (0.0ms) rollback transaction
1015
-  (0.0ms) begin transaction
1016
- --------------------------------------
1017
- TokenTest: test_create_token_from_data
1018
- --------------------------------------
1019
-  (0.0ms) rollback transaction
1020
-  (0.0ms) begin transaction
1021
- -----------------------------------------
1022
- TokenTest: test_create_token_from_encoded
1023
- -----------------------------------------
1024
-  (0.0ms) rollback transaction
1025
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1026
-  (0.1ms) begin transaction
1027
- ---------------------
1028
- ProofTest: test_truth
1029
- ---------------------
1030
-  (0.0ms) rollback transaction
1031
-  (0.0ms) begin transaction
1032
- ---------------------------------------------------------
1033
- ProofActionsTest: test_proof_actions_defines_login_method
1034
- ---------------------------------------------------------
1035
-  (0.1ms) SAVEPOINT active_record_1
1036
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$.ix1t2w55lzF.f2gZ1TP/.lRpwOwQsAiDB1Z15OPA9Ou4Us/GIvl6"], ["created_at", "2015-07-21 21:41:03.300992"], ["updated_at", "2015-07-21 21:41:03.300992"]]
1037
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
-  (0.1ms) rollback transaction
1039
-  (0.0ms) begin transaction
1040
- -------------------------------------------------------------
1041
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1042
- -------------------------------------------------------------
1043
-  (0.0ms) SAVEPOINT active_record_1
1044
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$xKoiIf01BReCVQ4DsgTu2.DDecEroY2oX4PyRoWk21nderbsknis."], ["created_at", "2015-07-21 21:41:03.312001"], ["updated_at", "2015-07-21 21:41:03.312001"]]
1045
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1046
- Processing by AuthenticationController#login as HTML
1047
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1048
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1049
- Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1050
-  (0.3ms) rollback transaction
1051
-  (0.1ms) begin transaction
1052
- ----------------------------------------------------------------------
1053
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1054
- ----------------------------------------------------------------------
1055
-  (0.1ms) SAVEPOINT active_record_1
1056
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$8zs1r/V.C4K4kuKgBY2js.6.pHgbMZcs8QWqwdFVRqWp43Ve3duMq"], ["created_at", "2015-07-21 21:41:03.328618"], ["updated_at", "2015-07-21 21:41:03.328618"]]
1057
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1058
- Processing by AuthenticationController#login as HTML
1059
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1060
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1061
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1062
-  (0.1ms) rollback transaction
1063
-  (0.0ms) begin transaction
1064
- --------------------------------------
1065
- TokenTest: test_create_token_from_data
1066
- --------------------------------------
1067
-  (0.0ms) rollback transaction
1068
-  (0.0ms) begin transaction
1069
- -----------------------------------------
1070
- TokenTest: test_create_token_from_encoded
1071
- -----------------------------------------
1072
-  (0.0ms) rollback transaction
1073
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1074
-  (0.1ms) begin transaction
1075
- ---------------------
1076
- ProofTest: test_truth
1077
- ---------------------
1078
-  (0.0ms) rollback transaction
1079
-  (0.0ms) begin transaction
1080
- ---------------------------------------------------------
1081
- RequireProofTest: test_request_unauthorized_without_token
1082
- ---------------------------------------------------------
1083
-  (0.1ms) rollback transaction
1084
-  (0.0ms) begin transaction
1085
- -----------------------------------------
1086
- TokenTest: test_create_token_from_encoded
1087
- -----------------------------------------
1088
-  (0.1ms) rollback transaction
1089
-  (0.0ms) begin transaction
1090
- --------------------------------------
1091
- TokenTest: test_create_token_from_data
1092
- --------------------------------------
1093
-  (0.0ms) rollback transaction
1094
-  (0.0ms) begin transaction
1095
- ----------------------------------------------------------------------
1096
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1097
- ----------------------------------------------------------------------
1098
-  (0.1ms) SAVEPOINT active_record_1
1099
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$28FH8orC66bmfSnXf2q61.xROCjnCc6IpCQJvHEufT3MLPPYxeaAO"], ["created_at", "2015-07-21 21:44:13.773722"], ["updated_at", "2015-07-21 21:44:13.773722"]]
1100
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
- Processing by AuthenticationController#login as HTML
1102
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1103
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1104
- Completed 401 Unauthorized in 7ms (Views: 0.4ms | ActiveRecord: 0.2ms)
1105
-  (0.2ms) rollback transaction
1106
-  (0.1ms) begin transaction
1107
- ---------------------------------------------------------
1108
- ProofActionsTest: test_proof_actions_defines_login_method
1109
- ---------------------------------------------------------
1110
-  (0.1ms) SAVEPOINT active_record_1
1111
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$1Wt17xyjjBNbG4260YUzrubqlhv0tfJAeiaPL7voJNcCq5O6YcXzm"], ["created_at", "2015-07-21 21:44:13.793551"], ["updated_at", "2015-07-21 21:44:13.793551"]]
1112
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1113
-  (0.1ms) rollback transaction
1114
-  (0.0ms) begin transaction
1115
- -------------------------------------------------------------
1116
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1117
- -------------------------------------------------------------
1118
-  (0.1ms) SAVEPOINT active_record_1
1119
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$8rPizr7.T2u/oDTC3v91aOku1W3sCMcnTnLZywDFUZIExQrNbD5ta"], ["created_at", "2015-07-21 21:44:13.798626"], ["updated_at", "2015-07-21 21:44:13.798626"]]
1120
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1121
- Processing by AuthenticationController#login as HTML
1122
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1123
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1124
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1125
-  (0.1ms) rollback transaction
1126
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1127
-  (0.1ms) begin transaction
1128
- ---------------------------------------------------------
1129
- ProofActionsTest: test_proof_actions_defines_login_method
1130
- ---------------------------------------------------------
1131
-  (0.1ms) SAVEPOINT active_record_1
1132
- SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$NOB7Uhv52hcCT0.t54Oz4eujDjPCIocKRAgWDZ.bhiBKFHMLFmxcm"], ["created_at", "2015-07-21 21:44:48.204341"], ["updated_at", "2015-07-21 21:44:48.204341"]]
1133
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1134
-  (0.1ms) rollback transaction
1135
-  (0.0ms) begin transaction
1136
- ----------------------------------------------------------------------
1137
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1138
- ----------------------------------------------------------------------
1139
-  (0.0ms) SAVEPOINT active_record_1
1140
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$4mYxFypfxbN6wyevhYHCXuKIGy0gw5reyySH7cIUlFenhbVlLZNVO"], ["created_at", "2015-07-21 21:44:48.216155"], ["updated_at", "2015-07-21 21:44:48.216155"]]
1141
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
- Processing by AuthenticationController#login as HTML
1143
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1144
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1145
- Completed 401 Unauthorized in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1146
-  (0.2ms) rollback transaction
1147
-  (0.1ms) begin transaction
1148
- -------------------------------------------------------------
1149
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1150
- -------------------------------------------------------------
1151
-  (0.1ms) SAVEPOINT active_record_1
1152
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$Gx2fD.R7atQlJvWXVuxaeOfdYJqNtGISfV8bFvt3d5b0Yqda5jX/a"], ["created_at", "2015-07-21 21:44:48.231772"], ["updated_at", "2015-07-21 21:44:48.231772"]]
1153
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1154
- Processing by AuthenticationController#login as HTML
1155
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1156
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1157
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1158
-  (0.1ms) rollback transaction
1159
-  (0.1ms) begin transaction
1160
- --------------------------------------
1161
- TokenTest: test_create_token_from_data
1162
- --------------------------------------
1163
-  (0.0ms) rollback transaction
1164
-  (0.0ms) begin transaction
1165
- -----------------------------------------
1166
- TokenTest: test_create_token_from_encoded
1167
- -----------------------------------------
1168
-  (0.0ms) rollback transaction
1169
-  (0.0ms) begin transaction
1170
- ---------------------
1171
- ProofTest: test_truth
1172
- ---------------------
1173
-  (0.0ms) rollback transaction
1174
-  (0.0ms) begin transaction
1175
- ---------------------------------------------------------
1176
- RequireProofTest: test_request_unauthorized_without_token
1177
- ---------------------------------------------------------
1178
-  (0.1ms) rollback transaction
1179
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1180
-  (0.1ms) begin transaction
1181
- ---------------------------------------------------------
1182
- RequireProofTest: test_request_unauthorized_without_token
1183
- ---------------------------------------------------------
1184
- Processing by AuthenticationController#test as HTML
1185
- Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1186
-  (0.1ms) rollback transaction
1187
-  (0.1ms) begin transaction
1188
- ----------------------------------------------------------------------
1189
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1190
- ----------------------------------------------------------------------
1191
-  (0.1ms) SAVEPOINT active_record_1
1192
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$b91Da.zBx2ohBBgNGq4km.Ee1/uQuWeyIyq1QQb5wG/nY0pPgRtWS"], ["created_at", "2015-07-21 21:45:36.354550"], ["updated_at", "2015-07-21 21:45:36.354550"]]
1193
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1194
- Processing by AuthenticationController#login as HTML
1195
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1196
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1197
- Completed 401 Unauthorized in 5ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1198
-  (0.3ms) rollback transaction
1199
-  (0.1ms) begin transaction
1200
- ---------------------------------------------------------
1201
- ProofActionsTest: test_proof_actions_defines_login_method
1202
- ---------------------------------------------------------
1203
-  (0.1ms) SAVEPOINT active_record_1
1204
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$7.F56A/e24HPVNaLDMMH8.b1Wuafagez276AW7EnGhe0je6Ef7nbK"], ["created_at", "2015-07-21 21:45:36.368545"], ["updated_at", "2015-07-21 21:45:36.368545"]]
1205
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1206
-  (0.2ms) rollback transaction
1207
-  (0.1ms) begin transaction
1208
- -------------------------------------------------------------
1209
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1210
- -------------------------------------------------------------
1211
-  (0.0ms) SAVEPOINT active_record_1
1212
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$o3NJ5Dh2mH8XGtZ0qJG8buKSsK3XySX85wQI8Q7bVRRwjDZCp/ciK"], ["created_at", "2015-07-21 21:45:36.374885"], ["updated_at", "2015-07-21 21:45:36.374885"]]
1213
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
- Processing by AuthenticationController#login as HTML
1215
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1216
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1217
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1218
-  (0.1ms) rollback transaction
1219
-  (0.0ms) begin transaction
1220
- ---------------------
1221
- ProofTest: test_truth
1222
- ---------------------
1223
-  (0.0ms) rollback transaction
1224
-  (0.0ms) begin transaction
1225
- -----------------------------------------
1226
- TokenTest: test_create_token_from_encoded
1227
- -----------------------------------------
1228
-  (0.0ms) rollback transaction
1229
-  (0.0ms) begin transaction
1230
- --------------------------------------
1231
- TokenTest: test_create_token_from_data
1232
- --------------------------------------
1233
-  (0.0ms) rollback transaction
1234
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1235
-  (0.1ms) begin transaction
1236
- ---------------------
1237
- ProofTest: test_truth
1238
- ---------------------
1239
-  (0.0ms) rollback transaction
1240
-  (0.0ms) begin transaction
1241
- -------------------------------------------------------------
1242
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1243
- -------------------------------------------------------------
1244
-  (0.1ms) SAVEPOINT active_record_1
1245
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$2G8DlxVupVqs3DQp2LlOnukEoJTcPaqyNPQ7QuB2oT7Iw2em.IAey"], ["created_at", "2015-07-21 21:46:35.283482"], ["updated_at", "2015-07-21 21:46:35.283482"]]
1246
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1247
- Processing by AuthenticationController#login as HTML
1248
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1249
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1250
- Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1251
-  (0.3ms) rollback transaction
1252
-  (0.1ms) begin transaction
1253
- ---------------------------------------------------------
1254
- ProofActionsTest: test_proof_actions_defines_login_method
1255
- ---------------------------------------------------------
1256
-  (0.1ms) SAVEPOINT active_record_1
1257
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$JMU4mLYa7c/AxZFbj9Ci0OL.5mU2KyQigYPJmd7VGB9Q7/g2rhrgm"], ["created_at", "2015-07-21 21:46:35.304195"], ["updated_at", "2015-07-21 21:46:35.304195"]]
1258
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1259
-  (0.2ms) rollback transaction
1260
-  (0.1ms) begin transaction
1261
- ----------------------------------------------------------------------
1262
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1263
- ----------------------------------------------------------------------
1264
-  (0.0ms) SAVEPOINT active_record_1
1265
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$vRPfo28xG309R4pJ2hgXs.MAg5qOe9e9gfNvUb/fQJ0ZH6FSREA/2"], ["created_at", "2015-07-21 21:46:35.310558"], ["updated_at", "2015-07-21 21:46:35.310558"]]
1266
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1267
- Processing by AuthenticationController#login as HTML
1268
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1269
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1270
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1271
-  (0.1ms) rollback transaction
1272
-  (0.0ms) begin transaction
1273
- ---------------------------------------------------------
1274
- RequireProofTest: test_request_unauthorized_without_token
1275
- ---------------------------------------------------------
1276
- Processing by AuthenticationController#test as HTML
1277
- Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)
1278
-  (0.1ms) rollback transaction
1279
-  (0.0ms) begin transaction
1280
- --------------------------------------
1281
- TokenTest: test_create_token_from_data
1282
- --------------------------------------
1283
-  (0.0ms) rollback transaction
1284
-  (0.0ms) begin transaction
1285
- -----------------------------------------
1286
- TokenTest: test_create_token_from_encoded
1287
- -----------------------------------------
1288
-  (0.0ms) rollback transaction
1289
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1290
-  (0.1ms) begin transaction
1291
- --------------------------------------
1292
- TokenTest: test_create_token_from_data
1293
- --------------------------------------
1294
-  (0.0ms) rollback transaction
1295
-  (0.0ms) begin transaction
1296
- -----------------------------------------
1297
- TokenTest: test_create_token_from_encoded
1298
- -----------------------------------------
1299
-  (0.0ms) rollback transaction
1300
-  (0.0ms) begin transaction
1301
- ---------------------
1302
- ProofTest: test_truth
1303
- ---------------------
1304
-  (0.0ms) rollback transaction
1305
-  (0.0ms) begin transaction
1306
- ---------------------------------------------------------
1307
- RequireProofTest: test_request_unauthorized_without_token
1308
- ---------------------------------------------------------
1309
- Processing by AuthenticationController#test as HTML
1310
- Filter chain halted as :require_proof rendered or redirected
1311
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1312
-  (0.1ms) rollback transaction
1313
-  (0.1ms) begin transaction
1314
- ---------------------------------------------------------
1315
- ProofActionsTest: test_proof_actions_defines_login_method
1316
- ---------------------------------------------------------
1317
-  (0.1ms) SAVEPOINT active_record_1
1318
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$RRWSWya5BMbSF3PxUzYEAeFx609y0X/4a3B.aRiwjtbu19Ez7IMVG"], ["created_at", "2015-07-21 21:46:56.784746"], ["updated_at", "2015-07-21 21:46:56.784746"]]
1319
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1320
-  (0.1ms) rollback transaction
1321
-  (0.0ms) begin transaction
1322
- -------------------------------------------------------------
1323
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1324
- -------------------------------------------------------------
1325
-  (0.0ms) SAVEPOINT active_record_1
1326
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$YGLFDWoRgc1n2YibESYqFeeA2BxmdVzD6JfaSceCjC5sZHH3mlmsa"], ["created_at", "2015-07-21 21:46:56.792162"], ["updated_at", "2015-07-21 21:46:56.792162"]]
1327
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1328
- Processing by AuthenticationController#login as HTML
1329
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1330
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1331
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1332
-  (0.1ms) rollback transaction
1333
-  (0.0ms) begin transaction
1334
- ----------------------------------------------------------------------
1335
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1336
- ----------------------------------------------------------------------
1337
-  (0.0ms) SAVEPOINT active_record_1
1338
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$IZmqRkiZzyVBh4140yOzq.zphZHmUbrP2mRGb0IwlGTr63uYyOw7q"], ["created_at", "2015-07-21 21:46:56.803060"], ["updated_at", "2015-07-21 21:46:56.803060"]]
1339
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1340
- Processing by AuthenticationController#login as HTML
1341
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1342
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1343
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1344
-  (0.1ms) rollback transaction
1345
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1346
-  (0.1ms) begin transaction
1347
- ---------------------------------------------------------
1348
- RequireProofTest: test_request_unauthorized_without_token
1349
- ---------------------------------------------------------
1350
- Processing by AuthenticationController#test as HTML
1351
- Filter chain halted as :require_proof rendered or redirected
1352
- Completed 401 Unauthorized in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
1353
-  (0.1ms) rollback transaction
1354
-  (0.1ms) begin transaction
1355
- --------------------------------------
1356
- TokenTest: test_create_token_from_data
1357
- --------------------------------------
1358
-  (0.0ms) rollback transaction
1359
-  (0.1ms) begin transaction
1360
- -----------------------------------------
1361
- TokenTest: test_create_token_from_encoded
1362
- -----------------------------------------
1363
-  (0.1ms) rollback transaction
1364
-  (0.1ms) begin transaction
1365
- ---------------------
1366
- ProofTest: test_truth
1367
- ---------------------
1368
-  (0.1ms) rollback transaction
1369
-  (0.1ms) begin transaction
1370
- -------------------------------------------------------------
1371
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1372
- -------------------------------------------------------------
1373
-  (0.1ms) SAVEPOINT active_record_1
1374
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$3imxnuIHbwWc0EYWWFDVNeXZgoxDP7wQG8Gm1.2XieE4fN4..KbKK"], ["created_at", "2015-07-21 22:06:45.572238"], ["updated_at", "2015-07-21 22:06:45.572238"]]
1375
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1376
- Processing by AuthenticationController#login as HTML
1377
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1378
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1379
- Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1380
-  (0.1ms) rollback transaction
1381
-  (0.1ms) begin transaction
1382
- ---------------------------------------------------------
1383
- ProofActionsTest: test_proof_actions_defines_login_method
1384
- ---------------------------------------------------------
1385
-  (0.0ms) SAVEPOINT active_record_1
1386
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$OfXSymS43kg9P7f70S2vZ.4b/NEDmKoBQGglDla3pZZX4iUpWXIAa"], ["created_at", "2015-07-21 22:06:45.584704"], ["updated_at", "2015-07-21 22:06:45.584704"]]
1387
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1388
-  (0.1ms) rollback transaction
1389
-  (0.0ms) begin transaction
1390
- ----------------------------------------------------------------------
1391
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1392
- ----------------------------------------------------------------------
1393
-  (0.1ms) SAVEPOINT active_record_1
1394
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$dhEhIZ29.onJGajOQ0.otOH/fle8xTPGdKMw/bCsTRKrJlucXaHQC"], ["created_at", "2015-07-21 22:06:45.589040"], ["updated_at", "2015-07-21 22:06:45.589040"]]
1395
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1396
- Processing by AuthenticationController#login as HTML
1397
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1398
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1399
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1400
-  (0.1ms) rollback transaction
1401
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1402
-  (0.1ms) begin transaction
1403
- ---------------------------------------------------------
1404
- ProofActionsTest: test_proof_actions_defines_login_method
1405
- ---------------------------------------------------------
1406
-  (0.1ms) SAVEPOINT active_record_1
1407
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$MfCsoovdHPTw8rYXE5hEauqLWn3pbEiRNbhiwv65E83g1qsGdE/ZS"], ["created_at", "2015-07-21 22:06:55.724223"], ["updated_at", "2015-07-21 22:06:55.724223"]]
1408
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1409
-  (0.2ms) rollback transaction
1410
-  (0.1ms) begin transaction
1411
- ----------------------------------------------------------------------
1412
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1413
- ----------------------------------------------------------------------
1414
-  (0.1ms) SAVEPOINT active_record_1
1415
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$Bd7xB4FzmhmlDajqpbDlxOzDI9gdstN6.v6NtMzCBjGLNeEDKPRWW"], ["created_at", "2015-07-21 22:06:55.750275"], ["updated_at", "2015-07-21 22:06:55.750275"]]
1416
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1417
- Processing by AuthenticationController#login as HTML
1418
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1419
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1420
- Completed 401 Unauthorized in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1421
-  (0.1ms) rollback transaction
1422
-  (0.0ms) begin transaction
1423
- -------------------------------------------------------------
1424
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1425
- -------------------------------------------------------------
1426
-  (0.0ms) SAVEPOINT active_record_1
1427
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$IBrSjGwXZRPE5AoqHl7sAeByqRItuD.vmHJkByji4nB7A.Zf9vaui"], ["created_at", "2015-07-21 22:06:55.760391"], ["updated_at", "2015-07-21 22:06:55.760391"]]
1428
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1429
- Processing by AuthenticationController#login as HTML
1430
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1431
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1432
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1433
-  (0.2ms) rollback transaction
1434
-  (0.0ms) begin transaction
1435
- ---------------------------------------------------------
1436
- RequireProofTest: test_request_unauthorized_without_token
1437
- ---------------------------------------------------------
1438
- Processing by AuthenticationController#test as HTML
1439
- Filter chain halted as :require_proof rendered or redirected
1440
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1441
-  (0.1ms) rollback transaction
1442
-  (0.1ms) begin transaction
1443
- --------------------------------------
1444
- TokenTest: test_create_token_from_data
1445
- --------------------------------------
1446
-  (0.0ms) rollback transaction
1447
-  (0.0ms) begin transaction
1448
- -----------------------------------------
1449
- TokenTest: test_create_token_from_encoded
1450
- -----------------------------------------
1451
-  (0.0ms) rollback transaction
1452
-  (0.1ms) begin transaction
1453
- ---------------------
1454
- ProofTest: test_truth
1455
- ---------------------
1456
-  (0.0ms) rollback transaction
1457
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1458
-  (0.1ms) begin transaction
1459
- ---------------------
1460
- ProofTest: test_truth
1461
- ---------------------
1462
-  (0.0ms) rollback transaction
1463
-  (0.0ms) begin transaction
1464
- ---------------------------------------------------------
1465
- RequireProofTest: test_request_unauthorized_without_token
1466
- ---------------------------------------------------------
1467
- Processing by AuthenticationController#test as HTML
1468
- Filter chain halted as :require_proof rendered or redirected
1469
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1470
-  (0.1ms) rollback transaction
1471
-  (0.1ms) begin transaction
1472
- -----------------------------------------
1473
- TokenTest: test_create_token_from_encoded
1474
- -----------------------------------------
1475
-  (0.1ms) rollback transaction
1476
-  (0.0ms) begin transaction
1477
- --------------------------------------
1478
- TokenTest: test_create_token_from_data
1479
- --------------------------------------
1480
-  (0.0ms) rollback transaction
1481
-  (0.1ms) begin transaction
1482
- -------------------------------------------------------------
1483
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1484
- -------------------------------------------------------------
1485
-  (0.1ms) SAVEPOINT active_record_1
1486
- SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$MiFPOt8hMoIifz7HoPKfWO3aaXuggb4yuj2qFtfiNPUEKJESKEgcW"], ["created_at", "2015-07-22 02:10:24.105429"], ["updated_at", "2015-07-22 02:10:24.105429"]]
1487
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1488
- Processing by AuthenticationController#login as HTML
1489
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1490
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1491
- Completed 200 OK in 9ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1492
-  (0.2ms) rollback transaction
1493
-  (0.1ms) begin transaction
1494
- ---------------------------------------------------------
1495
- ProofActionsTest: test_proof_actions_defines_login_method
1496
- ---------------------------------------------------------
1497
-  (0.0ms) SAVEPOINT active_record_1
1498
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$C5Qy98EnBAxkMJo1Zz0LK.hGepHXUNs9Uw/fRlFsUBXvWKWLWgVoG"], ["created_at", "2015-07-22 02:10:24.122828"], ["updated_at", "2015-07-22 02:10:24.122828"]]
1499
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1500
-  (0.1ms) rollback transaction
1501
-  (0.1ms) begin transaction
1502
- ----------------------------------------------------------------------
1503
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1504
- ----------------------------------------------------------------------
1505
-  (0.0ms) SAVEPOINT active_record_1
1506
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$xNMNUnyztySxtjZSk1Rc.OibiIzhCyYvxj2QKl1z.xIhCHgG5837q"], ["created_at", "2015-07-22 02:10:24.127065"], ["updated_at", "2015-07-22 02:10:24.127065"]]
1507
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1508
- Processing by AuthenticationController#login as HTML
1509
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1510
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1511
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1512
-  (0.1ms) rollback transaction
1513
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1514
-  (0.1ms) begin transaction
1515
- --------------------------------------
1516
- TokenTest: test_create_token_from_data
1517
- --------------------------------------
1518
-  (0.1ms) rollback transaction
1519
-  (0.0ms) begin transaction
1520
- -----------------------------------------
1521
- TokenTest: test_create_token_from_encoded
1522
- -----------------------------------------
1523
-  (0.0ms) rollback transaction
1524
-  (0.0ms) begin transaction
1525
- ---------------------------------------------------------
1526
- RequireProofTest: test_request_unauthorized_without_token
1527
- ---------------------------------------------------------
1528
- Processing by AuthenticationController#test as HTML
1529
- Filter chain halted as :require_proof rendered or redirected
1530
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1531
-  (0.1ms) rollback transaction
1532
-  (0.1ms) begin transaction
1533
- ---------------------------------------------------------
1534
- ProofActionsTest: test_proof_actions_defines_login_method
1535
- ---------------------------------------------------------
1536
-  (0.1ms) SAVEPOINT active_record_1
1537
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$yfNR5jmI6CduqYqDw6HR5uOuRN4dDv6uQW92iTC5eW3Y4wB50U2n6"], ["created_at", "2015-07-22 15:41:05.601334"], ["updated_at", "2015-07-22 15:41:05.601334"]]
1538
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1539
-  (0.1ms) rollback transaction
1540
-  (0.0ms) begin transaction
1541
- -------------------------------------------------------------
1542
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1543
- -------------------------------------------------------------
1544
-  (0.1ms) SAVEPOINT active_record_1
1545
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$aqY7antDbMNBoZV7X6zjcuNdErXItoyaaSPjiiot8jJQ2IlmvdDpy"], ["created_at", "2015-07-22 15:41:05.607720"], ["updated_at", "2015-07-22 15:41:05.607720"]]
1546
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1547
- Processing by AuthenticationController#login as HTML
1548
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1549
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1550
- Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1551
-  (0.1ms) rollback transaction
1552
-  (0.0ms) begin transaction
1553
- ----------------------------------------------------------------------
1554
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1555
- ----------------------------------------------------------------------
1556
-  (0.0ms) SAVEPOINT active_record_1
1557
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$iUJSsgxf6JIp9cABcn2fFuaUVDcMMhBwJD/oMviOKy3ks/7svCYde"], ["created_at", "2015-07-22 15:41:05.622215"], ["updated_at", "2015-07-22 15:41:05.622215"]]
1558
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1559
- Processing by AuthenticationController#login as HTML
1560
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1561
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1562
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1563
-  (0.1ms) rollback transaction
1564
-  (0.1ms) begin transaction
1565
- ---------------------
1566
- ProofTest: test_truth
1567
- ---------------------
1568
-  (0.0ms) rollback transaction
1
+  (10.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
+  (0.1ms) select sqlite_version(*)
4
+  (15.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT version FROM "schema_migrations"
6
+  (18.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150721184218')
1569
7
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1570
8
   (0.1ms) begin transaction
1571
- ---------------------------------------------------------
1572
- RequireProofTest: test_request_unauthorized_without_token
1573
- ---------------------------------------------------------
1574
- Processing by AuthenticationController#test as HTML
1575
- Filter chain halted as :require_proof rendered or redirected
1576
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1577
-  (0.1ms) rollback transaction
1578
-  (0.1ms) begin transaction
1579
- -------------------------------------------------------------
1580
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1581
- -------------------------------------------------------------
1582
-  (0.1ms) SAVEPOINT active_record_1
1583
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$1x9OPhdYlo6mJWgCpKY9SeTk3junYNKgDiL34R4Y9LCYZlvjg8Ml."], ["created_at", "2015-07-22 15:42:55.081387"], ["updated_at", "2015-07-22 15:42:55.081387"]]
1584
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1585
- Processing by AuthenticationController#login as HTML
1586
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1587
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1588
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1589
-  (0.1ms) rollback transaction
1590
-  (0.0ms) begin transaction
1591
- ---------------------------------------------------------
1592
- ProofActionsTest: test_proof_actions_defines_login_method
1593
- ---------------------------------------------------------
1594
-  (0.0ms) SAVEPOINT active_record_1
1595
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$XIRxo9zYkr07N33HpKwLO.nGCYykQC22w68tnCnB9vj5.cEcEWdS6"], ["created_at", "2015-07-22 15:42:55.095054"], ["updated_at", "2015-07-22 15:42:55.095054"]]
1596
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1597
-  (0.1ms) rollback transaction
1598
-  (0.1ms) begin transaction
1599
- ----------------------------------------------------------------------
1600
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1601
- ----------------------------------------------------------------------
1602
-  (0.0ms) SAVEPOINT active_record_1
1603
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$hbKmTE7tRz/yt4cJ02z9O.bq/BFf656CcdSRX7Ha642LTg.MWOZZq"], ["created_at", "2015-07-22 15:42:55.099461"], ["updated_at", "2015-07-22 15:42:55.099461"]]
1604
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1605
- Processing by AuthenticationController#login as HTML
1606
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1607
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1608
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1609
-  (0.1ms) rollback transaction
1610
-  (0.0ms) begin transaction
1611
9
  ---------------------
1612
10
  ProofTest: test_truth
1613
11
  ---------------------
1614
-  (0.0ms) rollback transaction
1615
-  (0.0ms) begin transaction
1616
- --------------------------------------
1617
- TokenTest: test_create_token_from_data
1618
- --------------------------------------
1619
-  (0.0ms) rollback transaction
1620
-  (0.0ms) begin transaction
1621
- -----------------------------------------
1622
- TokenTest: test_create_token_from_encoded
1623
- -----------------------------------------
1624
-  (0.0ms) rollback transaction
1625
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.0ms) rollback transaction
13
+  (0.1ms) begin transaction
14
+ ----------------------------------------------------
15
+ RequireProofTest: test_request_authorized_with_token
16
+ ----------------------------------------------------
17
+  (0.1ms) SAVEPOINT active_record_1
18
+ SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$G4XkY9CDlatL0.iPmlaXnePfET403g84spSmJLcJLeHmbr7/cdVUO"], ["created_at", "2015-07-28 04:31:40.158044"], ["updated_at", "2015-07-28 04:31:40.158044"]]
19
+  (0.1ms) RELEASE SAVEPOINT active_record_1
20
+ Processing by AuthenticationController#test as HTML
21
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
22
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
23
+  (0.1ms) rollback transaction
1626
24
   (0.1ms) begin transaction
1627
25
  ---------------------------------------------------------
1628
26
  RequireProofTest: test_request_unauthorized_without_token
1629
27
  ---------------------------------------------------------
28
+  (0.1ms) SAVEPOINT active_record_1
29
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$/C6KmybkMyS7MtIeNk61LOkSdO2HJByb6Xjfk46PIVYxnggxNCliO"], ["created_at", "2015-07-28 04:31:40.179678"], ["updated_at", "2015-07-28 04:31:40.179678"]]
30
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1630
31
  Processing by AuthenticationController#test as HTML
1631
32
  Filter chain halted as :require_proof rendered or redirected
1632
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1633
-  (0.1ms) rollback transaction
1634
-  (0.0ms) begin transaction
1635
- ----------------------------------------------------
1636
- RequireProofTest: test_request_authorized_with_token
1637
- ----------------------------------------------------
1638
- Processing by AuthenticationController#test as HTML
1639
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1640
- Completed 404 Not Found in 24ms (ActiveRecord: 0.8ms)
33
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1641
34
   (0.1ms) rollback transaction
1642
35
   (0.1ms) begin transaction
1643
- ---------------------
1644
- ProofTest: test_truth
1645
- ---------------------
36
+ --------------------------------------
37
+ TokenTest: test_create_token_from_data
38
+ --------------------------------------
1646
39
   (0.0ms) rollback transaction
1647
-  (0.0ms) begin transaction
40
+  (0.1ms) begin transaction
1648
41
  -----------------------------------------
1649
42
  TokenTest: test_create_token_from_encoded
1650
43
  -----------------------------------------
1651
44
   (0.0ms) rollback transaction
1652
45
   (0.0ms) begin transaction
1653
- --------------------------------------
1654
- TokenTest: test_create_token_from_data
1655
- --------------------------------------
1656
-  (0.0ms) rollback transaction
1657
-  (0.0ms) begin transaction
1658
- ----------------------------------------------------------------------
1659
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1660
- ----------------------------------------------------------------------
1661
-  (0.1ms) SAVEPOINT active_record_1
1662
- SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$82pG8T8A5h5e/tL7aIkK9ejkPSR9raUKY.CZUaPEK4SyLpkDz.fma"], ["created_at", "2015-07-22 15:46:34.524101"], ["updated_at", "2015-07-22 15:46:34.524101"]]
46
+ ---------------------------------------------------------
47
+ ProofActionsTest: test_proof_actions_defines_login_method
48
+ ---------------------------------------------------------
49
+  (0.0ms) SAVEPOINT active_record_1
50
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$xAbl6IZwAYqVZQmmkxXXmeSh3P01rMBodsY.ht7j3tGG7uiG9GZMq"], ["created_at", "2015-07-28 04:31:40.186965"], ["updated_at", "2015-07-28 04:31:40.186965"]]
1663
51
   (0.0ms) RELEASE SAVEPOINT active_record_1
1664
- Processing by AuthenticationController#login as HTML
1665
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1666
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1667
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1668
-  (0.1ms) rollback transaction
1669
-  (0.0ms) begin transaction
52
+  (0.1ms) rollback transaction
53
+  (0.1ms) begin transaction
1670
54
  -------------------------------------------------------------
1671
55
  ProofActionsTest: test_proof_actions_valid_user_returns_token
1672
56
  -------------------------------------------------------------
1673
-  (0.1ms) SAVEPOINT active_record_1
1674
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$qNg916yEabi.ldsHkOr9Ie8J4odLLVQ2Dus91AJD4hJIou.DhzyDu"], ["created_at", "2015-07-22 15:46:34.530753"], ["updated_at", "2015-07-22 15:46:34.530753"]]
1675
-  (0.0ms) RELEASE SAVEPOINT active_record_1
57
+  (0.0ms) SAVEPOINT active_record_1
58
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$NdO1C7wZwBLhkqY5NHkJpOH143wvN9F4nN5SzaAd65UZ15ZIyqD1S"], ["created_at", "2015-07-28 04:31:40.191316"], ["updated_at", "2015-07-28 04:31:40.191316"]]
59
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1676
60
  Processing by AuthenticationController#login as HTML
1677
61
  Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1678
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1679
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1680
-  (0.1ms) rollback transaction
1681
-  (0.0ms) begin transaction
1682
- ---------------------------------------------------------
1683
- ProofActionsTest: test_proof_actions_defines_login_method
1684
- ---------------------------------------------------------
1685
-  (0.1ms) SAVEPOINT active_record_1
1686
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$33htaP7M4.RoReKicehRsO./1.kqZh0bAsVvrguuCEvvz0ieZTAGi"], ["created_at", "2015-07-22 15:46:34.538101"], ["updated_at", "2015-07-22 15:46:34.538101"]]
1687
-  (0.1ms) RELEASE SAVEPOINT active_record_1
62
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
63
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1688
64
   (0.2ms) rollback transaction
1689
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1690
65
   (0.1ms) begin transaction
1691
- ---------------------------------------------------------
1692
- RequireProofTest: test_request_unauthorized_without_token
1693
- ---------------------------------------------------------
1694
- Processing by AuthenticationController#test as HTML
1695
- Filter chain halted as :require_proof rendered or redirected
1696
- Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
66
+ ----------------------------------------------------------------------
67
+ ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
68
+ ----------------------------------------------------------------------
69
+  (0.1ms) SAVEPOINT active_record_1
70
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$9OsJUR1TrYvJfB4v3VbeC.VZnFUYZXL0BC0wscZME7u74PuF.XyPG"], ["created_at", "2015-07-28 04:31:40.201174"], ["updated_at", "2015-07-28 04:31:40.201174"]]
71
+  (0.0ms) RELEASE SAVEPOINT active_record_1
72
+ Processing by AuthenticationController#login as HTML
73
+ Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
74
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
75
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1697
76
   (0.1ms) rollback transaction
77
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1698
78
   (0.1ms) begin transaction
1699
79
  ----------------------------------------------------
1700
80
  RequireProofTest: test_request_authorized_with_token
1701
81
  ----------------------------------------------------
82
+  (0.2ms) SAVEPOINT active_record_1
83
+ SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$TrpBMNxA4eNGp2oHd9INROaqfjD61LDAzqwYIn9YWfDa9QevgPLSG"], ["created_at", "2015-08-03 15:05:59.640460"], ["updated_at", "2015-08-03 15:05:59.640460"]]
84
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85
+ Processing by AuthenticationController#test as HTML
86
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
87
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
88
+  (0.1ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ ---------------------------------------------------------
91
+ RequireProofTest: test_request_unauthorized_without_token
92
+ ---------------------------------------------------------
93
+  (0.0ms) SAVEPOINT active_record_1
94
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$lbHrRpYPs8qAnUEkh4s23.RmLuyX214BHzuE8lKCZBri2cn8WX08W"], ["created_at", "2015-08-03 15:05:59.664987"], ["updated_at", "2015-08-03 15:05:59.664987"]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1702
96
  Processing by AuthenticationController#test as HTML
1703
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1704
97
  Filter chain halted as :require_proof rendered or redirected
1705
- Completed 401 Unauthorized in 12ms (Views: 0.2ms | ActiveRecord: 0.4ms)
98
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1706
99
   (0.1ms) rollback transaction
1707
100
   (0.0ms) begin transaction
1708
- ---------------------
1709
- ProofTest: test_truth
1710
- ---------------------
1711
-  (0.0ms) rollback transaction
1712
-  (0.0ms) begin transaction
1713
- -----------------------------------------
1714
- TokenTest: test_create_token_from_encoded
1715
- -----------------------------------------
1716
-  (0.0ms) rollback transaction
1717
-  (0.0ms) begin transaction
1718
- --------------------------------------
1719
- TokenTest: test_create_token_from_data
1720
- --------------------------------------
1721
-  (0.0ms) rollback transaction
1722
-  (0.1ms) begin transaction
1723
101
  ---------------------------------------------------------
1724
102
  ProofActionsTest: test_proof_actions_defines_login_method
1725
103
  ---------------------------------------------------------
1726
-  (0.1ms) SAVEPOINT active_record_1
1727
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$w2UcapBDUOqEvEFkFKoV8.olUTukQ.RrMSpFi2bGGrAWLZ8qo3aqC"], ["created_at", "2015-07-22 15:48:19.163316"], ["updated_at", "2015-07-22 15:48:19.163316"]]
1728
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
-  (0.1ms) rollback transaction
1730
-  (0.0ms) begin transaction
104
+  (0.0ms) SAVEPOINT active_record_1
105
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$tzyALhjA3RlBxvh9yVHIqOlnV7r9VhJ.CXy.ozO9dpDb/FEpJcyEe"], ["created_at", "2015-08-03 15:05:59.671034"], ["updated_at", "2015-08-03 15:05:59.671034"]]
106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
107
+  (0.2ms) rollback transaction
108
+  (0.1ms) begin transaction
1731
109
  ----------------------------------------------------------------------
1732
110
  ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1733
111
  ----------------------------------------------------------------------
1734
-  (0.0ms) SAVEPOINT active_record_1
1735
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$FLYk.eI/HqCieRueHoOzJOTgKZW1XsOnQeCalf2e69p03Ts1XWH7."], ["created_at", "2015-07-22 15:48:19.168097"], ["updated_at", "2015-07-22 15:48:19.168097"]]
1736
-  (0.1ms) RELEASE SAVEPOINT active_record_1
112
+  (0.1ms) SAVEPOINT active_record_1
113
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$DY/NlKS23aHIgwK6Z1BQq.b6vYSr9CvalTZoM9Z3/n1DFDOWNYfHu"], ["created_at", "2015-08-03 15:05:59.676731"], ["updated_at", "2015-08-03 15:05:59.676731"]]
114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1737
115
  Processing by AuthenticationController#login as HTML
1738
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
116
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
1739
117
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1740
118
  Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1741
119
   (0.1ms) rollback transaction
1742
-  (0.0ms) begin transaction
120
+  (0.1ms) begin transaction
1743
121
  -------------------------------------------------------------
1744
122
  ProofActionsTest: test_proof_actions_valid_user_returns_token
1745
123
  -------------------------------------------------------------
1746
124
   (0.0ms) SAVEPOINT active_record_1
1747
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$pjyH.n.wO9HtyYdVzKlYRewqReXO2ZhTrE5Yx13xdk2YHR04WSoDu"], ["created_at", "2015-07-22 15:48:19.174133"], ["updated_at", "2015-07-22 15:48:19.174133"]]
125
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$IVxyIIHqZ1cGFkksOaO0luOXGeY91CM3a.ekwUEySLrB0bdUZlyCS"], ["created_at", "2015-08-03 15:05:59.683583"], ["updated_at", "2015-08-03 15:05:59.683583"]]
1748
126
   (0.0ms) RELEASE SAVEPOINT active_record_1
1749
127
  Processing by AuthenticationController#login as HTML
1750
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1751
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1752
- Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1753
-  (0.1ms) rollback transaction
128
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
129
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
130
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
131
+  (0.2ms) rollback transaction
132
+  (0.1ms) begin transaction
133
+ ------------------------------------------------
134
+ BlockActionsTest: test_proof_actions_block_works
135
+ ------------------------------------------------
136
+  (0.0ms) SAVEPOINT active_record_1
137
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$V6izB4Wp5NEQ10j5FvSNgeodpKFwypc72ME9qL9hrSxQduIQj9TMK"], ["created_at", "2015-08-03 15:05:59.691467"], ["updated_at", "2015-08-03 15:05:59.691467"]]
138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139
+  (0.1ms) rollback transaction
140
+  (0.0ms) begin transaction
141
+ --------------------------------------
142
+ TokenTest: test_create_token_from_data
143
+ --------------------------------------
144
+  (0.0ms) rollback transaction
145
+  (0.1ms) begin transaction
146
+ -----------------------------------------
147
+ TokenTest: test_create_token_from_encoded
148
+ -----------------------------------------
149
+  (0.0ms) rollback transaction
150
+  (0.0ms) begin transaction
151
+ ---------------------
152
+ ProofTest: test_truth
153
+ ---------------------
154
+  (0.0ms) rollback transaction
1754
155
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1755
156
   (0.1ms) begin transaction
157
+ ---------------------
158
+ ProofTest: test_truth
159
+ ---------------------
160
+  (0.0ms) rollback transaction
161
+  (0.1ms) begin transaction
1756
162
  --------------------------------------
1757
163
  TokenTest: test_create_token_from_data
1758
164
  --------------------------------------
@@ -1762,190 +168,216 @@ TokenTest: test_create_token_from_data
1762
168
  TokenTest: test_create_token_from_encoded
1763
169
  -----------------------------------------
1764
170
   (0.0ms) rollback transaction
1765
-  (0.0ms) begin transaction
1766
- ----------------------------------------------------
1767
- RequireProofTest: test_request_authorized_with_token
1768
- ----------------------------------------------------
1769
-  (0.1ms) SAVEPOINT active_record_1
1770
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$pVf5tVZ9jbcbY8S9S/qlEeVhCWYqAC36UKTx6a89F25lkStACLEvy"], ["created_at", "2015-07-22 15:49:40.251585"], ["updated_at", "2015-07-22 15:49:40.251585"]]
1771
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1772
- Processing by AuthenticationController#test as HTML
1773
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1774
- Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1775
-  (0.2ms) rollback transaction
1776
171
   (0.1ms) begin transaction
1777
172
  ---------------------------------------------------------
1778
- RequireProofTest: test_request_unauthorized_without_token
173
+ ProofActionsTest: test_proof_actions_defines_login_method
1779
174
  ---------------------------------------------------------
1780
175
   (0.1ms) SAVEPOINT active_record_1
1781
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$GyRjUmLAS4CXOCps6/vJje4pz3NePVc333l8vQnY5hN4o603wlQe2"], ["created_at", "2015-07-22 15:49:40.281021"], ["updated_at", "2015-07-22 15:49:40.281021"]]
1782
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1783
- Processing by AuthenticationController#test as HTML
1784
- Filter chain halted as :require_proof rendered or redirected
1785
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1786
-  (0.1ms) rollback transaction
1787
-  (0.1ms) begin transaction
176
+ SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$WRJaaBzhyRcDw14kI.vp/.AbAKXscXonPX/SgIq2ZWRYryUV0vOka"], ["created_at", "2015-08-03 15:06:57.392786"], ["updated_at", "2015-08-03 15:06:57.392786"]]
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (0.3ms) rollback transaction
179
+  (0.2ms) begin transaction
1788
180
  ----------------------------------------------------------------------
1789
181
  ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1790
182
  ----------------------------------------------------------------------
1791
183
   (0.1ms) SAVEPOINT active_record_1
1792
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$3gwuTeQDpEs52tCfdZKmlumD/FMQVr7/QPVWX/oFDZTgnkeQASb2u"], ["created_at", "2015-07-22 15:49:40.287907"], ["updated_at", "2015-07-22 15:49:40.287907"]]
1793
-  (0.0ms) RELEASE SAVEPOINT active_record_1
184
+ SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$ZrlRKdf6v2PU8MqJMhl3Ze0BDV.93a8sE3W9uFjDC6Ra4AEpZ4JUO"], ["created_at", "2015-08-03 15:06:57.407512"], ["updated_at", "2015-08-03 15:06:57.407512"]]
185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1794
186
  Processing by AuthenticationController#login as HTML
1795
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1796
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1797
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
187
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
188
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
189
+ Completed 401 Unauthorized in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1798
190
   (0.1ms) rollback transaction
1799
191
   (0.0ms) begin transaction
1800
192
  -------------------------------------------------------------
1801
193
  ProofActionsTest: test_proof_actions_valid_user_returns_token
1802
194
  -------------------------------------------------------------
1803
-  (0.0ms) SAVEPOINT active_record_1
1804
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$YdU9mhct75HBImCmKjsBw.FHPJbS1pyC94qeqWAp7yheF5XARgQP6"], ["created_at", "2015-07-22 15:49:40.294516"], ["updated_at", "2015-07-22 15:49:40.294516"]]
195
+  (0.1ms) SAVEPOINT active_record_1
196
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$tP2Sca21cAMxtEvxMLqvVOZqxUNPVvToe4zmUnw0bLkQJgmiPIJhG"], ["created_at", "2015-08-03 15:06:57.420338"], ["updated_at", "2015-08-03 15:06:57.420338"]]
1805
197
   (0.0ms) RELEASE SAVEPOINT active_record_1
1806
198
  Processing by AuthenticationController#login as HTML
1807
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1808
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1809
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1810
-  (0.2ms) rollback transaction
199
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
200
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
201
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
202
+  (0.1ms) rollback transaction
203
+  (0.1ms) begin transaction
204
+ ------------------------------------------------
205
+ BlockActionsTest: test_proof_actions_block_works
206
+ ------------------------------------------------
207
+  (0.1ms) SAVEPOINT active_record_1
208
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$8OUow3rRMrnYB9gQQn7gEurtE./rnSy3erzwFwv/3IeRp1qL1fhCu"], ["created_at", "2015-08-03 15:06:57.430009"], ["updated_at", "2015-08-03 15:06:57.430009"]]
209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
210
+ Processing by BlockController#login as HTML
211
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
212
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
213
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
214
+  (0.1ms) rollback transaction
1811
215
   (0.1ms) begin transaction
216
+ ----------------------------------------------------
217
+ RequireProofTest: test_request_authorized_with_token
218
+ ----------------------------------------------------
219
+  (0.0ms) SAVEPOINT active_record_1
220
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$AITCCbUHst4proapQ/39X.CvAvYnVST6g9BIE75y3fN8eucoNCsku"], ["created_at", "2015-08-03 15:06:57.440090"], ["updated_at", "2015-08-03 15:06:57.440090"]]
221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
222
+ Processing by AuthenticationController#test as HTML
223
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
224
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
225
+  (0.1ms) rollback transaction
226
+  (0.0ms) begin transaction
1812
227
  ---------------------------------------------------------
1813
- ProofActionsTest: test_proof_actions_defines_login_method
228
+ RequireProofTest: test_request_unauthorized_without_token
1814
229
  ---------------------------------------------------------
1815
-  (0.1ms) SAVEPOINT active_record_1
1816
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$H/aBHC0Dzbj5bm3KfPSBjen0k4ZjaIZ.FjeN6bL3zLJArGdAhk/ES"], ["created_at", "2015-07-22 15:49:40.304195"], ["updated_at", "2015-07-22 15:49:40.304195"]]
230
+  (0.0ms) SAVEPOINT active_record_1
231
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$i9Pr0WNGeyysKuspdair5emkbwdRQK6R20x1vCdrjGKUsvgHKBW9q"], ["created_at", "2015-08-03 15:06:57.446555"], ["updated_at", "2015-08-03 15:06:57.446555"]]
1817
232
   (0.0ms) RELEASE SAVEPOINT active_record_1
233
+ Processing by AuthenticationController#test as HTML
234
+ Filter chain halted as :require_proof rendered or redirected
235
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1818
236
   (0.1ms) rollback transaction
1819
-  (0.1ms) begin transaction
1820
- ---------------------
1821
- ProofTest: test_truth
1822
- ---------------------
1823
-  (0.0ms) rollback transaction
1824
237
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1825
238
   (0.1ms) begin transaction
1826
- -----------------------------------------
1827
- TokenTest: test_create_token_from_encoded
1828
- -----------------------------------------
1829
-  (0.0ms) rollback transaction
1830
-  (0.0ms) begin transaction
1831
- --------------------------------------
1832
- TokenTest: test_create_token_from_data
1833
- --------------------------------------
1834
-  (0.0ms) rollback transaction
1835
-  (0.0ms) begin transaction
1836
- -------------------------------------------------------------
1837
- ProofActionsTest: test_proof_actions_valid_user_returns_token
1838
- -------------------------------------------------------------
1839
-  (0.1ms) SAVEPOINT active_record_1
1840
- SQL (0.3ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$f0W.5HSdVKB1bbMkLo43P.UBmdBdMra.4bz51RvsK2vagKc1REhVi"], ["created_at", "2015-07-22 15:50:39.142797"], ["updated_at", "2015-07-22 15:50:39.142797"]]
1841
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1842
- Processing by AuthenticationController#login as HTML
1843
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
1844
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1845
- Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1846
-  (0.1ms) rollback transaction
1847
-  (0.0ms) begin transaction
1848
- ---------------------------------------------------------
1849
- ProofActionsTest: test_proof_actions_defines_login_method
1850
- ---------------------------------------------------------
239
+ ------------------------------------------------
240
+ BlockActionsTest: test_proof_actions_block_works
241
+ ------------------------------------------------
1851
242
   (0.1ms) SAVEPOINT active_record_1
1852
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$dy8E7RJy9sU5WtXsE83j5.awWYqnv8wM5BFkxmmG8Zmh4xDRWnzxW"], ["created_at", "2015-07-22 15:50:39.165127"], ["updated_at", "2015-07-22 15:50:39.165127"]]
243
+ SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$nrEzlWiIH0zrcrJwS/IvNO/NBGkFA/zEsoL1RfHpgUrbRXLHA5B02"], ["created_at", "2015-12-14 22:12:12.737461"], ["updated_at", "2015-12-14 22:12:12.737461"]]
1853
244
   (0.0ms) RELEASE SAVEPOINT active_record_1
1854
-  (0.1ms) rollback transaction
1855
-  (0.0ms) begin transaction
1856
- ----------------------------------------------------------------------
1857
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1858
- ----------------------------------------------------------------------
1859
-  (0.0ms) SAVEPOINT active_record_1
1860
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$6ftI.NB3SXt4HalKaJ.XtOClyiF3TV1b3LCgvPatx.8iJgvQpYLLi"], ["created_at", "2015-07-22 15:50:39.169803"], ["updated_at", "2015-07-22 15:50:39.169803"]]
1861
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1862
- Processing by AuthenticationController#login as HTML
1863
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1864
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1865
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1866
-  (0.1ms) rollback transaction
245
+ Processing by BlockController#login as HTML
246
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
247
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
248
+ Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 0.1ms)
249
+  (0.1ms) rollback transaction
250
+  (0.0ms) begin transaction
251
+ ---------------------------------------------------------
252
+ RequireProofTest: test_request_unauthorized_without_token
253
+ ---------------------------------------------------------
254
+  (0.1ms) SAVEPOINT active_record_1
255
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$tvHcDagRj8EfiusSYSgdTOrZZ2Hsue90vrzPJ6oZdpjOW8YeGgUe."], ["created_at", "2015-12-14 22:12:12.760847"], ["updated_at", "2015-12-14 22:12:12.760847"]]
256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
257
+ Processing by AuthenticationController#test as HTML
258
+ Filter chain halted as :require_proof rendered or redirected
259
+ Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
260
+  (0.3ms) rollback transaction
1867
261
   (0.1ms) begin transaction
1868
262
  ----------------------------------------------------
1869
263
  RequireProofTest: test_request_authorized_with_token
1870
264
  ----------------------------------------------------
1871
-  (0.0ms) SAVEPOINT active_record_1
1872
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$z7kGi5jXcF3lV/SlbqU81efkm6Wzr8sSfm2zlDmPfp959gfBEnV3."], ["created_at", "2015-07-22 15:50:39.177184"], ["updated_at", "2015-07-22 15:50:39.177184"]]
265
+  (0.1ms) SAVEPOINT active_record_1
266
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$g3/s48VJTX4yhYk4KAzu4.SOTcmjHYqgXaF4cIhLAoMrWP0MuUnpy"], ["created_at", "2015-12-14 22:12:12.773207"], ["updated_at", "2015-12-14 22:12:12.773207"]]
1873
267
   (0.1ms) RELEASE SAVEPOINT active_record_1
1874
268
  Processing by AuthenticationController#test as HTML
1875
269
  User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1876
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
270
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
271
+  (0.4ms) rollback transaction
272
+  (0.1ms) begin transaction
273
+ --------------------------------------
274
+ TokenTest: test_create_token_from_data
275
+ --------------------------------------
276
+  (0.1ms) rollback transaction
277
+  (0.0ms) begin transaction
278
+ -----------------------------------------
279
+ TokenTest: test_create_token_from_encoded
280
+ -----------------------------------------
1877
281
   (0.1ms) rollback transaction
282
+  (0.1ms) begin transaction
283
+ ---------------------
284
+ ProofTest: test_truth
285
+ ---------------------
286
+  (0.0ms) rollback transaction
1878
287
   (0.0ms) begin transaction
1879
288
  ---------------------------------------------------------
1880
- RequireProofTest: test_request_unauthorized_without_token
289
+ ProofActionsTest: test_proof_actions_defines_login_method
1881
290
  ---------------------------------------------------------
1882
-  (0.0ms) SAVEPOINT active_record_1
1883
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$8HYJFJ/eAMdom40synMMSe6vtoKPm2WTTVFKjSkZLc6E362jFouZe"], ["created_at", "2015-07-22 15:50:39.185903"], ["updated_at", "2015-07-22 15:50:39.185903"]]
291
+  (0.1ms) SAVEPOINT active_record_1
292
+ SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$CKLi.JEPEMfhvWCrhUl34uDgIrGDxmsArEoH2g6Srq/cnL3F1wYXO"], ["created_at", "2015-12-14 22:12:12.790523"], ["updated_at", "2015-12-14 22:12:12.790523"]]
1884
293
   (0.1ms) RELEASE SAVEPOINT active_record_1
1885
- Processing by AuthenticationController#test as HTML
1886
- Filter chain halted as :require_proof rendered or redirected
1887
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1888
-  (0.1ms) rollback transaction
294
+  (0.2ms) rollback transaction
1889
295
   (0.1ms) begin transaction
1890
- ---------------------
1891
- ProofTest: test_truth
1892
- ---------------------
1893
-  (0.0ms) rollback transaction
296
+ -------------------------------------------------------------
297
+ ProofActionsTest: test_proof_actions_valid_user_returns_token
298
+ -------------------------------------------------------------
299
+  (0.1ms) SAVEPOINT active_record_1
300
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$MeBO.CtLviJ4qqOMMVVC8u7z5KvzMURu/UuKyMwY6xOmvp1OV11qW"], ["created_at", "2015-12-14 22:12:12.798871"], ["updated_at", "2015-12-14 22:12:12.798871"]]
301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
302
+ Processing by AuthenticationController#login as HTML
303
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
304
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
305
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.1ms)
306
+  (0.3ms) rollback transaction
307
+  (0.1ms) begin transaction
308
+ ----------------------------------------------------------------------
309
+ ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
310
+ ----------------------------------------------------------------------
311
+  (0.1ms) SAVEPOINT active_record_1
312
+ SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$jrnBgoLTxz6LmgS46aJaQeQRQ4nOLj/LB2FL4g5M/t.RVjmpuYiYu"], ["created_at", "2015-12-14 22:12:12.815935"], ["updated_at", "2015-12-14 22:12:12.815935"]]
313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
314
+ Processing by AuthenticationController#login as HTML
315
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
317
+ Completed 401 Unauthorized in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms)
318
+  (0.4ms) rollback transaction
1894
319
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1895
320
   (0.1ms) begin transaction
1896
- ---------------------
1897
- ProofTest: test_truth
1898
- ---------------------
321
+ ------------------------------------------------
322
+ BlockActionsTest: test_proof_actions_block_works
323
+ ------------------------------------------------
324
+  (0.1ms) SAVEPOINT active_record_1
325
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$UhZLlp0XOrW0Qm0Wj0cs/Of.28WCB/yUWZvVA05UJ9KErW0xqSwze"], ["created_at", "2015-12-14 22:18:05.030876"], ["updated_at", "2015-12-14 22:18:05.030876"]]
326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
327
+ Processing by BlockController#login as HTML
328
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
329
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
330
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.1ms)
331
+  (0.1ms) rollback transaction
332
+  (0.1ms) begin transaction
333
+ ----------------------------------------------------------------------
334
+ ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
335
+ ----------------------------------------------------------------------
336
+  (0.0ms) SAVEPOINT active_record_1
337
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$zvN8MA7YIdAM95/erSSL1enmrORLvsNxfHyZPiKOyXp2glkF75oIm"], ["created_at", "2015-12-14 22:18:05.054107"], ["updated_at", "2015-12-14 22:18:05.054107"]]
338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339
+ Processing by AuthenticationController#login as HTML
340
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
341
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
342
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1899
343
   (0.1ms) rollback transaction
1900
344
   (0.1ms) begin transaction
1901
345
  ---------------------------------------------------------
1902
346
  ProofActionsTest: test_proof_actions_defines_login_method
1903
347
  ---------------------------------------------------------
1904
348
   (0.1ms) SAVEPOINT active_record_1
1905
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$wp6bUuzzL.QNTFkIwTHOuOXfK7hHVNOo5oaEUIEPWwAqQQnfKNvFm"], ["created_at", "2015-07-22 15:50:51.112372"], ["updated_at", "2015-07-22 15:50:51.112372"]]
1906
-  (0.1ms) RELEASE SAVEPOINT active_record_1
349
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$U3bWBtK4qo4DwLUwnbOyVuPW6QSanwUC.TT2csWjKBc1lT77Q8mjm"], ["created_at", "2015-12-14 22:18:05.061474"], ["updated_at", "2015-12-14 22:18:05.061474"]]
350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1907
351
   (0.1ms) rollback transaction
1908
-  (0.0ms) begin transaction
1909
- ----------------------------------------------------------------------
1910
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
1911
- ----------------------------------------------------------------------
1912
-  (0.0ms) SAVEPOINT active_record_1
1913
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$J/PfvGRs1r9hSP/8wtp4lu6XhNZ.gG2LC137T47NcRC9zVHqMcaeu"], ["created_at", "2015-07-22 15:50:51.123729"], ["updated_at", "2015-07-22 15:50:51.123729"]]
1914
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1915
- Processing by AuthenticationController#login as HTML
1916
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
1917
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
1918
- Completed 401 Unauthorized in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms)
1919
-  (0.3ms) rollback transaction
1920
352
   (0.1ms) begin transaction
1921
353
  -------------------------------------------------------------
1922
354
  ProofActionsTest: test_proof_actions_valid_user_returns_token
1923
355
  -------------------------------------------------------------
1924
356
   (0.1ms) SAVEPOINT active_record_1
1925
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$vbswSK/o0tVWq51/Vwj8puvNWkelG7ytczBe94MTysz6swjR6OEtq"], ["created_at", "2015-07-22 15:50:51.139029"], ["updated_at", "2015-07-22 15:50:51.139029"]]
357
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$iCisA2S5Ke6f.Vwa7G9D6.VgnsYQR3U2rwJbj5tPXGHsWSHVqVGba"], ["created_at", "2015-12-14 22:18:05.066556"], ["updated_at", "2015-12-14 22:18:05.066556"]]
1926
358
   (0.0ms) RELEASE SAVEPOINT active_record_1
1927
359
  Processing by AuthenticationController#login as HTML
1928
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
360
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
1929
361
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
1930
362
  Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1931
363
   (0.1ms) rollback transaction
1932
-  (0.0ms) begin transaction
1933
- -----------------------------------------
1934
- TokenTest: test_create_token_from_encoded
1935
- -----------------------------------------
1936
-  (0.0ms) rollback transaction
1937
-  (0.0ms) begin transaction
364
+  (0.1ms) begin transaction
1938
365
  --------------------------------------
1939
366
  TokenTest: test_create_token_from_data
1940
367
  --------------------------------------
1941
368
   (0.0ms) rollback transaction
1942
-  (0.0ms) begin transaction
369
+  (0.1ms) begin transaction
370
+ -----------------------------------------
371
+ TokenTest: test_create_token_from_encoded
372
+ -----------------------------------------
373
+  (0.1ms) rollback transaction
374
+  (0.2ms) begin transaction
1943
375
  ----------------------------------------------------
1944
376
  RequireProofTest: test_request_authorized_with_token
1945
377
  ----------------------------------------------------
1946
-  (0.0ms) SAVEPOINT active_record_1
1947
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$wYlO.nHN4qYoPXVs6YK0t.AQHRzlMln9hwtIeqa6oXXgXjBjuLHUi"], ["created_at", "2015-07-22 15:50:51.147968"], ["updated_at", "2015-07-22 15:50:51.147968"]]
1948
-  (0.1ms) RELEASE SAVEPOINT active_record_1
378
+  (0.1ms) SAVEPOINT active_record_1
379
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$En8hpC9zWPfp9MFH8DrPMebhUlYsbNZX3ds8j6YWU9GVMTf1FwW6i"], ["created_at", "2015-12-14 22:18:05.078400"], ["updated_at", "2015-12-14 22:18:05.078400"]]
380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1949
381
  Processing by AuthenticationController#test as HTML
1950
382
  User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1951
383
  Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
@@ -1954,89 +386,90 @@ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1954
386
  ---------------------------------------------------------
1955
387
  RequireProofTest: test_request_unauthorized_without_token
1956
388
  ---------------------------------------------------------
1957
-  (0.1ms) SAVEPOINT active_record_1
1958
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$LbxWwsxWU5NWwO0pFyaqiu2qHg0MztbvK7dbljnkLf2x.MBlnHdMa"], ["created_at", "2015-07-22 15:50:51.154284"], ["updated_at", "2015-07-22 15:50:51.154284"]]
1959
-  (0.0ms) RELEASE SAVEPOINT active_record_1
389
+  (0.0ms) SAVEPOINT active_record_1
390
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$MT/4kKNkLz17C0Dp5u7Jo.HSsy5RQRFv5Baf2G1IKARnQOcoZWYRK"], ["created_at", "2015-12-14 22:18:05.084690"], ["updated_at", "2015-12-14 22:18:05.084690"]]
391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
392
  Processing by AuthenticationController#test as HTML
1961
393
  Filter chain halted as :require_proof rendered or redirected
1962
394
  Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1963
-  (0.1ms) rollback transaction
1964
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1965
-  (0.2ms) begin transaction
1966
- -----------------------------------------
1967
- TokenTest: test_create_token_from_encoded
1968
- -----------------------------------------
1969
395
   (0.1ms) rollback transaction
1970
396
   (0.0ms) begin transaction
1971
- --------------------------------------
1972
- TokenTest: test_create_token_from_data
1973
- --------------------------------------
397
+ ---------------------
398
+ ProofTest: test_truth
399
+ ---------------------
1974
400
   (0.0ms) rollback transaction
401
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1975
402
   (0.1ms) begin transaction
1976
- ----------------------------------------------------
1977
- RequireProofTest: test_request_authorized_with_token
1978
- ----------------------------------------------------
403
+ ----------------------------------------------------------------------
404
+ ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
405
+ ----------------------------------------------------------------------
1979
406
   (0.1ms) SAVEPOINT active_record_1
1980
- SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$eQV05yiS.narXrjVKPZNKOJ5.MBJkDxDsasqm8Sstqh90a8sVo7cC"], ["created_at", "2015-07-22 15:51:14.295724"], ["updated_at", "2015-07-22 15:51:14.295724"]]
407
+ SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$AFTDrz6UzdE9ZsIkbTgQ1u6gd5jsI1EhA1cjnkynLyzqARnihrT36"], ["created_at", "2016-04-03 05:47:01.348958"], ["updated_at", "2016-04-03 05:47:01.348958"]]
1981
408
   (0.1ms) RELEASE SAVEPOINT active_record_1
1982
- Processing by AuthenticationController#test as HTML
1983
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1984
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1985
-  (0.3ms) rollback transaction
409
+ Processing by AuthenticationController#login as HTML
410
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
411
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
412
+ Completed 401 Unauthorized in 5ms (Views: 0.2ms | ActiveRecord: 0.1ms)
413
+  (0.1ms) rollback transaction
414
+  (0.1ms) begin transaction
415
+ -------------------------------------------------------------
416
+ ProofActionsTest: test_proof_actions_valid_user_returns_token
417
+ -------------------------------------------------------------
418
+  (0.0ms) SAVEPOINT active_record_1
419
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$SjKSSEunq1uM1h/t7ysFRerMJlqFGDCTIVjglGnFl/pW3TLPQ7Euq"], ["created_at", "2016-04-03 05:47:01.369838"], ["updated_at", "2016-04-03 05:47:01.369838"]]
420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
421
+ Processing by AuthenticationController#login as HTML
422
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
423
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
424
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
425
+  (0.1ms) rollback transaction
1986
426
   (0.1ms) begin transaction
1987
427
  ---------------------------------------------------------
1988
- RequireProofTest: test_request_unauthorized_without_token
428
+ ProofActionsTest: test_proof_actions_defines_login_method
1989
429
  ---------------------------------------------------------
1990
-  (0.1ms) SAVEPOINT active_record_1
1991
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$2jrHxF0ZiEtJF8CXzMxwCuWZUUo/zeD8pQjEJ/X19AjEIYQiFjoDO"], ["created_at", "2015-07-22 15:51:14.319278"], ["updated_at", "2015-07-22 15:51:14.319278"]]
1992
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1993
- Processing by AuthenticationController#test as HTML
1994
- Filter chain halted as :require_proof rendered or redirected
1995
- Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1996
-  (0.2ms) rollback transaction
430
+  (0.0ms) SAVEPOINT active_record_1
431
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$ui0TmToLkjhP/jAIEGV1c.Gfvml0wuTBPe7r6Qu2.ttHgWHt4mglm"], ["created_at", "2016-04-03 05:47:01.377413"], ["updated_at", "2016-04-03 05:47:01.377413"]]
432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
433
+  (0.1ms) rollback transaction
1997
434
   (0.1ms) begin transaction
1998
435
  ---------------------
1999
436
  ProofTest: test_truth
2000
437
  ---------------------
438
+  (0.0ms) rollback transaction
439
+  (0.1ms) begin transaction
440
+ ------------------------------------------------
441
+ BlockActionsTest: test_proof_actions_block_works
442
+ ------------------------------------------------
443
+  (0.1ms) SAVEPOINT active_record_1
444
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$MhqITYo2rczZJkeQxAYo2.lMpfFNaWscntPf1NLqbHw8nFcLtVWpO"], ["created_at", "2016-04-03 05:47:01.383657"], ["updated_at", "2016-04-03 05:47:01.383657"]]
445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
446
+ Processing by BlockController#login as HTML
447
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
448
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
449
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.1ms)
450
+  (0.2ms) rollback transaction
451
+  (0.1ms) begin transaction
452
+ ----------------------------------------------------
453
+ RequireProofTest: test_request_authorized_with_token
454
+ ----------------------------------------------------
455
+  (0.1ms) SAVEPOINT active_record_1
456
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$llG06r52wznK61WUW8WOHOy0D/.kA4AYR0He6s00ukuUieh.pqI0u"], ["created_at", "2016-04-03 05:47:01.397497"], ["updated_at", "2016-04-03 05:47:01.397497"]]
457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
458
+ Processing by AuthenticationController#test as HTML
459
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
460
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2001
461
   (0.1ms) rollback transaction
2002
462
   (0.1ms) begin transaction
2003
463
  ---------------------------------------------------------
2004
- ProofActionsTest: test_proof_actions_defines_login_method
464
+ RequireProofTest: test_request_unauthorized_without_token
2005
465
  ---------------------------------------------------------
2006
466
   (0.1ms) SAVEPOINT active_record_1
2007
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$BPnIazSTz6A1x3zWMFtsBuF9NHsftnYi5DyM52m60axEE.eUqPB6m"], ["created_at", "2015-07-22 15:51:14.327469"], ["updated_at", "2015-07-22 15:51:14.327469"]]
467
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$0kbRwuKz5T5BsIGmaLrIRePmOYvnDAytnAo3zOmtTO0uFunvzNwg6"], ["created_at", "2016-04-03 05:47:01.405295"], ["updated_at", "2016-04-03 05:47:01.405295"]]
2008
468
   (0.1ms) RELEASE SAVEPOINT active_record_1
469
+ Processing by AuthenticationController#test as HTML
470
+ Filter chain halted as :require_proof rendered or redirected
471
+ Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2009
472
   (0.1ms) rollback transaction
2010
-  (0.0ms) begin transaction
2011
- -------------------------------------------------------------
2012
- ProofActionsTest: test_proof_actions_valid_user_returns_token
2013
- -------------------------------------------------------------
2014
-  (0.3ms) SAVEPOINT active_record_1
2015
- SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$rrQjuYCJc5J3OjlRUtnZ8.xOJu5u2ZBbvG6GujU3M9XjkzpBn.u4a"], ["created_at", "2015-07-22 15:51:14.333396"], ["updated_at", "2015-07-22 15:51:14.333396"]]
2016
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2017
- Processing by AuthenticationController#login as HTML
2018
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
2019
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
2020
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
2021
-  (0.1ms) rollback transaction
2022
-  (0.0ms) begin transaction
2023
- ----------------------------------------------------------------------
2024
- ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
2025
- ----------------------------------------------------------------------
2026
-  (0.0ms) SAVEPOINT active_record_1
2027
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$t4OzTKWirRlmQ1UiH6p.oOMXMZQ2HtAh1hsr7hU82eHufTeXDgghK"], ["created_at", "2015-07-22 15:51:14.343808"], ["updated_at", "2015-07-22 15:51:14.343808"]]
2028
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2029
- Processing by AuthenticationController#login as HTML
2030
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
2031
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
2032
- Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
2033
-  (0.1ms) rollback transaction
2034
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2035
-  (0.1ms) begin transaction
2036
- ---------------------
2037
- ProofTest: test_truth
2038
- ---------------------
2039
-  (0.0ms) rollback transaction
2040
473
   (0.1ms) begin transaction
2041
474
  --------------------------------------
2042
475
  TokenTest: test_create_token_from_data
@@ -2047,57 +480,85 @@ TokenTest: test_create_token_from_data
2047
480
  TokenTest: test_create_token_from_encoded
2048
481
  -----------------------------------------
2049
482
   (0.0ms) rollback transaction
483
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
484
+  (0.1ms) begin transaction
485
+ ------------------------------------------------
486
+ BlockActionsTest: test_proof_actions_block_works
487
+ ------------------------------------------------
488
+  (0.1ms) SAVEPOINT active_record_1
489
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$wSwBTvL0QdcLFfLFgGFlj.Vvbm2YFpinL.NphiVafpuWbsUTZGGra"], ["created_at", "2016-04-03 05:48:08.109491"], ["updated_at", "2016-04-03 05:48:08.109491"]]
490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
491
+ Processing by BlockController#login as HTML
492
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
493
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
494
+ Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
495
+  (0.2ms) rollback transaction
2050
496
   (0.1ms) begin transaction
2051
497
  ----------------------------------------------------
2052
498
  RequireProofTest: test_request_authorized_with_token
2053
499
  ----------------------------------------------------
2054
500
   (0.1ms) SAVEPOINT active_record_1
2055
- SQL (0.4ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$1Krsd6ypfTj9yNackXsY7uJMS2ppQsswAPsnGu9RXzqYdAJP/zVTu"], ["created_at", "2015-07-22 16:25:38.952313"], ["updated_at", "2015-07-22 16:25:38.952313"]]
2056
-  (0.2ms) RELEASE SAVEPOINT active_record_1
501
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$fXFBBigHgf4OGHqK6OyhWu5aPSaYAi3aNu3uoO/aW1tPFk98iF0TW"], ["created_at", "2016-04-03 05:48:08.129715"], ["updated_at", "2016-04-03 05:48:08.129715"]]
502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2057
503
  Processing by AuthenticationController#test as HTML
2058
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
2059
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
504
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
505
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
2060
506
   (0.1ms) rollback transaction
2061
-  (0.0ms) begin transaction
507
+  (0.1ms) begin transaction
2062
508
  ---------------------------------------------------------
2063
509
  RequireProofTest: test_request_unauthorized_without_token
2064
510
  ---------------------------------------------------------
2065
-  (0.0ms) SAVEPOINT active_record_1
2066
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$vNCj.XzCsXBcHHLR2bn3nu9snCZATv2OpbeS9aHUHj3tQf2w1fXo."], ["created_at", "2015-07-22 16:25:38.974020"], ["updated_at", "2015-07-22 16:25:38.974020"]]
2067
-  (0.0ms) RELEASE SAVEPOINT active_record_1
511
+  (0.1ms) SAVEPOINT active_record_1
512
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$X./zLEijApGCHhv/zy7nzehn9YYonC0rkxfmTp9LsNsw2sEPuHkwe"], ["created_at", "2016-04-03 05:48:08.139732"], ["updated_at", "2016-04-03 05:48:08.139732"]]
513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2068
514
  Processing by AuthenticationController#test as HTML
2069
515
  Filter chain halted as :require_proof rendered or redirected
2070
516
  Completed 401 Unauthorized in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
517
+  (0.1ms) rollback transaction
518
+  (0.2ms) begin transaction
519
+ --------------------------------------
520
+ TokenTest: test_create_token_from_data
521
+ --------------------------------------
522
+  (0.1ms) rollback transaction
523
+  (0.1ms) begin transaction
524
+ -----------------------------------------
525
+ TokenTest: test_create_token_from_encoded
526
+ -----------------------------------------
2071
527
   (0.1ms) rollback transaction
2072
528
   (0.1ms) begin transaction
2073
529
  ---------------------------------------------------------
2074
530
  ProofActionsTest: test_proof_actions_defines_login_method
2075
531
  ---------------------------------------------------------
2076
532
   (0.0ms) SAVEPOINT active_record_1
2077
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$rcRF.HbhavsAh68bm5ITDOB9OOPVfZTnwBqslQcyTinV4Ua5tyaJy"], ["created_at", "2015-07-22 16:25:38.980066"], ["updated_at", "2015-07-22 16:25:38.980066"]]
2078
-  (0.0ms) RELEASE SAVEPOINT active_record_1
2079
-  (0.1ms) rollback transaction
2080
-  (0.0ms) begin transaction
2081
- -------------------------------------------------------------
2082
- ProofActionsTest: test_proof_actions_valid_user_returns_token
2083
- -------------------------------------------------------------
2084
-  (0.1ms) SAVEPOINT active_record_1
2085
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$39ytSwf.7Qn2MgvjQNEG1OhmztiOXExtM.QIQFQyiaXOQ5RrEdL7C"], ["created_at", "2015-07-22 16:25:38.984655"], ["updated_at", "2015-07-22 16:25:38.984655"]]
2086
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2087
- Processing by AuthenticationController#login as HTML
2088
- Parameters: {"identifier"=>"real@email.com", "password"=>"[FILTERED]"}
2089
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
2090
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.1ms)
533
+ SQL (0.2ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$j1ckULrvfRXu7XRmExurfuDOABxdB7nqBDvtGGecyKuMwtWL6fmoS"], ["created_at", "2016-04-03 05:48:08.150211"], ["updated_at", "2016-04-03 05:48:08.150211"]]
534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2091
535
   (0.1ms) rollback transaction
2092
536
   (0.0ms) begin transaction
2093
537
  ----------------------------------------------------------------------
2094
538
  ProofActionsTest: test_proof_actions_invalid_user_returns_unauthorized
2095
539
  ----------------------------------------------------------------------
2096
540
   (0.0ms) SAVEPOINT active_record_1
2097
- SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$HQggQCjZPogk3GdfFaPZB.uwTnyGmexsiv128/F.j/dqkmfAPt.va"], ["created_at", "2015-07-22 16:25:38.994121"], ["updated_at", "2015-07-22 16:25:38.994121"]]
541
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$X16EkvImttDCbjov/P3KC.3BJC8fJVRFLYDfNjuUrGYX7UQTGKF3i"], ["created_at", "2016-04-03 05:48:08.154874"], ["updated_at", "2016-04-03 05:48:08.154874"]]
2098
542
   (0.0ms) RELEASE SAVEPOINT active_record_1
2099
543
  Processing by AuthenticationController#login as HTML
2100
- Parameters: {"identifier"=>"fake@email.com", "password"=>"[FILTERED]"}
2101
- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
2102
- Completed 401 Unauthorized in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
544
+ Parameters: {"email"=>"fake@email.com", "password"=>"[FILTERED]"}
545
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "fake@email.com"]]
546
+ Completed 401 Unauthorized in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
547
+  (0.1ms) rollback transaction
548
+  (0.1ms) begin transaction
549
+ -------------------------------------------------------------
550
+ ProofActionsTest: test_proof_actions_valid_user_returns_token
551
+ -------------------------------------------------------------
552
+  (0.2ms) SAVEPOINT active_record_1
553
+ SQL (0.1ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "real@email.com"], ["password_digest", "$2a$04$F/D2LTBVbk7pqxnwmF1K6ONF/NmNhQAR.9YMOKVYT/LRisrV7mTLO"], ["created_at", "2016-04-03 05:48:08.162495"], ["updated_at", "2016-04-03 05:48:08.162495"]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+ Processing by AuthenticationController#login as HTML
556
+ Parameters: {"email"=>"real@email.com", "password"=>"[FILTERED]"}
557
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "real@email.com"]]
558
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
2103
559
   (0.1ms) rollback transaction
560
+  (0.1ms) begin transaction
561
+ ---------------------
562
+ ProofTest: test_truth
563
+ ---------------------
564
+  (0.0ms) rollback transaction