code42_api_rails 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +33 -0
  4. data/Rakefile +35 -0
  5. data/features/api_response.feature +22 -0
  6. data/features/errors.feature +24 -0
  7. data/features/step_definitions/model_steps.rb +3 -0
  8. data/features/support/env.rb +72 -0
  9. data/lib/code42_api/base_controller.rb +5 -0
  10. data/lib/code42_api/base_responder.rb +19 -0
  11. data/lib/code42_api/errors.rb +90 -0
  12. data/lib/code42_api/model.rb +11 -0
  13. data/lib/code42_api/railtie.rb +7 -0
  14. data/lib/code42_api/version.rb +3 -0
  15. data/lib/code42_api_rails.rb +8 -0
  16. data/lib/tasks/code42_rails_tasks.rake +4 -0
  17. data/test/code42_api_test.rb +8 -0
  18. data/test/dummy/README.rdoc +28 -0
  19. data/test/dummy/Rakefile +6 -0
  20. data/test/dummy/app/assets/javascripts/application.js +13 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  22. data/test/dummy/app/controllers/application_controller.rb +5 -0
  23. data/test/dummy/app/controllers/authors_controller.rb +15 -0
  24. data/test/dummy/app/controllers/test_controller.rb +7 -0
  25. data/test/dummy/app/helpers/application_helper.rb +2 -0
  26. data/test/dummy/app/models/author.rb +4 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/bin/bundle +3 -0
  29. data/test/dummy/bin/rails +4 -0
  30. data/test/dummy/bin/rake +4 -0
  31. data/test/dummy/config.ru +4 -0
  32. data/test/dummy/config/application.rb +23 -0
  33. data/test/dummy/config/boot.rb +5 -0
  34. data/test/dummy/config/cucumber.yml +8 -0
  35. data/test/dummy/config/database.yml +28 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +82 -0
  39. data/test/dummy/config/environments/test.rb +39 -0
  40. data/test/dummy/config/initializers/assets.rb +8 -0
  41. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  43. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  44. data/test/dummy/config/initializers/inflections.rb +16 -0
  45. data/test/dummy/config/initializers/mime_types.rb +4 -0
  46. data/test/dummy/config/initializers/session_store.rb +3 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/locales/en.yml +23 -0
  49. data/test/dummy/config/routes.rb +3 -0
  50. data/test/dummy/config/secrets.yml +22 -0
  51. data/test/dummy/db/development.sqlite3 +0 -0
  52. data/test/dummy/db/schema.rb +8 -0
  53. data/test/dummy/db/test.sqlite3 +0 -0
  54. data/test/dummy/lib/tasks/cucumber.rake +65 -0
  55. data/test/dummy/log/development.log +2 -0
  56. data/test/dummy/log/test.log +1826 -0
  57. data/test/dummy/public/404.html +67 -0
  58. data/test/dummy/public/422.html +67 -0
  59. data/test/dummy/public/500.html +66 -0
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/script/cucumber +10 -0
  62. data/test/errors_test.rb +41 -0
  63. data/test/test_helper.rb +20 -0
  64. metadata +256 -0
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ resources :authors
3
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 9a98aa4b54d2314ed437bddb69f2030503d2c9d7627a7538116a3a642756540c93a6a8a5638d458f1219892a3787d5fa983bc513c06dfb70510da7f0a56254d7
15
+
16
+ test:
17
+ secret_key_base: 77e0ff094f733299a84e7c46330f4f88a22d6127b28ec91addd68b2fcb2063f92bf764aeb079d7f5edbda63bc5041daa514b5b0d11aaad537242ed46c7e67730
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
File without changes
@@ -0,0 +1,8 @@
1
+ ActiveRecord::Schema.define do
2
+ create_table :authors do |t|
3
+ t.string :first_name
4
+ t.string :last_name
5
+ t.timestamps
6
+ end
7
+ end
8
+
Binary file
@@ -0,0 +1,65 @@
1
+ # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
2
+ # It is recommended to regenerate this file in the future when you upgrade to a
3
+ # newer version of cucumber-rails. Consider adding your own code to a new file
4
+ # instead of editing this one. Cucumber will automatically load all features/**/*.rb
5
+ # files.
6
+
7
+
8
+ unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
9
+
10
+ vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
11
+ $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
12
+
13
+ begin
14
+ require 'cucumber/rake/task'
15
+
16
+ namespace :cucumber do
17
+ Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
18
+ t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
19
+ t.fork = true # You may get faster startup if you set this to false
20
+ t.profile = 'default'
21
+ end
22
+
23
+ Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
24
+ t.binary = vendored_cucumber_bin
25
+ t.fork = true # You may get faster startup if you set this to false
26
+ t.profile = 'wip'
27
+ end
28
+
29
+ Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
30
+ t.binary = vendored_cucumber_bin
31
+ t.fork = true # You may get faster startup if you set this to false
32
+ t.profile = 'rerun'
33
+ end
34
+
35
+ desc 'Run all features'
36
+ task :all => [:ok, :wip]
37
+
38
+ task :statsetup do
39
+ require 'rails/code_statistics'
40
+ ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
41
+ ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
42
+ end
43
+ end
44
+ desc 'Alias for cucumber:ok'
45
+ task :cucumber => 'cucumber:ok'
46
+
47
+ task :default => :cucumber
48
+
49
+ task :features => :cucumber do
50
+ STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
51
+ end
52
+
53
+ # In case we don't have the generic Rails test:prepare hook, append a no-op task that we can depend upon.
54
+ task 'test:prepare' do
55
+ end
56
+
57
+ task :stats => 'cucumber:statsetup'
58
+ rescue LoadError
59
+ desc 'cucumber rake task not available (cucumber not installed)'
60
+ task :cucumber do
61
+ abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
62
+ end
63
+ end
64
+
65
+ end
@@ -0,0 +1,2 @@
1
+  (1.3ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255)) 
2
+  (1.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "created_at" datetime, "updated_at" datetime) 
@@ -0,0 +1,1826 @@
1
+  (0.1ms) begin transaction
2
+ ---------------------------
3
+ Code42RailsTest: test_truth
4
+ ---------------------------
5
+  (0.0ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ --------------------------
8
+ ErrorsTest: test_something
9
+ --------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ ---------------------------
13
+ Code42RailsTest: test_truth
14
+ ---------------------------
15
+  (0.0ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ --------------------------
18
+ ErrorsTest: test_something
19
+ --------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+ ---------------------------
23
+ Code42RailsTest: test_truth
24
+ ---------------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ---------------------------
28
+ Code42RailsTest: test_truth
29
+ ---------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+ --------------------------
33
+ ErrorsTest: test_something
34
+ --------------------------
35
+  (0.1ms) rollback transaction
36
+  (1.3ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255)) 
37
+  (0.1ms) begin transaction
38
+ ---------------------------
39
+ Code42RailsTest: test_truth
40
+ ---------------------------
41
+  (0.0ms) rollback transaction
42
+  (0.0ms) begin transaction
43
+ --------------------------
44
+ ErrorsTest: test_something
45
+ --------------------------
46
+  (0.2ms) rollback transaction
47
+  (0.1ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255)) 
48
+ SQLite3::SQLException: table "authors" already exists: CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255))
49
+  (0.1ms) begin transaction
50
+ ---------------------------
51
+ Code42RailsTest: test_truth
52
+ ---------------------------
53
+  (0.0ms) rollback transaction
54
+  (0.0ms) begin transaction
55
+ --------------------------
56
+ ErrorsTest: test_something
57
+ --------------------------
58
+  (0.2ms) rollback transaction
59
+  (0.1ms) begin transaction
60
+ --------------------------
61
+ ErrorsTest: test_something
62
+ --------------------------
63
+  (0.1ms) rollback transaction
64
+  (0.0ms) begin transaction
65
+ ---------------------------
66
+ Code42RailsTest: test_truth
67
+ ---------------------------
68
+  (0.0ms) rollback transaction
69
+  (0.1ms) begin transaction
70
+ ---------------------------
71
+ Code42RailsTest: test_truth
72
+ ---------------------------
73
+  (0.0ms) rollback transaction
74
+  (0.0ms) begin transaction
75
+ --------------------------
76
+ ErrorsTest: test_something
77
+ --------------------------
78
+  (0.1ms) rollback transaction
79
+  (0.1ms) begin transaction
80
+ --------------------------
81
+ ErrorsTest: test_something
82
+ --------------------------
83
+  (0.1ms) rollback transaction
84
+  (0.1ms) begin transaction
85
+ ---------------------------
86
+ Code42RailsTest: test_truth
87
+ ---------------------------
88
+  (0.1ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ --------------------------
91
+ ErrorsTest: test_something
92
+ --------------------------
93
+  (0.1ms) rollback transaction
94
+  (0.1ms) begin transaction
95
+ ---------------------------
96
+ Code42RailsTest: test_truth
97
+ ---------------------------
98
+  (0.0ms) rollback transaction
99
+  (0.1ms) begin transaction
100
+ ---------------------------
101
+ Code42RailsTest: test_truth
102
+ ---------------------------
103
+  (0.0ms) rollback transaction
104
+  (0.0ms) begin transaction
105
+ ----------------------------------
106
+ TestControllerTest: test_something
107
+ ----------------------------------
108
+  (0.1ms) rollback transaction
109
+  (0.1ms) begin transaction
110
+ ---------------------------
111
+ Code42RailsTest: test_truth
112
+ ---------------------------
113
+  (0.0ms) rollback transaction
114
+  (0.0ms) begin transaction
115
+ ----------------------------------
116
+ TestControllerTest: test_something
117
+ ----------------------------------
118
+ Processing by TestController#index as HTML
119
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
120
+  (0.1ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+  (0.0ms) commit transaction
123
+  (0.0ms) begin transaction
124
+  (0.1ms) rollback transaction
125
+  (0.1ms) begin transaction
126
+  (0.0ms) commit transaction
127
+  (0.0ms) begin transaction
128
+  (0.1ms) rollback transaction
129
+  (0.2ms) begin transaction
130
+  (0.0ms) commit transaction
131
+  (0.0ms) begin transaction
132
+  (0.1ms) rollback transaction
133
+  (0.2ms) begin transaction
134
+  (0.1ms) commit transaction
135
+  (0.1ms) begin transaction
136
+  (0.1ms) rollback transaction
137
+  (0.1ms) begin transaction
138
+  (0.0ms) commit transaction
139
+  (0.0ms) begin transaction
140
+  (0.1ms) rollback transaction
141
+  (0.1ms) begin transaction
142
+  (0.0ms) commit transaction
143
+  (0.0ms) begin transaction
144
+  (0.1ms) rollback transaction
145
+  (0.1ms) begin transaction
146
+  (0.0ms) commit transaction
147
+  (0.0ms) begin transaction
148
+  (0.1ms) SAVEPOINT active_record_1
149
+ SQL (0.5ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
151
+  (0.5ms) rollback transaction
152
+  (0.1ms) begin transaction
153
+  (0.1ms) commit transaction
154
+  (0.1ms) begin transaction
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ SQL (0.5ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
158
+ Started PUT "/authors" for 127.0.0.1 at 2014-08-19 10:45:42 -0500
159
+  (1.7ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+  (0.0ms) commit transaction
162
+  (0.0ms) begin transaction
163
+  (0.1ms) SAVEPOINT active_record_1
164
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
166
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:47:09 -0500
167
+  (1.8ms) rollback transaction
168
+  (0.1ms) begin transaction
169
+  (0.0ms) commit transaction
170
+  (0.0ms) begin transaction
171
+  (0.1ms) SAVEPOINT active_record_1
172
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
174
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:47:48 -0500
175
+ Processing by AuthorsController#update as JSON
176
+ Parameters: {"last_name"=>"Colbert", "id"=>"3", "author"=>{"last_name"=>"Colbert"}}
177
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
178
+ Completed 500 Internal Server Error in 12ms
179
+  (0.5ms) rollback transaction
180
+  (0.1ms) begin transaction
181
+  (0.1ms) commit transaction
182
+  (0.0ms) begin transaction
183
+  (0.1ms) SAVEPOINT active_record_1
184
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
186
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:48:40 -0500
187
+ Processing by AuthorsController#update as JSON
188
+ Parameters: {"last_name"=>"Colbert", "id"=>"3", "author"=>{"last_name"=>"Colbert"}}
189
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
190
+  (0.1ms) SAVEPOINT active_record_1
191
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
192
+ Completed 500 Internal Server Error in 4ms
193
+  (1.8ms) rollback transaction
194
+  (0.1ms) begin transaction
195
+  (0.0ms) commit transaction
196
+  (0.0ms) begin transaction
197
+  (0.1ms) SAVEPOINT active_record_1
198
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
200
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:49:03 -0500
201
+ Processing by AuthorsController#update as JSON
202
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
203
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
204
+  (0.1ms) SAVEPOINT active_record_1
205
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
206
+ Completed 500 Internal Server Error in 3ms
207
+  (1.8ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+  (0.0ms) commit transaction
210
+  (0.1ms) begin transaction
211
+  (0.1ms) SAVEPOINT active_record_1
212
+ SQL (0.5ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
214
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:49:44 -0500
215
+ Processing by AuthorsController#update as JSON
216
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
217
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
218
+  (0.1ms) SAVEPOINT active_record_1
219
+ SQL (1.2ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
221
+ Completed 500 Internal Server Error in 6ms
222
+  (1.6ms) rollback transaction
223
+  (0.1ms) begin transaction
224
+  (0.0ms) commit transaction
225
+  (0.0ms) begin transaction
226
+  (0.1ms) SAVEPOINT active_record_1
227
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:49:56 -0500
230
+ Processing by AuthorsController#update as JSON
231
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
232
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
233
+  (0.1ms) SAVEPOINT active_record_1
234
+ SQL (1.1ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+ Completed 204 No Content in 11ms (ActiveRecord: 1.4ms)
237
+  (2.3ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+  (0.0ms) commit transaction
240
+  (0.0ms) begin transaction
241
+  (0.1ms) SAVEPOINT active_record_1
242
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
244
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 10:52:41 -0500
245
+ Processing by AuthorsController#update as JSON
246
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
247
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
248
+  (0.1ms) SAVEPOINT active_record_1
249
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
251
+ Completed 204 No Content in 11ms (ActiveRecord: 1.1ms)
252
+  (1.8ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+  (0.0ms) commit transaction
255
+  (0.0ms) begin transaction
256
+  (0.1ms) SAVEPOINT active_record_1
257
+ SQL (1.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
259
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 11:22:03 -0500
260
+ Processing by AuthorsController#update as JSON
261
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
262
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
263
+  (0.1ms) SAVEPOINT active_record_1
264
+ SQL (1.2ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
266
+ Completed 204 No Content in 13ms (ActiveRecord: 1.6ms)
267
+  (0.5ms) rollback transaction
268
+  (0.1ms) begin transaction
269
+  (0.0ms) commit transaction
270
+  (0.0ms) begin transaction
271
+  (0.1ms) SAVEPOINT active_record_1
272
+ SQL (1.1ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
274
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 12:52:07 -0500
275
+  (0.5ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+  (0.1ms) commit transaction
278
+  (0.0ms) begin transaction
279
+  (0.1ms) SAVEPOINT active_record_1
280
+ SQL (1.0ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 12:54:23 -0500
283
+ Processing by AuthorsController#update as JSON
284
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
285
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
286
+  (0.1ms) SAVEPOINT active_record_1
287
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
289
+ Completed 200 OK in 15ms (Views: 0.4ms | ActiveRecord: 1.2ms)
290
+  (0.5ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+  (0.0ms) commit transaction
293
+  (0.0ms) begin transaction
294
+  (0.1ms) SAVEPOINT active_record_1
295
+ SQL (1.0ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
297
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:00:44 -0500
298
+ Processing by AuthorsController#update as JSON
299
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
300
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
301
+  (0.1ms) SAVEPOINT active_record_1
302
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
304
+ Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 1.1ms)
305
+  (0.6ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+  (0.0ms) commit transaction
308
+  (0.1ms) begin transaction
309
+  (0.1ms) SAVEPOINT active_record_1
310
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
311
+  (0.0ms) RELEASE SAVEPOINT active_record_1
312
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:03:25 -0500
313
+ Processing by AuthorsController#update as JSON
314
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
315
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
316
+  (0.1ms) SAVEPOINT active_record_1
317
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
319
+ Completed 204 No Content in 13ms (ActiveRecord: 1.1ms)
320
+  (0.5ms) rollback transaction
321
+  (0.1ms) begin transaction
322
+  (0.0ms) commit transaction
323
+  (0.0ms) begin transaction
324
+  (0.1ms) SAVEPOINT active_record_1
325
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
327
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:03:36 -0500
328
+ Processing by AuthorsController#update as JSON
329
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
330
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
331
+  (0.1ms) SAVEPOINT active_record_1
332
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
334
+ Completed 204 No Content in 12ms (ActiveRecord: 1.1ms)
335
+  (1.8ms) rollback transaction
336
+  (0.1ms) begin transaction
337
+  (0.0ms) commit transaction
338
+  (0.0ms) begin transaction
339
+  (0.2ms) SAVEPOINT active_record_1
340
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
342
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:03:43 -0500
343
+ Processing by AuthorsController#update as JSON
344
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
345
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
346
+  (0.1ms) SAVEPOINT active_record_1
347
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
349
+ Completed 204 No Content in 11ms (ActiveRecord: 1.1ms)
350
+  (2.0ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+  (0.0ms) commit transaction
353
+  (0.0ms) begin transaction
354
+  (0.1ms) SAVEPOINT active_record_1
355
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
357
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:04:01 -0500
358
+ Processing by AuthorsController#update as JSON
359
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
360
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
361
+  (0.1ms) SAVEPOINT active_record_1
362
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
364
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 1.1ms)
365
+  (1.9ms) rollback transaction
366
+  (0.1ms) begin transaction
367
+  (0.1ms) commit transaction
368
+  (0.0ms) begin transaction
369
+  (0.1ms) SAVEPOINT active_record_1
370
+ SQL (1.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
372
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:07:51 -0500
373
+ Processing by AuthorsController#update as JSON
374
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
375
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
376
+  (0.1ms) SAVEPOINT active_record_1
377
+ SQL (1.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
379
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.2ms)
380
+  (0.6ms) rollback transaction
381
+  (0.2ms) begin transaction
382
+  (0.1ms) commit transaction
383
+  (0.1ms) begin transaction
384
+  (0.0ms) SAVEPOINT active_record_1
385
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
387
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:08:34 -0500
388
+ Processing by AuthorsController#update as JSON
389
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
390
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
391
+  (0.1ms) SAVEPOINT active_record_1
392
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
394
+ Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.0ms)
395
+  (1.7ms) rollback transaction
396
+  (0.1ms) begin transaction
397
+  (0.0ms) commit transaction
398
+  (0.0ms) begin transaction
399
+  (0.0ms) SAVEPOINT active_record_1
400
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
402
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:08:51 -0500
403
+ Processing by AuthorsController#update as JSON
404
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
405
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
406
+  (0.1ms) SAVEPOINT active_record_1
407
+ SQL (1.4ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
409
+ Completed 200 OK in 15ms (Views: 0.4ms | ActiveRecord: 1.8ms)
410
+  (0.6ms) rollback transaction
411
+  (0.1ms) begin transaction
412
+  (0.0ms) commit transaction
413
+  (0.0ms) begin transaction
414
+  (0.1ms) SAVEPOINT active_record_1
415
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
417
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:09:48 -0500
418
+ Processing by AuthorsController#update as JSON
419
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
420
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
421
+  (0.1ms) SAVEPOINT active_record_1
422
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
424
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 1.2ms)
425
+  (1.9ms) rollback transaction
426
+  (0.1ms) begin transaction
427
+  (0.1ms) commit transaction
428
+  (0.0ms) begin transaction
429
+  (0.1ms) SAVEPOINT active_record_1
430
+ SQL (1.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
432
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:14:49 -0500
433
+ Processing by AuthorsController#update as JSON
434
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
435
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
436
+  (0.1ms) SAVEPOINT active_record_1
437
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
439
+ Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 1.2ms)
440
+  (0.6ms) rollback transaction
441
+  (0.1ms) begin transaction
442
+  (0.0ms) commit transaction
443
+  (0.0ms) begin transaction
444
+  (0.1ms) SAVEPOINT active_record_1
445
+ SQL (1.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
447
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:29:46 -0500
448
+ Processing by AuthorsController#update as JSON
449
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
450
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
451
+  (0.1ms) SAVEPOINT active_record_1
452
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
454
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.0ms)
455
+  (0.6ms) rollback transaction
456
+  (0.1ms) begin transaction
457
+  (0.0ms) commit transaction
458
+  (0.0ms) begin transaction
459
+  (0.0ms) SAVEPOINT active_record_1
460
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
462
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:29:46 -0500
463
+ Processing by AuthorsController#update as JSON
464
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
465
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
466
+  (0.0ms) SAVEPOINT active_record_1
467
+ SQL (0.3ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", nil]]
468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
469
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)
470
+  (0.4ms) rollback transaction
471
+  (0.1ms) begin transaction
472
+  (0.1ms) commit transaction
473
+  (0.0ms) begin transaction
474
+  (0.1ms) SAVEPOINT active_record_1
475
+ SQL (1.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:30:10 -0500
478
+ Processing by AuthorsController#update as JSON
479
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
480
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
481
+  (0.1ms) SAVEPOINT active_record_1
482
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
484
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.1ms)
485
+  (0.5ms) rollback transaction
486
+  (0.1ms) begin transaction
487
+  (0.1ms) commit transaction
488
+  (0.0ms) begin transaction
489
+  (0.0ms) SAVEPOINT active_record_1
490
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
492
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:30:10 -0500
493
+ Processing by AuthorsController#update as JSON
494
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
495
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
496
+  (0.0ms) SAVEPOINT active_record_1
497
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
498
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.2ms | ActiveRecord: 0.2ms)
499
+  (0.5ms) rollback transaction
500
+  (0.1ms) begin transaction
501
+  (0.0ms) commit transaction
502
+  (0.0ms) begin transaction
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ SQL (1.1ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:41:28 -0500
507
+ Processing by AuthorsController#update as JSON
508
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
509
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
510
+  (0.1ms) SAVEPOINT active_record_1
511
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
513
+ Completed 200 OK in 15ms (Views: 0.3ms | ActiveRecord: 1.0ms)
514
+  (0.5ms) rollback transaction
515
+  (0.1ms) begin transaction
516
+  (0.0ms) commit transaction
517
+  (0.0ms) begin transaction
518
+  (0.0ms) SAVEPOINT active_record_1
519
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
521
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:41:28 -0500
522
+ Processing by AuthorsController#update as JSON
523
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
524
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
525
+  (0.0ms) SAVEPOINT active_record_1
526
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
527
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.2ms | ActiveRecord: 0.2ms)
528
+  (0.5ms) rollback transaction
529
+  (0.1ms) begin transaction
530
+  (0.0ms) commit transaction
531
+  (0.0ms) begin transaction
532
+  (0.1ms) rollback transaction
533
+  (0.1ms) begin transaction
534
+  (0.0ms) commit transaction
535
+  (0.0ms) begin transaction
536
+  (0.1ms) rollback transaction
537
+  (0.1ms) begin transaction
538
+  (0.0ms) commit transaction
539
+  (0.0ms) begin transaction
540
+  (0.1ms) rollback transaction
541
+  (0.1ms) begin transaction
542
+  (0.1ms) commit transaction
543
+  (0.1ms) begin transaction
544
+  (0.1ms) rollback transaction
545
+  (0.1ms) begin transaction
546
+  (0.0ms) commit transaction
547
+  (0.0ms) begin transaction
548
+  (0.1ms) rollback transaction
549
+  (0.1ms) begin transaction
550
+  (0.0ms) commit transaction
551
+  (0.0ms) begin transaction
552
+  (0.1ms) rollback transaction
553
+  (0.1ms) begin transaction
554
+  (0.1ms) commit transaction
555
+  (0.0ms) begin transaction
556
+  (0.1ms) SAVEPOINT active_record_1
557
+ SQL (1.0ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
559
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:44:22 -0500
560
+ Processing by AuthorsController#update as JSON
561
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
562
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
563
+  (0.1ms) SAVEPOINT active_record_1
564
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
566
+ Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 1.2ms)
567
+  (0.6ms) rollback transaction
568
+  (0.1ms) begin transaction
569
+  (0.0ms) commit transaction
570
+  (0.0ms) begin transaction
571
+  (0.1ms) SAVEPOINT active_record_1
572
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:44:22 -0500
575
+ Processing by AuthorsController#update as JSON
576
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
577
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
578
+  (0.0ms) SAVEPOINT active_record_1
579
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
580
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.2ms)
581
+  (0.5ms) rollback transaction
582
+  (0.1ms) begin transaction
583
+  (0.0ms) commit transaction
584
+  (0.0ms) begin transaction
585
+  (0.0ms) SAVEPOINT active_record_1
586
+ SQL (1.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
588
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:44:59 -0500
589
+ Processing by AuthorsController#update as JSON
590
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
591
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
592
+  (0.1ms) SAVEPOINT active_record_1
593
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
595
+ Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 1.0ms)
596
+  (0.6ms) rollback transaction
597
+  (0.1ms) begin transaction
598
+  (0.1ms) commit transaction
599
+  (0.0ms) begin transaction
600
+  (0.1ms) SAVEPOINT active_record_1
601
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
603
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:44:59 -0500
604
+ Processing by AuthorsController#update as JSON
605
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
606
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
607
+  (0.0ms) SAVEPOINT active_record_1
608
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
609
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 0.2ms)
610
+  (0.5ms) rollback transaction
611
+  (0.1ms) begin transaction
612
+  (0.0ms) commit transaction
613
+  (0.0ms) begin transaction
614
+  (0.1ms) SAVEPOINT active_record_1
615
+ SQL (1.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
617
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:49:12 -0500
618
+ Processing by AuthorsController#update as JSON
619
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
620
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
621
+  (0.1ms) SAVEPOINT active_record_1
622
+ SQL (1.3ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
624
+ Completed 200 OK in 17ms (Views: 0.3ms | ActiveRecord: 1.6ms)
625
+  (0.5ms) rollback transaction
626
+  (0.1ms) begin transaction
627
+  (0.0ms) commit transaction
628
+  (0.0ms) begin transaction
629
+  (0.0ms) SAVEPOINT active_record_1
630
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
632
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:49:12 -0500
633
+ Processing by AuthorsController#update as JSON
634
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
635
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
636
+  (0.0ms) SAVEPOINT active_record_1
637
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
638
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.2ms | ActiveRecord: 0.2ms)
639
+  (0.6ms) rollback transaction
640
+  (0.1ms) begin transaction
641
+  (0.0ms) commit transaction
642
+  (0.0ms) begin transaction
643
+  (0.0ms) SAVEPOINT active_record_1
644
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
646
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:49:36 -0500
647
+ Processing by AuthorsController#update as JSON
648
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
649
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
650
+  (0.1ms) SAVEPOINT active_record_1
651
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
653
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 1.1ms)
654
+  (1.6ms) rollback transaction
655
+  (0.1ms) begin transaction
656
+  (0.0ms) commit transaction
657
+  (0.0ms) begin transaction
658
+  (0.1ms) SAVEPOINT active_record_1
659
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
661
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 13:49:36 -0500
662
+ Processing by AuthorsController#update as JSON
663
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
664
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
665
+  (0.1ms) SAVEPOINT active_record_1
666
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
667
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
668
+  (0.5ms) rollback transaction
669
+  (0.1ms) begin transaction
670
+ ---------------------------
671
+ Code42RailsTest: test_truth
672
+ ---------------------------
673
+  (0.0ms) rollback transaction
674
+  (0.0ms) begin transaction
675
+ --------------------------
676
+ ErrorsTest: test_something
677
+ --------------------------
678
+  (0.0ms) rollback transaction
679
+  (0.1ms) begin transaction
680
+ --------------------------
681
+ ErrorsTest: test_something
682
+ --------------------------
683
+  (0.1ms) rollback transaction
684
+  (0.0ms) begin transaction
685
+ ---------------------------
686
+ Code42RailsTest: test_truth
687
+ ---------------------------
688
+  (0.0ms) rollback transaction
689
+  (0.1ms) begin transaction
690
+ ---------------------------
691
+ Code42RailsTest: test_truth
692
+ ---------------------------
693
+  (0.0ms) rollback transaction
694
+  (0.0ms) begin transaction
695
+ --------------------------
696
+ ErrorsTest: test_something
697
+ --------------------------
698
+  (0.0ms) rollback transaction
699
+  (0.1ms) begin transaction
700
+ ---------------------------
701
+ Code42RailsTest: test_truth
702
+ ---------------------------
703
+  (0.0ms) rollback transaction
704
+  (0.0ms) begin transaction
705
+ --------------------------
706
+ ErrorsTest: test_something
707
+ --------------------------
708
+  (0.1ms) rollback transaction
709
+  (0.1ms) begin transaction
710
+ --------------------------
711
+ ErrorsTest: test_something
712
+ --------------------------
713
+  (0.2ms) rollback transaction
714
+  (0.0ms) begin transaction
715
+ ---------------------------
716
+ Code42RailsTest: test_truth
717
+ ---------------------------
718
+  (0.0ms) rollback transaction
719
+  (0.1ms) begin transaction
720
+ ---------------------------
721
+ Code42RailsTest: test_truth
722
+ ---------------------------
723
+  (0.0ms) rollback transaction
724
+  (0.0ms) begin transaction
725
+ ------------------------
726
+ ErrorsTest: test_as_json
727
+ ------------------------
728
+  (0.1ms) rollback transaction
729
+  (0.1ms) begin transaction
730
+ ------------------------
731
+ ErrorsTest: test_as_json
732
+ ------------------------
733
+  (0.1ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+ ---------------------------
736
+ Code42RailsTest: test_truth
737
+ ---------------------------
738
+  (0.0ms) rollback transaction
739
+  (0.1ms) begin transaction
740
+ ---------------------------
741
+ Code42RailsTest: test_truth
742
+ ---------------------------
743
+  (0.0ms) rollback transaction
744
+  (0.0ms) begin transaction
745
+ ------------------------
746
+ ErrorsTest: test_as_json
747
+ ------------------------
748
+  (0.0ms) rollback transaction
749
+  (0.1ms) begin transaction
750
+ ------------------------
751
+ ErrorsTest: test_as_json
752
+ ------------------------
753
+  (0.0ms) rollback transaction
754
+  (0.0ms) begin transaction
755
+ ---------------------------
756
+ Code42RailsTest: test_truth
757
+ ---------------------------
758
+  (0.0ms) rollback transaction
759
+  (0.1ms) begin transaction
760
+ ---------------------------
761
+ Code42RailsTest: test_truth
762
+ ---------------------------
763
+  (0.1ms) rollback transaction
764
+  (0.0ms) begin transaction
765
+ ------------------------
766
+ ErrorsTest: test_as_json
767
+ ------------------------
768
+  (0.0ms) rollback transaction
769
+  (0.1ms) begin transaction
770
+ ------------------------
771
+ ErrorsTest: test_as_json
772
+ ------------------------
773
+  (0.1ms) rollback transaction
774
+  (0.0ms) begin transaction
775
+ ---------------------------
776
+ Code42RailsTest: test_truth
777
+ ---------------------------
778
+  (0.0ms) rollback transaction
779
+  (0.1ms) begin transaction
780
+  (0.1ms) commit transaction
781
+  (0.0ms) begin transaction
782
+  (0.1ms) SAVEPOINT active_record_1
783
+ SQL (1.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
785
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 14:47:24 -0500
786
+ Processing by AuthorsController#update as JSON
787
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
788
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
789
+  (0.1ms) SAVEPOINT active_record_1
790
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
791
+  (0.0ms) RELEASE SAVEPOINT active_record_1
792
+ Completed 200 OK in 74ms (Views: 16.5ms | ActiveRecord: 1.1ms)
793
+  (0.5ms) rollback transaction
794
+  (0.1ms) begin transaction
795
+  (0.0ms) commit transaction
796
+  (0.0ms) begin transaction
797
+  (0.0ms) SAVEPOINT active_record_1
798
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
800
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 14:47:24 -0500
801
+ Processing by AuthorsController#update as JSON
802
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
803
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
804
+  (0.0ms) SAVEPOINT active_record_1
805
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
806
+ Completed 422 Unprocessable Entity in 91ms (Views: 49.3ms | ActiveRecord: 0.2ms)
807
+  (0.5ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+  (0.0ms) commit transaction
810
+  (0.0ms) begin transaction
811
+  (0.0ms) SAVEPOINT active_record_1
812
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
814
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 14:47:58 -0500
815
+ Processing by AuthorsController#update as JSON
816
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
817
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
818
+  (0.1ms) SAVEPOINT active_record_1
819
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
821
+ Completed 200 OK in 60ms (Views: 15.0ms | ActiveRecord: 1.1ms)
822
+  (2.0ms) rollback transaction
823
+  (0.1ms) begin transaction
824
+  (0.0ms) commit transaction
825
+  (0.0ms) begin transaction
826
+  (0.0ms) SAVEPOINT active_record_1
827
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 14:47:58 -0500
830
+ Processing by AuthorsController#update as JSON
831
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
832
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
833
+  (0.0ms) SAVEPOINT active_record_1
834
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
835
+ Completed 422 Unprocessable Entity in 59ms (Views: 29.5ms | ActiveRecord: 0.1ms)
836
+  (0.7ms) rollback transaction
837
+  (0.1ms) begin transaction
838
+ ---------------------------
839
+ Code42RailsTest: test_truth
840
+ ---------------------------
841
+  (0.0ms) rollback transaction
842
+  (0.0ms) begin transaction
843
+ ------------------------
844
+ ErrorsTest: test_as_json
845
+ ------------------------
846
+  (0.0ms) rollback transaction
847
+  (0.1ms) begin transaction
848
+ ------------------------
849
+ ErrorsTest: test_as_json
850
+ ------------------------
851
+  (0.1ms) rollback transaction
852
+  (0.1ms) begin transaction
853
+ ---------------------------
854
+ Code42RailsTest: test_truth
855
+ ---------------------------
856
+  (0.0ms) rollback transaction
857
+  (0.1ms) begin transaction
858
+ ---------------------------
859
+ Code42RailsTest: test_truth
860
+ ---------------------------
861
+  (0.0ms) rollback transaction
862
+  (0.1ms) begin transaction
863
+ ------------------------
864
+ ErrorsTest: test_as_json
865
+ ------------------------
866
+  (0.1ms) rollback transaction
867
+  (0.1ms) begin transaction
868
+ ------------------------
869
+ ErrorsTest: test_as_json
870
+ ------------------------
871
+  (0.1ms) rollback transaction
872
+  (0.1ms) begin transaction
873
+ ---------------------------
874
+ Code42RailsTest: test_truth
875
+ ---------------------------
876
+  (0.1ms) rollback transaction
877
+  (0.1ms) begin transaction
878
+ ------------------------
879
+ ErrorsTest: test_as_json
880
+ ------------------------
881
+  (0.2ms) rollback transaction
882
+  (0.1ms) begin transaction
883
+ ---------------------------
884
+ Code42RailsTest: test_truth
885
+ ---------------------------
886
+  (0.0ms) rollback transaction
887
+  (0.1ms) begin transaction
888
+ ------------------------
889
+ ErrorsTest: test_as_json
890
+ ------------------------
891
+  (0.2ms) rollback transaction
892
+  (0.1ms) begin transaction
893
+ ---------------------------
894
+ Code42RailsTest: test_truth
895
+ ---------------------------
896
+  (0.0ms) rollback transaction
897
+  (0.1ms) begin transaction
898
+ ------------------------
899
+ ErrorsTest: test_as_json
900
+ ------------------------
901
+  (0.1ms) rollback transaction
902
+  (0.1ms) begin transaction
903
+ ---------------------------
904
+ Code42RailsTest: test_truth
905
+ ---------------------------
906
+  (0.0ms) rollback transaction
907
+  (0.1ms) begin transaction
908
+ ------------------------
909
+ ErrorsTest: test_as_json
910
+ ------------------------
911
+  (0.2ms) rollback transaction
912
+  (0.1ms) begin transaction
913
+ ---------------------------
914
+ Code42RailsTest: test_truth
915
+ ---------------------------
916
+  (0.0ms) rollback transaction
917
+  (0.1ms) begin transaction
918
+ ------------------------
919
+ ErrorsTest: test_as_json
920
+ ------------------------
921
+  (0.2ms) rollback transaction
922
+  (0.1ms) begin transaction
923
+ ---------------------------
924
+ Code42RailsTest: test_truth
925
+ ---------------------------
926
+  (0.0ms) rollback transaction
927
+  (0.1ms) begin transaction
928
+ ---------------------------
929
+ Code42RailsTest: test_truth
930
+ ---------------------------
931
+  (0.0ms) rollback transaction
932
+  (0.0ms) begin transaction
933
+ ------------------------
934
+ ErrorsTest: test_as_json
935
+ ------------------------
936
+  (0.2ms) rollback transaction
937
+  (0.1ms) begin transaction
938
+ ---------------------------
939
+ Code42RailsTest: test_truth
940
+ ---------------------------
941
+  (0.1ms) rollback transaction
942
+  (0.1ms) begin transaction
943
+ ------------------------
944
+ ErrorsTest: test_as_json
945
+ ------------------------
946
+  (0.1ms) rollback transaction
947
+  (0.1ms) begin transaction
948
+  (0.1ms) commit transaction
949
+  (0.1ms) begin transaction
950
+  (0.1ms) SAVEPOINT active_record_1
951
+ SQL (1.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
952
+  (0.1ms) RELEASE SAVEPOINT active_record_1
953
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:40:51 -0500
954
+ Processing by AuthorsController#update as JSON
955
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
956
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
957
+  (0.1ms) SAVEPOINT active_record_1
958
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
960
+ Completed 200 OK in 31ms (Views: 15.0ms | ActiveRecord: 1.3ms)
961
+  (0.6ms) rollback transaction
962
+  (0.1ms) begin transaction
963
+  (0.0ms) commit transaction
964
+  (0.0ms) begin transaction
965
+  (0.0ms) SAVEPOINT active_record_1
966
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
968
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:40:51 -0500
969
+ Processing by AuthorsController#update as JSON
970
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
971
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
972
+  (0.1ms) SAVEPOINT active_record_1
973
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
974
+ Completed 422 Unprocessable Entity in 63ms (Views: 31.5ms | ActiveRecord: 0.2ms)
975
+  (0.5ms) rollback transaction
976
+  (0.1ms) begin transaction
977
+  (0.0ms) commit transaction
978
+  (0.0ms) begin transaction
979
+  (0.1ms) SAVEPOINT active_record_1
980
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
981
+  (0.0ms) RELEASE SAVEPOINT active_record_1
982
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:43:09 -0500
983
+ Processing by AuthorsController#update as JSON
984
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
985
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
986
+  (0.1ms) SAVEPOINT active_record_1
987
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
989
+ Completed 200 OK in 15ms (Views: 0.6ms | ActiveRecord: 1.1ms)
990
+  (2.1ms) rollback transaction
991
+  (0.2ms) begin transaction
992
+  (0.1ms) commit transaction
993
+  (0.0ms) begin transaction
994
+  (0.1ms) SAVEPOINT active_record_1
995
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
997
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:43:09 -0500
998
+ Processing by AuthorsController#update as JSON
999
+ Parameters: {"author"=>{"first_name"=>nil, "last_name"=>nil}, "id"=>"3"}
1000
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1001
+  (0.0ms) SAVEPOINT active_record_1
1002
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1003
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1004
+  (0.5ms) rollback transaction
1005
+  (0.1ms) begin transaction
1006
+  (0.0ms) commit transaction
1007
+  (0.0ms) begin transaction
1008
+  (0.0ms) SAVEPOINT active_record_1
1009
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1011
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:43:33 -0500
1012
+ Processing by AuthorsController#update as JSON
1013
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1014
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1015
+  (0.1ms) SAVEPOINT active_record_1
1016
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1018
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 1.1ms)
1019
+  (1.6ms) rollback transaction
1020
+  (0.1ms) begin transaction
1021
+  (0.0ms) commit transaction
1022
+  (0.0ms) begin transaction
1023
+  (0.0ms) SAVEPOINT active_record_1
1024
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1026
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:43:33 -0500
1027
+ Processing by AuthorsController#update as JSON
1028
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1029
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1030
+  (0.1ms) SAVEPOINT active_record_1
1031
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1032
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1033
+  (0.5ms) rollback transaction
1034
+  (0.1ms) begin transaction
1035
+  (0.0ms) commit transaction
1036
+  (0.0ms) begin transaction
1037
+  (0.0ms) SAVEPOINT active_record_1
1038
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1039
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1040
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:44:03 -0500
1041
+ Processing by AuthorsController#update as JSON
1042
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1043
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1044
+  (0.1ms) SAVEPOINT active_record_1
1045
+ SQL (0.8ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1047
+ Completed 200 OK in 12ms (Views: 0.3ms | ActiveRecord: 1.1ms)
1048
+  (1.7ms) rollback transaction
1049
+  (0.1ms) begin transaction
1050
+  (0.0ms) commit transaction
1051
+  (0.0ms) begin transaction
1052
+  (0.0ms) SAVEPOINT active_record_1
1053
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:44:03 -0500
1056
+ Processing by AuthorsController#update as JSON
1057
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1058
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1059
+  (0.1ms) SAVEPOINT active_record_1
1060
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1061
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1062
+  (0.5ms) rollback transaction
1063
+  (0.1ms) begin transaction
1064
+  (0.0ms) commit transaction
1065
+  (0.0ms) begin transaction
1066
+  (0.1ms) SAVEPOINT active_record_1
1067
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 16:45:44 -0500
1070
+ Processing by AuthorsController#update as JSON
1071
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1072
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1073
+  (0.1ms) SAVEPOINT active_record_1
1074
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1075
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1076
+  (2.3ms) rollback transaction
1077
+  (0.2ms) begin transaction
1078
+  (0.1ms) commit transaction
1079
+  (0.1ms) begin transaction
1080
+  (0.1ms) SAVEPOINT active_record_1
1081
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1083
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-19 17:08:39 -0500
1084
+ Processing by AuthorsController#update as JSON
1085
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1086
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1087
+  (0.1ms) SAVEPOINT active_record_1
1088
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1089
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1090
+  (0.5ms) rollback transaction
1091
+  (0.1ms) begin transaction
1092
+ ------------------------
1093
+ ErrorsTest: test_as_json
1094
+ ------------------------
1095
+  (0.1ms) rollback transaction
1096
+  (0.1ms) begin transaction
1097
+ ------------------------
1098
+ ErrorsTest: test_as_json
1099
+ ------------------------
1100
+  (0.1ms) rollback transaction
1101
+  (0.1ms) begin transaction
1102
+ ------------------------
1103
+ ErrorsTest: test_as_json
1104
+ ------------------------
1105
+  (0.1ms) rollback transaction
1106
+  (0.1ms) begin transaction
1107
+ ------------------------
1108
+ ErrorsTest: test_as_json
1109
+ ------------------------
1110
+  (0.0ms) rollback transaction
1111
+  (0.1ms) begin transaction
1112
+ ------------------------
1113
+ ErrorsTest: test_as_json
1114
+ ------------------------
1115
+  (0.1ms) rollback transaction
1116
+  (0.1ms) begin transaction
1117
+ ------------------------
1118
+ ErrorsTest: test_as_json
1119
+ ------------------------
1120
+  (0.1ms) rollback transaction
1121
+  (0.1ms) begin transaction
1122
+ ------------------------
1123
+ ErrorsTest: test_as_json
1124
+ ------------------------
1125
+  (0.1ms) rollback transaction
1126
+  (0.1ms) begin transaction
1127
+ ------------------------
1128
+ ErrorsTest: test_as_json
1129
+ ------------------------
1130
+  (0.2ms) rollback transaction
1131
+  (0.1ms) begin transaction
1132
+ ---------------------------
1133
+ ErrorsTest: test_error_type
1134
+ ---------------------------
1135
+  (0.1ms) rollback transaction
1136
+  (0.1ms) begin transaction
1137
+ ------------------------
1138
+ ErrorsTest: test_as_json
1139
+ ------------------------
1140
+  (0.1ms) rollback transaction
1141
+  (0.1ms) begin transaction
1142
+ ---------------------------
1143
+ ErrorsTest: test_error_type
1144
+ ---------------------------
1145
+  (0.0ms) rollback transaction
1146
+  (0.1ms) begin transaction
1147
+ ------------------------
1148
+ ErrorsTest: test_as_json
1149
+ ------------------------
1150
+  (0.1ms) rollback transaction
1151
+  (0.0ms) begin transaction
1152
+ ---------------------------
1153
+ ErrorsTest: test_error_type
1154
+ ---------------------------
1155
+  (0.1ms) rollback transaction
1156
+  (0.1ms) begin transaction
1157
+ ------------------------
1158
+ ErrorsTest: test_as_json
1159
+ ------------------------
1160
+  (0.1ms) rollback transaction
1161
+  (0.1ms) begin transaction
1162
+ ---------------------------
1163
+ ErrorsTest: test_error_type
1164
+ ---------------------------
1165
+  (0.1ms) rollback transaction
1166
+  (0.1ms) begin transaction
1167
+ ------------------------
1168
+ ErrorsTest: test_as_json
1169
+ ------------------------
1170
+  (0.1ms) rollback transaction
1171
+  (0.0ms) begin transaction
1172
+ ---------------------------
1173
+ ErrorsTest: test_error_type
1174
+ ---------------------------
1175
+  (0.0ms) rollback transaction
1176
+  (0.1ms) begin transaction
1177
+ ------------------------
1178
+ ErrorsTest: test_as_json
1179
+ ------------------------
1180
+  (0.1ms) rollback transaction
1181
+  (0.0ms) begin transaction
1182
+ ---------------------------
1183
+ ErrorsTest: test_error_type
1184
+ ---------------------------
1185
+  (0.1ms) rollback transaction
1186
+  (0.1ms) begin transaction
1187
+ ------------------------
1188
+ ErrorsTest: test_as_json
1189
+ ------------------------
1190
+  (0.1ms) rollback transaction
1191
+  (0.0ms) begin transaction
1192
+ ---------------------------
1193
+ ErrorsTest: test_error_type
1194
+ ---------------------------
1195
+  (0.2ms) rollback transaction
1196
+  (0.1ms) begin transaction
1197
+ ------------------------
1198
+ ErrorsTest: test_as_json
1199
+ ------------------------
1200
+  (0.1ms) rollback transaction
1201
+  (0.0ms) begin transaction
1202
+ ---------------------------
1203
+ ErrorsTest: test_error_type
1204
+ ---------------------------
1205
+  (0.0ms) rollback transaction
1206
+  (0.1ms) begin transaction
1207
+ ------------------------
1208
+ ErrorsTest: test_as_json
1209
+ ------------------------
1210
+  (0.1ms) rollback transaction
1211
+  (0.0ms) begin transaction
1212
+ ---------------------------
1213
+ ErrorsTest: test_error_type
1214
+ ---------------------------
1215
+  (0.0ms) rollback transaction
1216
+  (0.1ms) begin transaction
1217
+ ------------------------
1218
+ ErrorsTest: test_as_json
1219
+ ------------------------
1220
+  (0.1ms) rollback transaction
1221
+  (0.0ms) begin transaction
1222
+ ---------------------------
1223
+ ErrorsTest: test_error_type
1224
+ ---------------------------
1225
+  (0.0ms) rollback transaction
1226
+  (0.1ms) begin transaction
1227
+ ------------------------
1228
+ ErrorsTest: test_as_json
1229
+ ------------------------
1230
+  (0.1ms) rollback transaction
1231
+  (0.1ms) begin transaction
1232
+ ---------------------------
1233
+ ErrorsTest: test_error_type
1234
+ ---------------------------
1235
+  (0.1ms) rollback transaction
1236
+  (0.1ms) begin transaction
1237
+ ------------------------
1238
+ ErrorsTest: test_as_json
1239
+ ------------------------
1240
+  (0.1ms) rollback transaction
1241
+  (0.1ms) begin transaction
1242
+ ---------------------------
1243
+ ErrorsTest: test_error_type
1244
+ ---------------------------
1245
+  (0.1ms) rollback transaction
1246
+  (0.1ms) begin transaction
1247
+ ------------------------
1248
+ ErrorsTest: test_as_json
1249
+ ------------------------
1250
+  (0.1ms) rollback transaction
1251
+  (0.1ms) begin transaction
1252
+ ---------------------------
1253
+ ErrorsTest: test_error_type
1254
+ ---------------------------
1255
+  (0.1ms) rollback transaction
1256
+  (0.1ms) begin transaction
1257
+ ------------------------
1258
+ ErrorsTest: test_as_json
1259
+ ------------------------
1260
+  (0.1ms) rollback transaction
1261
+  (0.0ms) begin transaction
1262
+ ---------------------------
1263
+ ErrorsTest: test_error_type
1264
+ ---------------------------
1265
+  (0.0ms) rollback transaction
1266
+  (0.1ms) begin transaction
1267
+  (0.0ms) commit transaction
1268
+  (0.0ms) begin transaction
1269
+  (0.0ms) SAVEPOINT active_record_1
1270
+ SQL (1.1ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1272
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 10:00:03 -0500
1273
+ Processing by AuthorsController#update as JSON
1274
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1275
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1276
+  (0.1ms) SAVEPOINT active_record_1
1277
+ SQL (0.9ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1279
+ Completed 200 OK in 16ms (Views: 0.5ms | ActiveRecord: 1.2ms)
1280
+  (0.9ms) rollback transaction
1281
+  (0.1ms) begin transaction
1282
+  (0.0ms) commit transaction
1283
+  (0.0ms) begin transaction
1284
+  (0.0ms) SAVEPOINT active_record_1
1285
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1287
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 10:00:03 -0500
1288
+ Processing by AuthorsController#update as JSON
1289
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1290
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1291
+  (0.1ms) SAVEPOINT active_record_1
1292
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1293
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1294
+  (0.5ms) rollback transaction
1295
+  (0.1ms) begin transaction
1296
+ ------------------------
1297
+ ErrorsTest: test_as_json
1298
+ ------------------------
1299
+  (0.1ms) rollback transaction
1300
+  (0.1ms) begin transaction
1301
+ ---------------------------
1302
+ ErrorsTest: test_error_type
1303
+ ---------------------------
1304
+  (0.1ms) rollback transaction
1305
+  (0.1ms) begin transaction
1306
+  (0.0ms) commit transaction
1307
+  (0.0ms) begin transaction
1308
+  (0.1ms) SAVEPOINT active_record_1
1309
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1311
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 10:09:55 -0500
1312
+ Processing by AuthorsController#update as JSON
1313
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1314
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1315
+  (0.1ms) SAVEPOINT active_record_1
1316
+ SQL (1.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1318
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 1.3ms)
1319
+  (1.6ms) rollback transaction
1320
+  (0.1ms) begin transaction
1321
+  (0.0ms) commit transaction
1322
+  (0.0ms) begin transaction
1323
+  (0.1ms) SAVEPOINT active_record_1
1324
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1325
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1326
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 10:09:55 -0500
1327
+ Processing by AuthorsController#update as JSON
1328
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1329
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1330
+  (0.1ms) SAVEPOINT active_record_1
1331
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1332
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1333
+  (0.5ms) rollback transaction
1334
+  (0.1ms) begin transaction
1335
+ ------------------------
1336
+ ErrorsTest: test_as_json
1337
+ ------------------------
1338
+  (0.1ms) rollback transaction
1339
+  (0.1ms) begin transaction
1340
+ ---------------------------
1341
+ ErrorsTest: test_error_type
1342
+ ---------------------------
1343
+  (0.1ms) rollback transaction
1344
+  (0.1ms) begin transaction
1345
+  (0.0ms) commit transaction
1346
+  (0.0ms) begin transaction
1347
+  (0.1ms) SAVEPOINT active_record_1
1348
+ SQL (0.6ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1350
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 11:38:06 -0500
1351
+ Processing by AuthorsController#update as JSON
1352
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1353
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1354
+  (0.1ms) SAVEPOINT active_record_1
1355
+ SQL (1.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+ Completed 200 OK in 61ms (Views: 0.5ms | ActiveRecord: 1.4ms)
1358
+  (1.6ms) rollback transaction
1359
+  (0.1ms) begin transaction
1360
+  (0.0ms) commit transaction
1361
+  (0.0ms) begin transaction
1362
+  (0.0ms) SAVEPOINT active_record_1
1363
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1365
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 11:38:06 -0500
1366
+ Processing by AuthorsController#update as JSON
1367
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1368
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1369
+  (0.1ms) SAVEPOINT active_record_1
1370
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1371
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.3ms | ActiveRecord: 0.3ms)
1372
+  (0.4ms) rollback transaction
1373
+  (0.1ms) begin transaction
1374
+ ------------------------
1375
+ ErrorsTest: test_as_json
1376
+ ------------------------
1377
+  (0.1ms) rollback transaction
1378
+  (0.1ms) begin transaction
1379
+ ---------------------------
1380
+ ErrorsTest: test_error_type
1381
+ ---------------------------
1382
+  (0.1ms) rollback transaction
1383
+  (0.1ms) begin transaction
1384
+  (0.0ms) commit transaction
1385
+  (0.0ms) begin transaction
1386
+  (0.1ms) SAVEPOINT active_record_1
1387
+ SQL (0.6ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1389
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 11:52:49 -0500
1390
+ Processing by AuthorsController#update as JSON
1391
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1392
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1393
+  (0.1ms) SAVEPOINT active_record_1
1394
+ SQL (1.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1396
+ Completed 200 OK in 52ms (Views: 0.3ms | ActiveRecord: 1.4ms)
1397
+  (1.7ms) rollback transaction
1398
+  (0.1ms) begin transaction
1399
+  (0.0ms) commit transaction
1400
+  (0.0ms) begin transaction
1401
+  (0.0ms) SAVEPOINT active_record_1
1402
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1404
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 11:52:49 -0500
1405
+ Processing by AuthorsController#update as JSON
1406
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1407
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1408
+  (0.0ms) SAVEPOINT active_record_1
1409
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1410
+ Completed 422 Unprocessable Entity in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1411
+  (0.5ms) rollback transaction
1412
+  (0.1ms) begin transaction
1413
+ ------------------------
1414
+ ErrorsTest: test_as_json
1415
+ ------------------------
1416
+  (0.2ms) rollback transaction
1417
+  (0.1ms) begin transaction
1418
+ ---------------------------
1419
+ ErrorsTest: test_error_type
1420
+ ---------------------------
1421
+  (0.1ms) rollback transaction
1422
+  (0.1ms) begin transaction
1423
+ ------------------------
1424
+ ErrorsTest: test_as_json
1425
+ ------------------------
1426
+  (0.1ms) rollback transaction
1427
+  (0.0ms) begin transaction
1428
+ ---------------------------
1429
+ ErrorsTest: test_error_type
1430
+ ---------------------------
1431
+  (0.0ms) rollback transaction
1432
+  (0.1ms) begin transaction
1433
+  (0.0ms) commit transaction
1434
+  (0.0ms) begin transaction
1435
+  (0.1ms) SAVEPOINT active_record_1
1436
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1438
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 13:24:59 -0500
1439
+ Processing by AuthorsController#update as JSON
1440
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1441
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1442
+  (0.1ms) SAVEPOINT active_record_1
1443
+ SQL (1.1ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1445
+ Completed 200 OK in 54ms (Views: 0.3ms | ActiveRecord: 1.4ms)
1446
+  (0.8ms) rollback transaction
1447
+  (0.1ms) begin transaction
1448
+  (0.0ms) commit transaction
1449
+  (0.0ms) begin transaction
1450
+  (0.0ms) SAVEPOINT active_record_1
1451
+ SQL (0.2ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1453
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 13:24:59 -0500
1454
+ Processing by AuthorsController#update as JSON
1455
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1456
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1457
+  (0.0ms) SAVEPOINT active_record_1
1458
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1459
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1460
+  (0.5ms) rollback transaction
1461
+  (0.1ms) begin transaction
1462
+ ------------------------
1463
+ ErrorsTest: test_as_json
1464
+ ------------------------
1465
+  (0.1ms) rollback transaction
1466
+  (0.1ms) begin transaction
1467
+ ---------------------------
1468
+ ErrorsTest: test_error_type
1469
+ ---------------------------
1470
+  (0.1ms) rollback transaction
1471
+  (0.1ms) begin transaction
1472
+  (0.0ms) commit transaction
1473
+  (0.0ms) begin transaction
1474
+  (0.0ms) SAVEPOINT active_record_1
1475
+ SQL (0.4ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1477
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 13:26:55 -0500
1478
+ Processing by AuthorsController#update as JSON
1479
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1480
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1481
+  (0.1ms) SAVEPOINT active_record_1
1482
+ SQL (1.1ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1484
+ Completed 200 OK in 58ms (Views: 0.3ms | ActiveRecord: 1.5ms)
1485
+  (2.2ms) rollback transaction
1486
+  (0.1ms) begin transaction
1487
+  (0.0ms) commit transaction
1488
+  (0.1ms) begin transaction
1489
+  (0.1ms) SAVEPOINT active_record_1
1490
+ SQL (0.3ms) INSERT INTO "authors" ("first_name", "id", "last_name") VALUES (?, ?, ?) [["first_name", "Stephen"], ["id", 3], ["last_name", "King"]]
1491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1492
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 13:26:55 -0500
1493
+ Processing by AuthorsController#update as JSON
1494
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1495
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1496
+  (0.0ms) SAVEPOINT active_record_1
1497
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1498
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.1ms)
1499
+  (0.5ms) rollback transaction
1500
+  (0.1ms) begin transaction
1501
+ ------------------------
1502
+ ErrorsTest: test_as_json
1503
+ ------------------------
1504
+  (0.1ms) rollback transaction
1505
+  (0.1ms) begin transaction
1506
+ ---------------------------
1507
+ ErrorsTest: test_error_type
1508
+ ---------------------------
1509
+  (0.1ms) rollback transaction
1510
+  (0.1ms) begin transaction
1511
+  (0.0ms) commit transaction
1512
+  (0.0ms) begin transaction
1513
+  (0.1ms) rollback transaction
1514
+  (0.1ms) begin transaction
1515
+  (0.0ms) commit transaction
1516
+  (0.0ms) begin transaction
1517
+  (0.1ms) rollback transaction
1518
+  (0.1ms) begin transaction
1519
+ ------------------------
1520
+ ErrorsTest: test_as_json
1521
+ ------------------------
1522
+  (0.1ms) rollback transaction
1523
+  (0.1ms) begin transaction
1524
+ ---------------------------
1525
+ ErrorsTest: test_error_type
1526
+ ---------------------------
1527
+  (0.0ms) rollback transaction
1528
+  (0.1ms) begin transaction
1529
+  (0.0ms) commit transaction
1530
+  (0.0ms) begin transaction
1531
+  (0.1ms) rollback transaction
1532
+  (0.1ms) begin transaction
1533
+  (0.0ms) commit transaction
1534
+  (0.0ms) begin transaction
1535
+  (0.1ms) rollback transaction
1536
+  (0.1ms) begin transaction
1537
+ ------------------------
1538
+ ErrorsTest: test_as_json
1539
+ ------------------------
1540
+  (0.1ms) rollback transaction
1541
+  (0.1ms) begin transaction
1542
+ ---------------------------
1543
+ ErrorsTest: test_error_type
1544
+ ---------------------------
1545
+  (0.1ms) rollback transaction
1546
+  (0.1ms) begin transaction
1547
+  (0.0ms) commit transaction
1548
+  (0.0ms) begin transaction
1549
+  (0.1ms) SAVEPOINT active_record_1
1550
+ SQL (0.6ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-08-22 04:27:08.834548"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-08-22 04:27:08.834548"]]
1551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 23:27:08 -0500
1553
+ Processing by AuthorsController#update as JSON
1554
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1555
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1556
+  (0.1ms) SAVEPOINT active_record_1
1557
+ SQL (1.3ms) UPDATE "authors" SET "last_name" = ?, "updated_at" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"], ["updated_at", "2014-08-22 04:27:08.901344"]]
1558
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1559
+ Completed 200 OK in 59ms (Views: 0.5ms | ActiveRecord: 1.6ms)
1560
+  (0.5ms) rollback transaction
1561
+  (0.1ms) begin transaction
1562
+  (0.0ms) commit transaction
1563
+  (0.0ms) begin transaction
1564
+  (0.0ms) SAVEPOINT active_record_1
1565
+ SQL (0.3ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-08-22 04:27:08.928192"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-08-22 04:27:08.928192"]]
1566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1567
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-08-21 23:27:08 -0500
1568
+ Processing by AuthorsController#update as JSON
1569
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1570
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1571
+  (0.0ms) SAVEPOINT active_record_1
1572
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1573
+ Completed 422 Unprocessable Entity in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1574
+  (0.6ms) rollback transaction
1575
+  (0.1ms) begin transaction
1576
+  (0.1ms) commit transaction
1577
+  (0.0ms) begin transaction
1578
+  (0.1ms) rollback transaction
1579
+  (0.1ms) begin transaction
1580
+  (0.0ms) commit transaction
1581
+  (0.0ms) begin transaction
1582
+  (0.1ms) rollback transaction
1583
+  (0.1ms) begin transaction
1584
+  (0.0ms) commit transaction
1585
+  (0.0ms) begin transaction
1586
+  (0.1ms) rollback transaction
1587
+  (0.1ms) begin transaction
1588
+  (0.0ms) commit transaction
1589
+  (0.0ms) begin transaction
1590
+  (0.1ms) rollback transaction
1591
+  (0.1ms) begin transaction
1592
+  (0.0ms) commit transaction
1593
+  (0.0ms) begin transaction
1594
+  (0.0ms) SAVEPOINT active_record_1
1595
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1597
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1598
+ Processing by AuthorsController#update as JSON
1599
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1600
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1601
+  (0.0ms) SAVEPOINT active_record_1
1602
+ SQL (0.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1604
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1605
+  (0.7ms) rollback transaction
1606
+  (0.1ms) begin transaction
1607
+  (0.0ms) commit transaction
1608
+  (0.0ms) begin transaction
1609
+  (0.0ms) SAVEPOINT active_record_1
1610
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1612
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1613
+ Processing by AuthorsController#update as JSON
1614
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1615
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1616
+  (0.0ms) SAVEPOINT active_record_1
1617
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1618
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1619
+  (0.5ms) rollback transaction
1620
+  (0.1ms) begin transaction
1621
+  (0.1ms) commit transaction
1622
+  (0.1ms) begin transaction
1623
+  (0.0ms) SAVEPOINT active_record_1
1624
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1626
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1627
+ Processing by AuthorsController#update as JSON
1628
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1629
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1630
+  (0.0ms) SAVEPOINT active_record_1
1631
+ SQL (0.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1633
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1634
+  (1.7ms) rollback transaction
1635
+  (0.1ms) begin transaction
1636
+  (0.1ms) commit transaction
1637
+  (0.1ms) begin transaction
1638
+  (0.0ms) SAVEPOINT active_record_1
1639
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1640
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1641
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1642
+ Processing by AuthorsController#update as JSON
1643
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1644
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1645
+  (0.0ms) SAVEPOINT active_record_1
1646
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1647
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1648
+  (0.5ms) rollback transaction
1649
+  (0.1ms) begin transaction
1650
+  (0.0ms) commit transaction
1651
+  (0.0ms) begin transaction
1652
+  (0.0ms) SAVEPOINT active_record_1
1653
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1654
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1655
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1656
+ Processing by AuthorsController#update as JSON
1657
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1658
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1659
+  (0.0ms) SAVEPOINT active_record_1
1660
+ SQL (0.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1662
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1663
+  (1.8ms) rollback transaction
1664
+  (0.1ms) begin transaction
1665
+  (0.0ms) commit transaction
1666
+  (0.0ms) begin transaction
1667
+  (0.0ms) SAVEPOINT active_record_1
1668
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1670
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1671
+ Processing by AuthorsController#update as JSON
1672
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1673
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1674
+  (0.0ms) SAVEPOINT active_record_1
1675
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1676
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1677
+  (0.5ms) rollback transaction
1678
+  (0.1ms) begin transaction
1679
+ ---------------------------------------------------------
1680
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1681
+ ---------------------------------------------------------
1682
+  (0.1ms) rollback transaction
1683
+  (0.1ms) begin transaction
1684
+ ------------------------
1685
+ ErrorsTest: test_as_json
1686
+ ------------------------
1687
+  (0.1ms) rollback transaction
1688
+  (0.1ms) begin transaction
1689
+ ---------------------------
1690
+ ErrorsTest: test_error_type
1691
+ ---------------------------
1692
+  (0.1ms) rollback transaction
1693
+  (0.1ms) begin transaction
1694
+ ---------------------------------------------------------
1695
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1696
+ ---------------------------------------------------------
1697
+  (0.1ms) rollback transaction
1698
+  (0.1ms) begin transaction
1699
+ ------------------------
1700
+ ErrorsTest: test_as_json
1701
+ ------------------------
1702
+  (0.1ms) rollback transaction
1703
+  (0.1ms) begin transaction
1704
+ ---------------------------
1705
+ ErrorsTest: test_error_type
1706
+ ---------------------------
1707
+  (0.1ms) rollback transaction
1708
+  (0.1ms) begin transaction
1709
+ ---------------------------------------------------------
1710
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1711
+ ---------------------------------------------------------
1712
+  (0.2ms) rollback transaction
1713
+  (0.1ms) begin transaction
1714
+ ------------------------
1715
+ ErrorsTest: test_as_json
1716
+ ------------------------
1717
+  (0.1ms) rollback transaction
1718
+  (0.2ms) begin transaction
1719
+ ---------------------------
1720
+ ErrorsTest: test_error_type
1721
+ ---------------------------
1722
+  (0.1ms) rollback transaction
1723
+  (0.1ms) begin transaction
1724
+ ---------------------------------------------------------
1725
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1726
+ ---------------------------------------------------------
1727
+  (0.1ms) rollback transaction
1728
+  (0.1ms) begin transaction
1729
+ ------------------------
1730
+ ErrorsTest: test_as_json
1731
+ ------------------------
1732
+  (0.1ms) rollback transaction
1733
+  (0.1ms) begin transaction
1734
+ ---------------------------
1735
+ ErrorsTest: test_error_type
1736
+ ---------------------------
1737
+  (0.1ms) rollback transaction
1738
+  (0.1ms) begin transaction
1739
+ ------------------------
1740
+ ErrorsTest: test_as_json
1741
+ ------------------------
1742
+  (0.1ms) rollback transaction
1743
+  (0.1ms) begin transaction
1744
+ ---------------------------
1745
+ ErrorsTest: test_error_type
1746
+ ---------------------------
1747
+  (0.1ms) rollback transaction
1748
+  (0.0ms) begin transaction
1749
+ ---------------------------------------------------------
1750
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1751
+ ---------------------------------------------------------
1752
+  (0.2ms) rollback transaction
1753
+  (0.1ms) begin transaction
1754
+ ------------------------
1755
+ ErrorsTest: test_as_json
1756
+ ------------------------
1757
+  (0.1ms) rollback transaction
1758
+  (0.0ms) begin transaction
1759
+ ---------------------------
1760
+ ErrorsTest: test_error_type
1761
+ ---------------------------
1762
+  (0.1ms) rollback transaction
1763
+  (0.1ms) begin transaction
1764
+ ---------------------------------------------------------
1765
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1766
+ ---------------------------------------------------------
1767
+  (0.1ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ ---------------------------------------------------------
1770
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1771
+ ---------------------------------------------------------
1772
+  (0.1ms) rollback transaction
1773
+  (0.0ms) begin transaction
1774
+ ------------------------
1775
+ ErrorsTest: test_as_json
1776
+ ------------------------
1777
+  (0.1ms) rollback transaction
1778
+  (0.1ms) begin transaction
1779
+ ---------------------------
1780
+ ErrorsTest: test_error_type
1781
+ ---------------------------
1782
+  (0.1ms) rollback transaction
1783
+  (0.1ms) begin transaction
1784
+ ---------------------------------------------------------
1785
+ Code42ApiTest: test_time_as_json_returns_a_iso8601_string
1786
+ ---------------------------------------------------------
1787
+  (0.0ms) rollback transaction
1788
+  (0.0ms) begin transaction
1789
+ ------------------------
1790
+ ErrorsTest: test_as_json
1791
+ ------------------------
1792
+  (0.1ms) rollback transaction
1793
+  (0.0ms) begin transaction
1794
+ ---------------------------
1795
+ ErrorsTest: test_error_type
1796
+ ---------------------------
1797
+  (0.0ms) rollback transaction
1798
+  (0.1ms) begin transaction
1799
+  (0.1ms) commit transaction
1800
+  (0.1ms) begin transaction
1801
+  (0.0ms) SAVEPOINT active_record_1
1802
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1804
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1805
+ Processing by AuthorsController#update as JSON
1806
+ Parameters: {"author"=>{"last_name"=>"Colbert"}, "id"=>"3"}
1807
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1808
+  (0.0ms) SAVEPOINT active_record_1
1809
+ SQL (0.0ms) UPDATE "authors" SET "last_name" = ? WHERE "authors"."id" = 3 [["last_name", "Colbert"]]
1810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1811
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1812
+  (1.8ms) rollback transaction
1813
+  (0.1ms) begin transaction
1814
+  (0.0ms) commit transaction
1815
+  (0.0ms) begin transaction
1816
+  (0.0ms) SAVEPOINT active_record_1
1817
+ SQL (0.0ms) INSERT INTO "authors" ("created_at", "first_name", "id", "last_name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-01-01 06:00:00.000000"], ["first_name", "Stephen"], ["id", 3], ["last_name", "King"], ["updated_at", "2014-01-01 06:00:00.000000"]]
1818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1819
+ Started PUT "/authors/3" for 127.0.0.1 at 2014-01-01 06:00:00 UTC
1820
+ Processing by AuthorsController#update as JSON
1821
+ Parameters: {"author"=>{"last_name"=>nil}, "id"=>"3"}
1822
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT 1 [["id", 3]]
1823
+  (0.0ms) SAVEPOINT active_record_1
1824
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1825
+ Completed 422 Unprocessable Entity in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
1826
+  (0.5ms) rollback transaction