remote_partial 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7100,3 +7100,2817 @@ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTP
7100
7100
   (0.5ms) rollback transaction
7101
7101
   (0.1ms) begin transaction
7102
7102
   (0.0ms) rollback transaction
7103
+ Connecting to database specified by database.yml
7104
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' LIMIT 1
7105
+  (0.1ms) begin transaction
7106
+ SQL (24.3ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:32 UTC +00:00], ["criteria", "#ct"], ["name", "clock"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:32 UTC +00:00], ["url", "http://www.timeanddate.com/worldclock/city.html?n=136"]]
7107
+  (227.1ms) commit transaction
7108
+ RemotePartial::Partial Load (1.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' LIMIT 1
7109
+  (0.1ms) begin transaction
7110
+ SQL (2.3ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:33 UTC +00:00], ["criteria", "#intro"], ["name", "ruby"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:33 UTC +00:00], ["url", "http://www.ruby-lang.org/en/"]]
7111
+  (143.9ms) commit transaction
7112
+  (0.2ms) begin transaction
7113
+ Fixture Delete (1.6ms) DELETE FROM "remote_partial_partials"
7114
+ Fixture Insert (0.7ms) INSERT INTO "remote_partial_partials" ("id", "name", "url", "criteria", "repeat_period", "created_at", "updated_at") VALUES (1, 'simple', 'http://www.warwickshire.gov.uk', 'p:first-child', 600, '2013-07-05 15:05:35', '2013-07-05 15:05:35')
7115
+  (159.3ms) commit transaction
7116
+  (0.1ms) begin transaction
7117
+ Processing by DemosController#index as HTML
7118
+ Rendered demos/index.html.erb within layouts/application (3.8ms)
7119
+ Completed 200 OK in 44ms (Views: 43.5ms | ActiveRecord: 0.0ms)
7120
+  (0.1ms) rollback transaction
7121
+  (0.1ms) begin transaction
7122
+ Processing by DemosController#show as HTML
7123
+ Parameters: {"id"=>"fixed"}
7124
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
7125
+ Rendered demos/_fixed.html.erb (2.1ms)
7126
+ Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
7127
+  (0.1ms) rollback transaction
7128
+  (0.1ms) begin transaction
7129
+  (0.1ms) rollback transaction
7130
+  (0.1ms) begin transaction
7131
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7132
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7133
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
7134
+  (0.0ms) SAVEPOINT active_record_1
7135
+ SQL (1.7ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7137
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7138
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7139
+  (0.5ms) rollback transaction
7140
+  (0.1ms) begin transaction
7141
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7142
+  (0.1ms) SAVEPOINT active_record_1
7143
+  (1.1ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.756800', "updated_at" = '2013-07-05 15:05:35.758031' WHERE "remote_partial_partials"."id" = 1
7144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7145
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
7146
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
7147
+  (0.0ms) SAVEPOINT active_record_1
7148
+  (1.8ms) UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 15:05:35.766291' WHERE "remote_partial_partials"."id" = 1
7149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7150
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7151
+  (0.7ms) rollback transaction
7152
+  (0.0ms) begin transaction
7153
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7154
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7155
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
7156
+  (0.0ms) SAVEPOINT active_record_1
7157
+  (1.2ms) UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 15:05:35.778491' WHERE "remote_partial_partials"."id" = 1
7158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7159
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
7160
+  (0.5ms) rollback transaction
7161
+  (0.0ms) begin transaction
7162
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7163
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7164
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
7165
+  (0.1ms) SAVEPOINT active_record_1
7166
+  (1.3ms) UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 15:05:35.795822' WHERE "remote_partial_partials"."id" = 1
7167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7168
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
7169
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7170
+  (0.5ms) rollback transaction
7171
+  (0.1ms) begin transaction
7172
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7173
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7174
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
7175
+  (0.0ms) SAVEPOINT active_record_1
7176
+ SQL (2.9ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7178
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7179
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7180
+  (3.2ms) rollback transaction
7181
+  (0.1ms) begin transaction
7182
+ RemotePartial::Partial Load (1.0ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7183
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7184
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
7185
+  (0.1ms) SAVEPOINT active_record_1
7186
+ SQL (1.4ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["criteria", nil], ["name", "foo"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:35 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7187
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7188
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7189
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7190
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7191
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
7192
+  (0.0ms) SAVEPOINT active_record_1
7193
+  (0.2ms) UPDATE "remote_partial_partials" SET "url" = 'other', "updated_at" = '2013-07-05 15:05:35.837899' WHERE "remote_partial_partials"."id" = 231
7194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7195
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7196
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7197
+  (0.5ms) rollback transaction
7198
+  (0.1ms) begin transaction
7199
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7200
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7201
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
7202
+  (0.1ms) SAVEPOINT active_record_1
7203
+  (1.0ms) UPDATE "remote_partial_partials" SET "criteria" = NULL, "repeat_period" = 43200.0, "updated_at" = '2013-07-05 15:05:35.857235' WHERE "remote_partial_partials"."id" = 1
7204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7205
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
7206
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7207
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7208
+  (1.0ms) rollback transaction
7209
+  (0.1ms) begin transaction
7210
+  (0.1ms) rollback transaction
7211
+  (0.1ms) begin transaction
7212
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7213
+  (0.1ms) rollback transaction
7214
+  (0.0ms) begin transaction
7215
+ RemotePartial::Partial Load (0.8ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7216
+  (0.1ms) SAVEPOINT active_record_1
7217
+  (1.5ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.882806', "updated_at" = '2013-07-05 15:05:35.884543' WHERE "remote_partial_partials"."id" = 1
7218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7219
+  (0.4ms) rollback transaction
7220
+  (0.0ms) begin transaction
7221
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7222
+  (0.1ms) SAVEPOINT active_record_1
7223
+  (0.9ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.892172', "updated_at" = '2013-07-05 15:05:35.893031' WHERE "remote_partial_partials"."id" = 1
7224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7225
+  (1.3ms) rollback transaction
7226
+  (0.1ms) begin transaction
7227
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7228
+  (0.1ms) rollback transaction
7229
+  (0.0ms) begin transaction
7230
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7231
+  (0.2ms) SAVEPOINT active_record_1
7232
+  (1.0ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.912592', "updated_at" = '2013-07-05 15:05:35.914119' WHERE "remote_partial_partials"."id" = 1
7233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7234
+  (0.4ms) rollback transaction
7235
+  (0.0ms) begin transaction
7236
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7237
+  (0.1ms) SAVEPOINT active_record_1
7238
+  (0.9ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.924671', "updated_at" = '2013-07-05 15:05:35.925405' WHERE "remote_partial_partials"."id" = 1
7239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7240
+  (0.8ms) rollback transaction
7241
+  (0.1ms) begin transaction
7242
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7243
+  (0.1ms) rollback transaction
7244
+  (0.0ms) begin transaction
7245
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7246
+  (1.2ms) SAVEPOINT active_record_1
7247
+  (1.0ms) UPDATE "remote_partial_partials" SET "stale_at" = '2013-07-05 15:15:35.944253', "updated_at" = '2013-07-05 15:05:35.946961' WHERE "remote_partial_partials"."id" = 1
7248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7249
+  (0.4ms) rollback transaction
7250
+  (0.1ms) begin transaction
7251
+  (0.4ms) rollback transaction
7252
+  (0.0ms) begin transaction
7253
+  (0.1ms) rollback transaction
7254
+  (0.1ms) begin transaction
7255
+  (0.1ms) rollback transaction
7256
+  (0.0ms) begin transaction
7257
+  (0.1ms) rollback transaction
7258
+  (0.1ms) begin transaction
7259
+  (0.1ms) rollback transaction
7260
+  (0.3ms) begin transaction
7261
+  (0.1ms) rollback transaction
7262
+  (0.1ms) begin transaction
7263
+  (0.1ms) rollback transaction
7264
+  (0.1ms) begin transaction
7265
+  (0.1ms) rollback transaction
7266
+  (0.1ms) begin transaction
7267
+  (0.1ms) rollback transaction
7268
+  (0.1ms) begin transaction
7269
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7270
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' LIMIT 1
7271
+  (0.0ms) SAVEPOINT active_record_1
7272
+ SQL (2.0ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 05 Jul 2013 15:05:36 UTC +00:00], ["criteria", nil], ["name", "wcc"], ["repeat_period", 43200.0], ["stale_at", nil], ["updated_at", Fri, 05 Jul 2013 15:05:36 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7274
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials" 
7275
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7276
+  (0.5ms) rollback transaction
7277
+  (0.0ms) begin transaction
7278
+  (0.0ms) rollback transaction
7279
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7280
+  (0.2ms) begin transaction
7281
+ SQL (37.2ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:14:07 UTC +00:00], ["criteria", "#ct"], ["name", "clock"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:14:07 UTC +00:00], ["url", "http://www.timeanddate.com/worldclock/city.html?n=136"]]
7282
+  (197.9ms) commit transaction
7283
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7284
+
7285
+ You can stub this request with the following snippet:
7286
+
7287
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
7288
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7289
+ to_return(:status => 200, :body => "", :headers => {})
7290
+
7291
+ ============================================================>
7292
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7293
+  (0.1ms) begin transaction
7294
+ SQL (3.6ms) INSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:14:07 UTC +00:00], ["criteria", "#intro"], ["name", "ruby"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:14:07 UTC +00:00], ["url", "http://www.ruby-lang.org/en/"]]
7295
+  (139.8ms) commit transaction
7296
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7297
+
7298
+ You can stub this request with the following snippet:
7299
+
7300
+ stub_request(:get, "http://www.ruby-lang.org/en/").
7301
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7302
+ to_return(:status => 200, :body => "", :headers => {})
7303
+
7304
+ ============================================================>
7305
+  (0.3ms) begin transaction
7306
+ -------------------------------
7307
+ DemosControllerTest: test_index
7308
+ -------------------------------
7309
+ Processing by DemosController#index as HTML
7310
+ Rendered demos/index.html.erb within layouts/application (1.1ms)
7311
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
7312
+  (0.1ms) rollback transaction
7313
+  (0.1ms) begin transaction
7314
+ ------------------------------------
7315
+ DemosControllerTest: test_show_fixed
7316
+ ------------------------------------
7317
+ Processing by DemosController#show as HTML
7318
+ Parameters: {"id"=>"fixed"}
7319
+ Rendered remote_partials/_fixed.html.erb (2.5ms)
7320
+ Rendered demos/_fixed.html.erb (4.2ms)
7321
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
7322
+  (0.1ms) rollback transaction
7323
+  (0.1ms) begin transaction
7324
+ -----------------------------------------------------------
7325
+ DemosHelperTest: test_render_remote_partial_with_no_partial
7326
+ -----------------------------------------------------------
7327
+  (0.1ms) rollback transaction
7328
+  (0.1ms) begin transaction
7329
+ --------------------------------------
7330
+ RemotePartial::BuilderTest: test_build
7331
+ --------------------------------------
7332
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7333
+  (0.1ms) rollback transaction
7334
+  (0.1ms) begin transaction
7335
+ ------------------------------------------------------------
7336
+ RemotePartial::BuilderTest: test_build_with_existing_partial
7337
+ ------------------------------------------------------------
7338
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7339
+  (0.1ms) rollback transaction
7340
+  (0.1ms) begin transaction
7341
+ ------------------------------------------------------------------
7342
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
7343
+ ------------------------------------------------------------------
7344
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7345
+  (0.2ms) rollback transaction
7346
+  (0.1ms) begin transaction
7347
+ ------------------------------------------------------
7348
+ RemotePartial::BuilderTest: test_build_with_http_error
7349
+ ------------------------------------------------------
7350
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7351
+  (2.6ms) rollback transaction
7352
+  (0.1ms) begin transaction
7353
+ ---------------------------------------------------------
7354
+ RemotePartial::BuilderTest: test_create_or_update_partial
7355
+ ---------------------------------------------------------
7356
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7357
+  (0.2ms) rollback transaction
7358
+  (0.1ms) begin transaction
7359
+ -----------------------------------------------------------------------------------
7360
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
7361
+ -----------------------------------------------------------------------------------
7362
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7363
+  (0.1ms) rollback transaction
7364
+  (0.1ms) begin transaction
7365
+ ----------------------------------------------------------------------------
7366
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
7367
+ ----------------------------------------------------------------------------
7368
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7369
+  (0.1ms) rollback transaction
7370
+  (0.1ms) begin transaction
7371
+ ----------------------------------------------------------------
7372
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
7373
+ ----------------------------------------------------------------
7374
+  (0.1ms) rollback transaction
7375
+  (0.1ms) begin transaction
7376
+ -------------------------------------------------
7377
+ RemotePartial::PartialTest: test_output_file_name
7378
+ -------------------------------------------------
7379
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7380
+  (0.1ms) rollback transaction
7381
+  (0.2ms) begin transaction
7382
+ ------------------------------------------------------------------
7383
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
7384
+ ------------------------------------------------------------------
7385
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7386
+  (0.1ms) rollback transaction
7387
+  (0.1ms) begin transaction
7388
+ --------------------------------------------------------
7389
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
7390
+ --------------------------------------------------------
7391
+ RemotePartial::Partial Load (1.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7392
+  (0.2ms) rollback transaction
7393
+  (0.2ms) begin transaction
7394
+ --------------------------------------------
7395
+ RemotePartial::PartialTest: test_update_file
7396
+ --------------------------------------------
7397
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7398
+  (0.1ms) rollback transaction
7399
+  (0.1ms) begin transaction
7400
+ ------------------------------------------------------------------------
7401
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
7402
+ ------------------------------------------------------------------------
7403
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7404
+  (0.2ms) rollback transaction
7405
+  (0.1ms) begin transaction
7406
+ ------------------------------------------------
7407
+ RemotePartial::PartialTest: test_update_stale_at
7408
+ ------------------------------------------------
7409
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7410
+  (0.3ms) rollback transaction
7411
+  (0.1ms) begin transaction
7412
+ --------------------------------------------------
7413
+ RemotePartial::PartialTest: test_update_stale_file
7414
+ --------------------------------------------------
7415
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7416
+  (0.4ms) rollback transaction
7417
+  (0.1ms) begin transaction
7418
+ -----------------------------------------------------------------
7419
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
7420
+ -----------------------------------------------------------------
7421
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7422
+  (0.3ms) rollback transaction
7423
+  (0.1ms) begin transaction
7424
+ -----------------------------------------------------------
7425
+ RemotePartial::ResourceManagerTest: test_connection_failure
7426
+ -----------------------------------------------------------
7427
+  (0.1ms) rollback transaction
7428
+  (0.1ms) begin transaction
7429
+ ------------------------------------------------------------------------------
7430
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
7431
+ ------------------------------------------------------------------------------
7432
+  (0.1ms) rollback transaction
7433
+  (0.1ms) begin transaction
7434
+ -------------------------------------------------
7435
+ RemotePartial::ResourceManagerTest: test_get_page
7436
+ -------------------------------------------------
7437
+  (0.1ms) rollback transaction
7438
+  (0.1ms) begin transaction
7439
+ ------------------------------------------------
7440
+ RemotePartial::ResourceManagerTest: test_get_raw
7441
+ ------------------------------------------------
7442
+  (0.1ms) rollback transaction
7443
+  (0.1ms) begin transaction
7444
+ ---------------------------------------------
7445
+ RemotePartial::ResourceManagerTest: test_html
7446
+ ---------------------------------------------
7447
+  (0.1ms) rollback transaction
7448
+  (0.1ms) begin transaction
7449
+ --------------------------------------------------------
7450
+ RemotePartial::ResourceManagerTest: test_html_with_limit
7451
+ --------------------------------------------------------
7452
+  (0.1ms) rollback transaction
7453
+  (0.1ms) begin transaction
7454
+ --------------------------------------------------------------------------------------
7455
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
7456
+ --------------------------------------------------------------------------------------
7457
+  (0.1ms) rollback transaction
7458
+  (0.1ms) begin transaction
7459
+ --------------------------------------------------
7460
+ RemotePartial::ResourceManagerTest: test_output_to
7461
+ --------------------------------------------------
7462
+  (0.1ms) rollback transaction
7463
+  (0.1ms) begin transaction
7464
+ ---------------------------------------------
7465
+ RemotePartial::ResourceManagerTest: test_stub
7466
+ ---------------------------------------------
7467
+  (0.1ms) rollback transaction
7468
+  (0.2ms) begin transaction
7469
+ ------------------------------
7470
+ RemotePartialTest: test_define
7471
+ ------------------------------
7472
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7473
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7474
+  (0.1ms) SAVEPOINT active_record_1
7475
+ SQL (2.0ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:14:09 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:14:09 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7477
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
7478
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7479
+  (0.5ms) rollback transaction
7480
+  (0.1ms) begin transaction
7481
+ -----------------------------
7482
+ RemotePartialTest: test_truth
7483
+ -----------------------------
7484
+  (0.1ms) rollback transaction
7485
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7486
+  (0.1ms) begin transaction
7487
+  (0.1ms) commit transaction
7488
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7489
+
7490
+ You can stub this request with the following snippet:
7491
+
7492
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
7493
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7494
+ to_return(:status => 200, :body => "", :headers => {})
7495
+
7496
+ ============================================================>
7497
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7498
+  (0.1ms) begin transaction
7499
+  (0.1ms) commit transaction
7500
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7501
+
7502
+ You can stub this request with the following snippet:
7503
+
7504
+ stub_request(:get, "http://www.ruby-lang.org/en/").
7505
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7506
+ to_return(:status => 200, :body => "", :headers => {})
7507
+
7508
+ ============================================================>
7509
+  (0.3ms) begin transaction
7510
+ -------------------------------
7511
+ DemosControllerTest: test_index
7512
+ -------------------------------
7513
+ Processing by DemosController#index as HTML
7514
+ Rendered demos/index.html.erb within layouts/application (5.9ms)
7515
+ Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)
7516
+  (0.1ms) rollback transaction
7517
+  (0.1ms) begin transaction
7518
+ ------------------------------------
7519
+ DemosControllerTest: test_show_fixed
7520
+ ------------------------------------
7521
+ Processing by DemosController#show as HTML
7522
+ Parameters: {"id"=>"fixed"}
7523
+ Rendered remote_partials/_fixed.html.erb (0.5ms)
7524
+ Rendered demos/_fixed.html.erb (1.7ms)
7525
+ Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
7526
+  (0.1ms) rollback transaction
7527
+  (0.1ms) begin transaction
7528
+ -----------------------------------------------------------
7529
+ DemosHelperTest: test_render_remote_partial_with_no_partial
7530
+ -----------------------------------------------------------
7531
+  (0.2ms) rollback transaction
7532
+  (0.1ms) begin transaction
7533
+ --------------------------------------
7534
+ RemotePartial::BuilderTest: test_build
7535
+ --------------------------------------
7536
+ RemotePartial::Partial Load (12.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7537
+  (0.1ms) rollback transaction
7538
+  (0.2ms) begin transaction
7539
+ ------------------------------------------------------------
7540
+ RemotePartial::BuilderTest: test_build_with_existing_partial
7541
+ ------------------------------------------------------------
7542
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7543
+  (0.1ms) rollback transaction
7544
+  (0.1ms) begin transaction
7545
+ ------------------------------------------------------------------
7546
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
7547
+ ------------------------------------------------------------------
7548
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7549
+  (0.2ms) rollback transaction
7550
+  (0.1ms) begin transaction
7551
+ ------------------------------------------------------
7552
+ RemotePartial::BuilderTest: test_build_with_http_error
7553
+ ------------------------------------------------------
7554
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7555
+  (0.1ms) rollback transaction
7556
+  (0.1ms) begin transaction
7557
+ ---------------------------------------------------------
7558
+ RemotePartial::BuilderTest: test_create_or_update_partial
7559
+ ---------------------------------------------------------
7560
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7561
+  (0.2ms) rollback transaction
7562
+  (0.1ms) begin transaction
7563
+ -----------------------------------------------------------------------------------
7564
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
7565
+ -----------------------------------------------------------------------------------
7566
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7567
+  (0.2ms) rollback transaction
7568
+  (0.1ms) begin transaction
7569
+ ----------------------------------------------------------------------------
7570
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
7571
+ ----------------------------------------------------------------------------
7572
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7573
+  (0.1ms) rollback transaction
7574
+  (0.1ms) begin transaction
7575
+ ----------------------------------------------------------------
7576
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
7577
+ ----------------------------------------------------------------
7578
+  (0.1ms) rollback transaction
7579
+  (0.1ms) begin transaction
7580
+ -------------------------------------------------
7581
+ RemotePartial::PartialTest: test_output_file_name
7582
+ -------------------------------------------------
7583
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7584
+  (0.2ms) rollback transaction
7585
+  (0.1ms) begin transaction
7586
+ ------------------------------------------------------------------
7587
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
7588
+ ------------------------------------------------------------------
7589
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7590
+  (0.1ms) rollback transaction
7591
+  (0.1ms) begin transaction
7592
+ --------------------------------------------------------
7593
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
7594
+ --------------------------------------------------------
7595
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7596
+  (0.1ms) rollback transaction
7597
+  (0.1ms) begin transaction
7598
+ --------------------------------------------
7599
+ RemotePartial::PartialTest: test_update_file
7600
+ --------------------------------------------
7601
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7602
+  (0.1ms) rollback transaction
7603
+  (0.1ms) begin transaction
7604
+ ------------------------------------------------------------------------
7605
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
7606
+ ------------------------------------------------------------------------
7607
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7608
+  (0.1ms) rollback transaction
7609
+  (0.1ms) begin transaction
7610
+ ------------------------------------------------
7611
+ RemotePartial::PartialTest: test_update_stale_at
7612
+ ------------------------------------------------
7613
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7614
+  (0.5ms) rollback transaction
7615
+  (0.1ms) begin transaction
7616
+ --------------------------------------------------
7617
+ RemotePartial::PartialTest: test_update_stale_file
7618
+ --------------------------------------------------
7619
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7620
+  (0.1ms) rollback transaction
7621
+  (0.1ms) begin transaction
7622
+ -----------------------------------------------------------------
7623
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
7624
+ -----------------------------------------------------------------
7625
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7626
+  (0.2ms) rollback transaction
7627
+  (0.2ms) begin transaction
7628
+ -----------------------------------------------------------
7629
+ RemotePartial::ResourceManagerTest: test_connection_failure
7630
+ -----------------------------------------------------------
7631
+  (0.1ms) rollback transaction
7632
+  (0.1ms) begin transaction
7633
+ ------------------------------------------------------------------------------
7634
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
7635
+ ------------------------------------------------------------------------------
7636
+  (0.1ms) rollback transaction
7637
+  (0.1ms) begin transaction
7638
+ -------------------------------------------------
7639
+ RemotePartial::ResourceManagerTest: test_get_page
7640
+ -------------------------------------------------
7641
+  (0.1ms) rollback transaction
7642
+  (0.1ms) begin transaction
7643
+ ------------------------------------------------
7644
+ RemotePartial::ResourceManagerTest: test_get_raw
7645
+ ------------------------------------------------
7646
+  (0.1ms) rollback transaction
7647
+  (0.1ms) begin transaction
7648
+ ---------------------------------------------
7649
+ RemotePartial::ResourceManagerTest: test_html
7650
+ ---------------------------------------------
7651
+  (0.1ms) rollback transaction
7652
+  (0.1ms) begin transaction
7653
+ --------------------------------------------------------
7654
+ RemotePartial::ResourceManagerTest: test_html_with_limit
7655
+ --------------------------------------------------------
7656
+  (0.1ms) rollback transaction
7657
+  (0.1ms) begin transaction
7658
+ --------------------------------------------------------------------------------------
7659
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
7660
+ --------------------------------------------------------------------------------------
7661
+  (0.1ms) rollback transaction
7662
+  (0.1ms) begin transaction
7663
+ --------------------------------------------------
7664
+ RemotePartial::ResourceManagerTest: test_output_to
7665
+ --------------------------------------------------
7666
+  (2.4ms) rollback transaction
7667
+  (0.1ms) begin transaction
7668
+ ---------------------------------------------
7669
+ RemotePartial::ResourceManagerTest: test_stub
7670
+ ---------------------------------------------
7671
+  (0.1ms) rollback transaction
7672
+  (0.1ms) begin transaction
7673
+ ------------------------------
7674
+ RemotePartialTest: test_define
7675
+ ------------------------------
7676
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
7677
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7678
+  (0.1ms) SAVEPOINT active_record_1
7679
+ SQL (6.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:15:24 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:15:24 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7681
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
7682
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7683
+  (0.4ms) rollback transaction
7684
+  (0.1ms) begin transaction
7685
+ -----------------------------
7686
+ RemotePartialTest: test_truth
7687
+ -----------------------------
7688
+  (0.1ms) rollback transaction
7689
+ RemotePartial::Partial Load (0.5ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7690
+  (0.1ms) begin transaction
7691
+  (0.1ms) commit transaction
7692
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7693
+  (0.1ms) begin transaction
7694
+  (0.1ms) commit transaction
7695
+  (0.3ms) begin transaction
7696
+ -------------------------------
7697
+ DemosControllerTest: test_index
7698
+ -------------------------------
7699
+ Processing by DemosController#index as HTML
7700
+ Rendered demos/index.html.erb within layouts/application (1.0ms)
7701
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
7702
+  (0.1ms) rollback transaction
7703
+  (0.1ms) begin transaction
7704
+ ------------------------------------
7705
+ DemosControllerTest: test_show_fixed
7706
+ ------------------------------------
7707
+ Processing by DemosController#show as HTML
7708
+ Parameters: {"id"=>"fixed"}
7709
+ Rendered remote_partials/_fixed.html.erb (6.5ms)
7710
+ Rendered demos/_fixed.html.erb (8.6ms)
7711
+ Completed 200 OK in 18ms (Views: 17.6ms | ActiveRecord: 0.0ms)
7712
+  (0.1ms) rollback transaction
7713
+  (0.1ms) begin transaction
7714
+ -----------------------------------------------------------
7715
+ DemosHelperTest: test_render_remote_partial_with_no_partial
7716
+ -----------------------------------------------------------
7717
+  (0.1ms) rollback transaction
7718
+  (0.1ms) begin transaction
7719
+ --------------------------------------
7720
+ RemotePartial::BuilderTest: test_build
7721
+ --------------------------------------
7722
+ RemotePartial::Partial Load (3.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7723
+  (0.1ms) rollback transaction
7724
+  (0.2ms) begin transaction
7725
+ ------------------------------------------------------------
7726
+ RemotePartial::BuilderTest: test_build_with_existing_partial
7727
+ ------------------------------------------------------------
7728
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7729
+  (0.1ms) rollback transaction
7730
+  (0.1ms) begin transaction
7731
+ ------------------------------------------------------------------
7732
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
7733
+ ------------------------------------------------------------------
7734
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7735
+  (0.1ms) rollback transaction
7736
+  (0.1ms) begin transaction
7737
+ ------------------------------------------------------
7738
+ RemotePartial::BuilderTest: test_build_with_http_error
7739
+ ------------------------------------------------------
7740
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7741
+  (0.2ms) rollback transaction
7742
+  (0.1ms) begin transaction
7743
+ ---------------------------------------------------------
7744
+ RemotePartial::BuilderTest: test_create_or_update_partial
7745
+ ---------------------------------------------------------
7746
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7747
+  (0.1ms) rollback transaction
7748
+  (0.1ms) begin transaction
7749
+ -----------------------------------------------------------------------------------
7750
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
7751
+ -----------------------------------------------------------------------------------
7752
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7753
+  (0.1ms) rollback transaction
7754
+  (0.1ms) begin transaction
7755
+ ----------------------------------------------------------------------------
7756
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
7757
+ ----------------------------------------------------------------------------
7758
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7759
+  (0.2ms) rollback transaction
7760
+  (0.2ms) begin transaction
7761
+ ----------------------------------------------------------------
7762
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
7763
+ ----------------------------------------------------------------
7764
+  (0.1ms) rollback transaction
7765
+  (0.1ms) begin transaction
7766
+ -------------------------------------------------
7767
+ RemotePartial::PartialTest: test_output_file_name
7768
+ -------------------------------------------------
7769
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7770
+  (0.1ms) rollback transaction
7771
+  (0.1ms) begin transaction
7772
+ ------------------------------------------------------------------
7773
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
7774
+ ------------------------------------------------------------------
7775
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7776
+  (0.4ms) rollback transaction
7777
+  (0.1ms) begin transaction
7778
+ --------------------------------------------------------
7779
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
7780
+ --------------------------------------------------------
7781
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7782
+  (0.1ms) rollback transaction
7783
+  (0.1ms) begin transaction
7784
+ --------------------------------------------
7785
+ RemotePartial::PartialTest: test_update_file
7786
+ --------------------------------------------
7787
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7788
+  (0.1ms) rollback transaction
7789
+  (0.1ms) begin transaction
7790
+ ------------------------------------------------------------------------
7791
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
7792
+ ------------------------------------------------------------------------
7793
+ RemotePartial::Partial Load (3.0ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7794
+  (0.1ms) rollback transaction
7795
+  (0.1ms) begin transaction
7796
+ ------------------------------------------------
7797
+ RemotePartial::PartialTest: test_update_stale_at
7798
+ ------------------------------------------------
7799
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7800
+  (0.1ms) rollback transaction
7801
+  (0.1ms) begin transaction
7802
+ --------------------------------------------------
7803
+ RemotePartial::PartialTest: test_update_stale_file
7804
+ --------------------------------------------------
7805
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7806
+  (0.1ms) rollback transaction
7807
+  (0.1ms) begin transaction
7808
+ -----------------------------------------------------------------
7809
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
7810
+ -----------------------------------------------------------------
7811
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7812
+  (0.1ms) rollback transaction
7813
+  (0.1ms) begin transaction
7814
+ -----------------------------------------------------------
7815
+ RemotePartial::ResourceManagerTest: test_connection_failure
7816
+ -----------------------------------------------------------
7817
+  (0.1ms) rollback transaction
7818
+  (0.1ms) begin transaction
7819
+ ------------------------------------------------------------------------------
7820
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
7821
+ ------------------------------------------------------------------------------
7822
+  (0.1ms) rollback transaction
7823
+  (0.1ms) begin transaction
7824
+ -------------------------------------------------
7825
+ RemotePartial::ResourceManagerTest: test_get_page
7826
+ -------------------------------------------------
7827
+  (0.1ms) rollback transaction
7828
+  (0.1ms) begin transaction
7829
+ ------------------------------------------------
7830
+ RemotePartial::ResourceManagerTest: test_get_raw
7831
+ ------------------------------------------------
7832
+  (0.1ms) rollback transaction
7833
+  (0.1ms) begin transaction
7834
+ ---------------------------------------------
7835
+ RemotePartial::ResourceManagerTest: test_html
7836
+ ---------------------------------------------
7837
+  (0.1ms) rollback transaction
7838
+  (0.1ms) begin transaction
7839
+ --------------------------------------------------------
7840
+ RemotePartial::ResourceManagerTest: test_html_with_limit
7841
+ --------------------------------------------------------
7842
+  (0.1ms) rollback transaction
7843
+  (0.1ms) begin transaction
7844
+ --------------------------------------------------------------------------------------
7845
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
7846
+ --------------------------------------------------------------------------------------
7847
+  (0.1ms) rollback transaction
7848
+  (0.1ms) begin transaction
7849
+ --------------------------------------------------
7850
+ RemotePartial::ResourceManagerTest: test_output_to
7851
+ --------------------------------------------------
7852
+  (0.8ms) rollback transaction
7853
+  (0.1ms) begin transaction
7854
+ ---------------------------------------------
7855
+ RemotePartial::ResourceManagerTest: test_stub
7856
+ ---------------------------------------------
7857
+  (0.2ms) rollback transaction
7858
+  (0.1ms) begin transaction
7859
+ ------------------------------
7860
+ RemotePartialTest: test_define
7861
+ ------------------------------
7862
+  (0.5ms) SELECT COUNT(*) FROM "remote_partial_partials"
7863
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7864
+  (0.1ms) SAVEPOINT active_record_1
7865
+ SQL (10.3ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:15:52 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:15:52 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
7866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7867
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
7868
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
7869
+  (0.6ms) rollback transaction
7870
+  (0.1ms) begin transaction
7871
+ -----------------------------
7872
+ RemotePartialTest: test_truth
7873
+ -----------------------------
7874
+  (0.1ms) rollback transaction
7875
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7876
+  (0.1ms) begin transaction
7877
+  (0.1ms) commit transaction
7878
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7879
+
7880
+ You can stub this request with the following snippet:
7881
+
7882
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
7883
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7884
+ to_return(:status => 200, :body => "", :headers => {})
7885
+
7886
+ ============================================================>
7887
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
7888
+  (0.1ms) begin transaction
7889
+  (0.1ms) commit transaction
7890
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
7891
+
7892
+ You can stub this request with the following snippet:
7893
+
7894
+ stub_request(:get, "http://www.ruby-lang.org/en/").
7895
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
7896
+ to_return(:status => 200, :body => "", :headers => {})
7897
+
7898
+ ============================================================>
7899
+  (0.3ms) begin transaction
7900
+ -------------------------------
7901
+ DemosControllerTest: test_index
7902
+ -------------------------------
7903
+ Processing by DemosController#index as HTML
7904
+ Rendered demos/index.html.erb within layouts/application (1.2ms)
7905
+ Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.0ms)
7906
+  (0.1ms) rollback transaction
7907
+  (0.1ms) begin transaction
7908
+ ------------------------------------
7909
+ DemosControllerTest: test_show_fixed
7910
+ ------------------------------------
7911
+ Processing by DemosController#show as HTML
7912
+ Parameters: {"id"=>"fixed"}
7913
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
7914
+ Rendered demos/_fixed.html.erb (1.9ms)
7915
+ Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
7916
+  (0.1ms) rollback transaction
7917
+  (0.1ms) begin transaction
7918
+ -----------------------------------------------------------
7919
+ DemosHelperTest: test_render_remote_partial_with_no_partial
7920
+ -----------------------------------------------------------
7921
+  (0.1ms) rollback transaction
7922
+  (0.1ms) begin transaction
7923
+ --------------------------------------
7924
+ RemotePartial::BuilderTest: test_build
7925
+ --------------------------------------
7926
+ RemotePartial::Partial Load (6.5ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7927
+  (0.1ms) rollback transaction
7928
+  (0.1ms) begin transaction
7929
+ ------------------------------------------------------------
7930
+ RemotePartial::BuilderTest: test_build_with_existing_partial
7931
+ ------------------------------------------------------------
7932
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7933
+  (0.1ms) rollback transaction
7934
+  (0.1ms) begin transaction
7935
+ ------------------------------------------------------------------
7936
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
7937
+ ------------------------------------------------------------------
7938
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7939
+  (0.2ms) rollback transaction
7940
+  (0.1ms) begin transaction
7941
+ ------------------------------------------------------
7942
+ RemotePartial::BuilderTest: test_build_with_http_error
7943
+ ------------------------------------------------------
7944
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7945
+  (0.3ms) rollback transaction
7946
+  (0.2ms) begin transaction
7947
+ ---------------------------------------------------------
7948
+ RemotePartial::BuilderTest: test_create_or_update_partial
7949
+ ---------------------------------------------------------
7950
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7951
+  (0.1ms) rollback transaction
7952
+  (0.1ms) begin transaction
7953
+ -----------------------------------------------------------------------------------
7954
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
7955
+ -----------------------------------------------------------------------------------
7956
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7957
+  (0.1ms) rollback transaction
7958
+  (0.2ms) begin transaction
7959
+ ----------------------------------------------------------------------------
7960
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
7961
+ ----------------------------------------------------------------------------
7962
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7963
+  (0.1ms) rollback transaction
7964
+  (0.1ms) begin transaction
7965
+ ----------------------------------------------------------------
7966
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
7967
+ ----------------------------------------------------------------
7968
+  (0.2ms) rollback transaction
7969
+  (0.1ms) begin transaction
7970
+ -------------------------------------------------
7971
+ RemotePartial::PartialTest: test_output_file_name
7972
+ -------------------------------------------------
7973
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7974
+  (0.2ms) rollback transaction
7975
+  (0.1ms) begin transaction
7976
+ ------------------------------------------------------------------
7977
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
7978
+ ------------------------------------------------------------------
7979
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7980
+  (0.1ms) rollback transaction
7981
+  (0.1ms) begin transaction
7982
+ --------------------------------------------------------
7983
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
7984
+ --------------------------------------------------------
7985
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7986
+  (0.1ms) rollback transaction
7987
+  (0.2ms) begin transaction
7988
+ --------------------------------------------
7989
+ RemotePartial::PartialTest: test_update_file
7990
+ --------------------------------------------
7991
+ RemotePartial::Partial Load (4.0ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7992
+  (0.1ms) rollback transaction
7993
+  (0.1ms) begin transaction
7994
+ ------------------------------------------------------------------------
7995
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
7996
+ ------------------------------------------------------------------------
7997
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
7998
+  (4.6ms) rollback transaction
7999
+  (0.1ms) begin transaction
8000
+ ------------------------------------------------
8001
+ RemotePartial::PartialTest: test_update_stale_at
8002
+ ------------------------------------------------
8003
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8004
+  (0.2ms) rollback transaction
8005
+  (0.1ms) begin transaction
8006
+ --------------------------------------------------
8007
+ RemotePartial::PartialTest: test_update_stale_file
8008
+ --------------------------------------------------
8009
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8010
+  (0.1ms) rollback transaction
8011
+  (0.1ms) begin transaction
8012
+ -----------------------------------------------------------------
8013
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
8014
+ -----------------------------------------------------------------
8015
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8016
+  (0.3ms) rollback transaction
8017
+  (0.1ms) begin transaction
8018
+ -----------------------------------------------------------
8019
+ RemotePartial::ResourceManagerTest: test_connection_failure
8020
+ -----------------------------------------------------------
8021
+  (0.1ms) rollback transaction
8022
+  (0.1ms) begin transaction
8023
+ ------------------------------------------------------------------------------
8024
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
8025
+ ------------------------------------------------------------------------------
8026
+  (2.5ms) rollback transaction
8027
+  (0.2ms) begin transaction
8028
+ -------------------------------------------------
8029
+ RemotePartial::ResourceManagerTest: test_get_page
8030
+ -------------------------------------------------
8031
+  (0.1ms) rollback transaction
8032
+  (0.1ms) begin transaction
8033
+ ------------------------------------------------
8034
+ RemotePartial::ResourceManagerTest: test_get_raw
8035
+ ------------------------------------------------
8036
+  (0.1ms) rollback transaction
8037
+  (0.1ms) begin transaction
8038
+ ---------------------------------------------
8039
+ RemotePartial::ResourceManagerTest: test_html
8040
+ ---------------------------------------------
8041
+  (0.1ms) rollback transaction
8042
+  (0.1ms) begin transaction
8043
+ --------------------------------------------------------
8044
+ RemotePartial::ResourceManagerTest: test_html_with_limit
8045
+ --------------------------------------------------------
8046
+  (4.3ms) rollback transaction
8047
+  (0.1ms) begin transaction
8048
+ --------------------------------------------------------------------------------------
8049
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
8050
+ --------------------------------------------------------------------------------------
8051
+  (0.1ms) rollback transaction
8052
+  (0.1ms) begin transaction
8053
+ --------------------------------------------------
8054
+ RemotePartial::ResourceManagerTest: test_output_to
8055
+ --------------------------------------------------
8056
+  (0.1ms) rollback transaction
8057
+  (0.1ms) begin transaction
8058
+ ---------------------------------------------
8059
+ RemotePartial::ResourceManagerTest: test_stub
8060
+ ---------------------------------------------
8061
+  (1.4ms) rollback transaction
8062
+  (0.1ms) begin transaction
8063
+ ------------------------------
8064
+ RemotePartialTest: test_define
8065
+ ------------------------------
8066
+  (1.7ms) SELECT COUNT(*) FROM "remote_partial_partials"
8067
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8068
+  (0.2ms) SAVEPOINT active_record_1
8069
+ SQL (3.0ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:19:54 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:19:54 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8071
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8072
+
8073
+ You can stub this request with the following snippet:
8074
+
8075
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
8076
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8077
+ to_return(:status => 200, :body => "", :headers => {})
8078
+
8079
+ ============================================================>
8080
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8081
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8082
+  (0.3ms) rollback transaction
8083
+  (0.1ms) begin transaction
8084
+ -----------------------------
8085
+ RemotePartialTest: test_truth
8086
+ -----------------------------
8087
+  (0.1ms) rollback transaction
8088
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8089
+  (0.1ms) begin transaction
8090
+  (0.5ms) commit transaction
8091
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8092
+
8093
+ You can stub this request with the following snippet:
8094
+
8095
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
8096
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8097
+ to_return(:status => 200, :body => "", :headers => {})
8098
+
8099
+ ============================================================>
8100
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8101
+  (0.1ms) begin transaction
8102
+  (0.1ms) commit transaction
8103
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8104
+
8105
+ You can stub this request with the following snippet:
8106
+
8107
+ stub_request(:get, "http://www.ruby-lang.org/en/").
8108
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8109
+ to_return(:status => 200, :body => "", :headers => {})
8110
+
8111
+ ============================================================>
8112
+  (0.3ms) begin transaction
8113
+ -------------------------------
8114
+ DemosControllerTest: test_index
8115
+ -------------------------------
8116
+ Processing by DemosController#index as HTML
8117
+ Rendered demos/index.html.erb within layouts/application (12.5ms)
8118
+ Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)
8119
+  (0.1ms) rollback transaction
8120
+  (0.1ms) begin transaction
8121
+ ------------------------------------
8122
+ DemosControllerTest: test_show_fixed
8123
+ ------------------------------------
8124
+ Processing by DemosController#show as HTML
8125
+ Parameters: {"id"=>"fixed"}
8126
+ Rendered remote_partials/_fixed.html.erb (0.5ms)
8127
+ Rendered demos/_fixed.html.erb (2.1ms)
8128
+ Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms)
8129
+  (0.1ms) rollback transaction
8130
+  (3.0ms) begin transaction
8131
+ -----------------------------------------------------------
8132
+ DemosHelperTest: test_render_remote_partial_with_no_partial
8133
+ -----------------------------------------------------------
8134
+  (0.1ms) rollback transaction
8135
+  (0.1ms) begin transaction
8136
+ --------------------------------------
8137
+ RemotePartial::BuilderTest: test_build
8138
+ --------------------------------------
8139
+ RemotePartial::Partial Load (3.6ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8140
+  (1.6ms) rollback transaction
8141
+  (0.1ms) begin transaction
8142
+ ------------------------------------------------------------
8143
+ RemotePartial::BuilderTest: test_build_with_existing_partial
8144
+ ------------------------------------------------------------
8145
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8146
+  (0.1ms) rollback transaction
8147
+  (0.1ms) begin transaction
8148
+ ------------------------------------------------------------------
8149
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
8150
+ ------------------------------------------------------------------
8151
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8152
+  (0.2ms) rollback transaction
8153
+  (0.3ms) begin transaction
8154
+ ------------------------------------------------------
8155
+ RemotePartial::BuilderTest: test_build_with_http_error
8156
+ ------------------------------------------------------
8157
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8158
+  (0.1ms) rollback transaction
8159
+  (0.2ms) begin transaction
8160
+ ---------------------------------------------------------
8161
+ RemotePartial::BuilderTest: test_create_or_update_partial
8162
+ ---------------------------------------------------------
8163
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8164
+  (0.1ms) rollback transaction
8165
+  (0.1ms) begin transaction
8166
+ -----------------------------------------------------------------------------------
8167
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
8168
+ -----------------------------------------------------------------------------------
8169
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8170
+  (0.2ms) rollback transaction
8171
+  (0.1ms) begin transaction
8172
+ ----------------------------------------------------------------------------
8173
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
8174
+ ----------------------------------------------------------------------------
8175
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8176
+  (0.1ms) rollback transaction
8177
+  (0.1ms) begin transaction
8178
+ ----------------------------------------------------------------
8179
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
8180
+ ----------------------------------------------------------------
8181
+  (0.1ms) rollback transaction
8182
+  (0.1ms) begin transaction
8183
+ -------------------------------------------------
8184
+ RemotePartial::PartialTest: test_output_file_name
8185
+ -------------------------------------------------
8186
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8187
+  (10.9ms) rollback transaction
8188
+  (0.0ms) begin transaction
8189
+ ------------------------------------------------------------------
8190
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
8191
+ ------------------------------------------------------------------
8192
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8193
+  (0.1ms) rollback transaction
8194
+  (0.1ms) begin transaction
8195
+ --------------------------------------------------------
8196
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
8197
+ --------------------------------------------------------
8198
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8199
+  (0.1ms) rollback transaction
8200
+  (0.1ms) begin transaction
8201
+ --------------------------------------------
8202
+ RemotePartial::PartialTest: test_update_file
8203
+ --------------------------------------------
8204
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8205
+  (0.1ms) rollback transaction
8206
+  (0.1ms) begin transaction
8207
+ ------------------------------------------------------------------------
8208
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
8209
+ ------------------------------------------------------------------------
8210
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8211
+  (41.3ms) rollback transaction
8212
+  (0.2ms) begin transaction
8213
+ ------------------------------------------------
8214
+ RemotePartial::PartialTest: test_update_stale_at
8215
+ ------------------------------------------------
8216
+ RemotePartial::Partial Load (0.8ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8217
+  (0.1ms) rollback transaction
8218
+  (0.1ms) begin transaction
8219
+ --------------------------------------------------
8220
+ RemotePartial::PartialTest: test_update_stale_file
8221
+ --------------------------------------------------
8222
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8223
+  (0.1ms) rollback transaction
8224
+  (0.1ms) begin transaction
8225
+ -----------------------------------------------------------------
8226
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
8227
+ -----------------------------------------------------------------
8228
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8229
+  (0.1ms) rollback transaction
8230
+  (0.1ms) begin transaction
8231
+ -----------------------------------------------------------
8232
+ RemotePartial::ResourceManagerTest: test_connection_failure
8233
+ -----------------------------------------------------------
8234
+  (0.1ms) rollback transaction
8235
+  (0.1ms) begin transaction
8236
+ ------------------------------------------------------------------------------
8237
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
8238
+ ------------------------------------------------------------------------------
8239
+  (0.1ms) rollback transaction
8240
+  (0.1ms) begin transaction
8241
+ -------------------------------------------------
8242
+ RemotePartial::ResourceManagerTest: test_get_page
8243
+ -------------------------------------------------
8244
+  (0.2ms) rollback transaction
8245
+  (0.2ms) begin transaction
8246
+ ------------------------------------------------
8247
+ RemotePartial::ResourceManagerTest: test_get_raw
8248
+ ------------------------------------------------
8249
+  (0.1ms) rollback transaction
8250
+  (0.1ms) begin transaction
8251
+ ---------------------------------------------
8252
+ RemotePartial::ResourceManagerTest: test_html
8253
+ ---------------------------------------------
8254
+  (0.1ms) rollback transaction
8255
+  (0.1ms) begin transaction
8256
+ --------------------------------------------------------
8257
+ RemotePartial::ResourceManagerTest: test_html_with_limit
8258
+ --------------------------------------------------------
8259
+  (0.1ms) rollback transaction
8260
+  (0.1ms) begin transaction
8261
+ --------------------------------------------------------------------------------------
8262
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
8263
+ --------------------------------------------------------------------------------------
8264
+  (0.1ms) rollback transaction
8265
+  (0.1ms) begin transaction
8266
+ --------------------------------------------------
8267
+ RemotePartial::ResourceManagerTest: test_output_to
8268
+ --------------------------------------------------
8269
+  (0.1ms) rollback transaction
8270
+  (0.1ms) begin transaction
8271
+ ---------------------------------------------
8272
+ RemotePartial::ResourceManagerTest: test_stub
8273
+ ---------------------------------------------
8274
+  (0.2ms) rollback transaction
8275
+  (0.1ms) begin transaction
8276
+ ------------------------------
8277
+ RemotePartialTest: test_define
8278
+ ------------------------------
8279
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
8280
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8281
+  (0.1ms) SAVEPOINT active_record_1
8282
+ SQL (3.7ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:20:38 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:20:38 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8284
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8285
+
8286
+ You can stub this request with the following snippet:
8287
+
8288
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
8289
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8290
+ to_return(:status => 200, :body => "", :headers => {})
8291
+
8292
+ ============================================================>
8293
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8294
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8295
+  (32.2ms) rollback transaction
8296
+  (0.1ms) begin transaction
8297
+ -----------------------------
8298
+ RemotePartialTest: test_truth
8299
+ -----------------------------
8300
+  (0.1ms) rollback transaction
8301
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8302
+  (0.2ms) begin transaction
8303
+  (0.1ms) commit transaction
8304
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8305
+
8306
+ You can stub this request with the following snippet:
8307
+
8308
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
8309
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8310
+ to_return(:status => 200, :body => "", :headers => {})
8311
+
8312
+ ============================================================>
8313
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8314
+  (0.1ms) begin transaction
8315
+  (0.1ms) commit transaction
8316
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8317
+
8318
+ You can stub this request with the following snippet:
8319
+
8320
+ stub_request(:get, "http://www.ruby-lang.org/en/").
8321
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8322
+ to_return(:status => 200, :body => "", :headers => {})
8323
+
8324
+ ============================================================>
8325
+  (0.3ms) begin transaction
8326
+ -------------------------------
8327
+ DemosControllerTest: test_index
8328
+ -------------------------------
8329
+ Processing by DemosController#index as HTML
8330
+ Rendered demos/index.html.erb within layouts/application (2.8ms)
8331
+ Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
8332
+  (0.2ms) rollback transaction
8333
+  (0.1ms) begin transaction
8334
+ ------------------------------------
8335
+ DemosControllerTest: test_show_fixed
8336
+ ------------------------------------
8337
+ Processing by DemosController#show as HTML
8338
+ Parameters: {"id"=>"fixed"}
8339
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
8340
+ Rendered demos/_fixed.html.erb (1.8ms)
8341
+ Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms)
8342
+  (0.1ms) rollback transaction
8343
+  (0.1ms) begin transaction
8344
+ -----------------------------------------------------------
8345
+ DemosHelperTest: test_render_remote_partial_with_no_partial
8346
+ -----------------------------------------------------------
8347
+  (0.1ms) rollback transaction
8348
+  (0.1ms) begin transaction
8349
+ --------------------------------------
8350
+ RemotePartial::BuilderTest: test_build
8351
+ --------------------------------------
8352
+ RemotePartial::Partial Load (13.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8353
+  (0.1ms) rollback transaction
8354
+  (0.6ms) begin transaction
8355
+ ------------------------------------------------------------
8356
+ RemotePartial::BuilderTest: test_build_with_existing_partial
8357
+ ------------------------------------------------------------
8358
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8359
+  (0.1ms) rollback transaction
8360
+  (0.1ms) begin transaction
8361
+ ------------------------------------------------------------------
8362
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
8363
+ ------------------------------------------------------------------
8364
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8365
+  (0.1ms) rollback transaction
8366
+  (0.1ms) begin transaction
8367
+ ------------------------------------------------------
8368
+ RemotePartial::BuilderTest: test_build_with_http_error
8369
+ ------------------------------------------------------
8370
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8371
+  (0.1ms) rollback transaction
8372
+  (0.1ms) begin transaction
8373
+ ---------------------------------------------------------
8374
+ RemotePartial::BuilderTest: test_create_or_update_partial
8375
+ ---------------------------------------------------------
8376
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8377
+  (0.2ms) rollback transaction
8378
+  (0.1ms) begin transaction
8379
+ -----------------------------------------------------------------------------------
8380
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
8381
+ -----------------------------------------------------------------------------------
8382
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8383
+  (0.1ms) rollback transaction
8384
+  (0.1ms) begin transaction
8385
+ ----------------------------------------------------------------------------
8386
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
8387
+ ----------------------------------------------------------------------------
8388
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8389
+  (0.1ms) rollback transaction
8390
+  (0.1ms) begin transaction
8391
+ ----------------------------------------------------------------
8392
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
8393
+ ----------------------------------------------------------------
8394
+  (0.4ms) rollback transaction
8395
+  (0.1ms) begin transaction
8396
+ -------------------------------------------------
8397
+ RemotePartial::PartialTest: test_output_file_name
8398
+ -------------------------------------------------
8399
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8400
+  (8.5ms) rollback transaction
8401
+  (0.3ms) begin transaction
8402
+ ------------------------------------------------------------------
8403
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
8404
+ ------------------------------------------------------------------
8405
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8406
+  (0.1ms) rollback transaction
8407
+  (0.1ms) begin transaction
8408
+ --------------------------------------------------------
8409
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
8410
+ --------------------------------------------------------
8411
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8412
+  (0.4ms) rollback transaction
8413
+  (0.1ms) begin transaction
8414
+ --------------------------------------------
8415
+ RemotePartial::PartialTest: test_update_file
8416
+ --------------------------------------------
8417
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8418
+  (0.2ms) rollback transaction
8419
+  (0.1ms) begin transaction
8420
+ ------------------------------------------------------------------------
8421
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
8422
+ ------------------------------------------------------------------------
8423
+ RemotePartial::Partial Load (2.6ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8424
+  (0.1ms) rollback transaction
8425
+  (0.1ms) begin transaction
8426
+ ------------------------------------------------
8427
+ RemotePartial::PartialTest: test_update_stale_at
8428
+ ------------------------------------------------
8429
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8430
+  (0.1ms) rollback transaction
8431
+  (0.1ms) begin transaction
8432
+ --------------------------------------------------
8433
+ RemotePartial::PartialTest: test_update_stale_file
8434
+ --------------------------------------------------
8435
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8436
+  (0.1ms) rollback transaction
8437
+  (0.1ms) begin transaction
8438
+ -----------------------------------------------------------------
8439
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
8440
+ -----------------------------------------------------------------
8441
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8442
+  (0.1ms) rollback transaction
8443
+  (0.4ms) begin transaction
8444
+ -----------------------------------------------------------
8445
+ RemotePartial::ResourceManagerTest: test_connection_failure
8446
+ -----------------------------------------------------------
8447
+  (0.1ms) rollback transaction
8448
+  (0.1ms) begin transaction
8449
+ ------------------------------------------------------------------------------
8450
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
8451
+ ------------------------------------------------------------------------------
8452
+  (0.1ms) rollback transaction
8453
+  (0.1ms) begin transaction
8454
+ -------------------------------------------------
8455
+ RemotePartial::ResourceManagerTest: test_get_page
8456
+ -------------------------------------------------
8457
+  (0.4ms) rollback transaction
8458
+  (0.1ms) begin transaction
8459
+ ------------------------------------------------
8460
+ RemotePartial::ResourceManagerTest: test_get_raw
8461
+ ------------------------------------------------
8462
+  (0.1ms) rollback transaction
8463
+  (0.1ms) begin transaction
8464
+ ---------------------------------------------
8465
+ RemotePartial::ResourceManagerTest: test_html
8466
+ ---------------------------------------------
8467
+  (0.2ms) rollback transaction
8468
+  (0.1ms) begin transaction
8469
+ --------------------------------------------------------
8470
+ RemotePartial::ResourceManagerTest: test_html_with_limit
8471
+ --------------------------------------------------------
8472
+  (0.1ms) rollback transaction
8473
+  (0.1ms) begin transaction
8474
+ --------------------------------------------------------------------------------------
8475
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
8476
+ --------------------------------------------------------------------------------------
8477
+  (0.1ms) rollback transaction
8478
+  (0.1ms) begin transaction
8479
+ --------------------------------------------------
8480
+ RemotePartial::ResourceManagerTest: test_output_to
8481
+ --------------------------------------------------
8482
+  (0.1ms) rollback transaction
8483
+  (0.1ms) begin transaction
8484
+ ---------------------------------------------
8485
+ RemotePartial::ResourceManagerTest: test_stub
8486
+ ---------------------------------------------
8487
+  (0.6ms) rollback transaction
8488
+  (0.1ms) begin transaction
8489
+ ------------------------------
8490
+ RemotePartialTest: test_define
8491
+ ------------------------------
8492
+  (1.0ms) SELECT COUNT(*) FROM "remote_partial_partials"
8493
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8494
+  (0.1ms) SAVEPOINT active_record_1
8495
+ SQL (3.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:23:42 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:23:42 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8497
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8498
+
8499
+ You can stub this request with the following snippet:
8500
+
8501
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
8502
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8503
+ to_return(:status => 200, :body => "", :headers => {})
8504
+
8505
+ ============================================================>
8506
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8507
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8508
+  (0.5ms) rollback transaction
8509
+  (0.1ms) begin transaction
8510
+ -----------------------------
8511
+ RemotePartialTest: test_truth
8512
+ -----------------------------
8513
+  (0.1ms) rollback transaction
8514
+ RemotePartial::Partial Load (0.6ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8515
+  (0.2ms) begin transaction
8516
+  (0.1ms) commit transaction
8517
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8518
+
8519
+ You can stub this request with the following snippet:
8520
+
8521
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
8522
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8523
+ to_return(:status => 200, :body => "", :headers => {})
8524
+
8525
+ ============================================================>
8526
+ RemotePartial::Partial Load (1.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8527
+  (0.1ms) begin transaction
8528
+  (0.1ms) commit transaction
8529
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8530
+
8531
+ You can stub this request with the following snippet:
8532
+
8533
+ stub_request(:get, "http://www.ruby-lang.org/en/").
8534
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8535
+ to_return(:status => 200, :body => "", :headers => {})
8536
+
8537
+ ============================================================>
8538
+  (0.3ms) begin transaction
8539
+ -------------------------------
8540
+ DemosControllerTest: test_index
8541
+ -------------------------------
8542
+ Processing by DemosController#index as HTML
8543
+ Rendered demos/index.html.erb within layouts/application (3.9ms)
8544
+ Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms)
8545
+  (0.2ms) rollback transaction
8546
+  (0.1ms) begin transaction
8547
+ ------------------------------------
8548
+ DemosControllerTest: test_show_fixed
8549
+ ------------------------------------
8550
+ Processing by DemosController#show as HTML
8551
+ Parameters: {"id"=>"fixed"}
8552
+ Rendered remote_partials/_fixed.html.erb (0.5ms)
8553
+ Rendered demos/_fixed.html.erb (5.1ms)
8554
+ Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
8555
+  (0.2ms) rollback transaction
8556
+  (0.1ms) begin transaction
8557
+ -----------------------------------------------------------
8558
+ DemosHelperTest: test_render_remote_partial_with_no_partial
8559
+ -----------------------------------------------------------
8560
+  (0.1ms) rollback transaction
8561
+  (0.1ms) begin transaction
8562
+ --------------------------------------
8563
+ RemotePartial::BuilderTest: test_build
8564
+ --------------------------------------
8565
+ RemotePartial::Partial Load (36.8ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8566
+  (2.8ms) SELECT COUNT(*) FROM "remote_partial_partials"
8567
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8568
+  (0.1ms) SAVEPOINT active_record_1
8569
+ SQL (10.1ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8571
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8572
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8573
+  (0.3ms) rollback transaction
8574
+  (0.1ms) begin transaction
8575
+ ------------------------------------------------------------
8576
+ RemotePartial::BuilderTest: test_build_with_existing_partial
8577
+ ------------------------------------------------------------
8578
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8579
+  (10.5ms) SAVEPOINT active_record_1
8580
+ SQL (0.5ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8582
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8583
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8584
+  (0.1ms) SAVEPOINT active_record_1
8585
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8587
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8588
+  (0.3ms) rollback transaction
8589
+  (0.1ms) begin transaction
8590
+ ------------------------------------------------------------------
8591
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
8592
+ ------------------------------------------------------------------
8593
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8594
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8595
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8596
+  (0.1ms) SAVEPOINT active_record_1
8597
+ SQL (6.5ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8599
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8600
+  (0.2ms) rollback transaction
8601
+  (0.1ms) begin transaction
8602
+ ------------------------------------------------------
8603
+ RemotePartial::BuilderTest: test_build_with_http_error
8604
+ ------------------------------------------------------
8605
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8606
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8607
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8608
+  (0.1ms) SAVEPOINT active_record_1
8609
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8611
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
8612
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8613
+  (1.9ms) rollback transaction
8614
+  (0.1ms) begin transaction
8615
+ ---------------------------------------------------------
8616
+ RemotePartial::BuilderTest: test_create_or_update_partial
8617
+ ---------------------------------------------------------
8618
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8619
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8620
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8621
+  (0.1ms) SAVEPOINT active_record_1
8622
+ SQL (1.5ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8624
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
8625
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8626
+  (0.4ms) rollback transaction
8627
+  (0.1ms) begin transaction
8628
+ -----------------------------------------------------------------------------------
8629
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
8630
+ -----------------------------------------------------------------------------------
8631
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8632
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8633
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8634
+  (0.1ms) SAVEPOINT active_record_1
8635
+ SQL (4.8ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8637
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8638
+ RemotePartial::Partial Load (1.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8639
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8640
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8641
+  (0.1ms) SAVEPOINT active_record_1
8642
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233 [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8644
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8645
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8646
+  (0.3ms) rollback transaction
8647
+  (0.1ms) begin transaction
8648
+ ----------------------------------------------------------------------------
8649
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
8650
+ ----------------------------------------------------------------------------
8651
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8652
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8653
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8654
+  (0.1ms) SAVEPOINT active_record_1
8655
+ SQL (0.2ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8657
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
8658
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8659
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8660
+  (0.7ms) rollback transaction
8661
+  (0.1ms) begin transaction
8662
+ ----------------------------------------------------------------
8663
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
8664
+ ----------------------------------------------------------------
8665
+  (0.1ms) rollback transaction
8666
+  (0.1ms) begin transaction
8667
+ -------------------------------------------------
8668
+ RemotePartial::PartialTest: test_output_file_name
8669
+ -------------------------------------------------
8670
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8671
+  (0.1ms) rollback transaction
8672
+  (0.1ms) begin transaction
8673
+ ------------------------------------------------------------------
8674
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
8675
+ ------------------------------------------------------------------
8676
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8677
+  (0.1ms) SAVEPOINT active_record_1
8678
+ SQL (14.4ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8680
+  (0.4ms) rollback transaction
8681
+  (0.1ms) begin transaction
8682
+ --------------------------------------------------------
8683
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
8684
+ --------------------------------------------------------
8685
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8686
+  (0.1ms) SAVEPOINT active_record_1
8687
+ SQL (1.7ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8689
+  (0.4ms) rollback transaction
8690
+  (0.1ms) begin transaction
8691
+ --------------------------------------------
8692
+ RemotePartial::PartialTest: test_update_file
8693
+ --------------------------------------------
8694
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8695
+  (0.2ms) rollback transaction
8696
+  (0.1ms) begin transaction
8697
+ ------------------------------------------------------------------------
8698
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
8699
+ ------------------------------------------------------------------------
8700
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8701
+  (0.1ms) SAVEPOINT active_record_1
8702
+ SQL (4.8ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8703
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8704
+  (0.4ms) rollback transaction
8705
+  (0.1ms) begin transaction
8706
+ ------------------------------------------------
8707
+ RemotePartial::PartialTest: test_update_stale_at
8708
+ ------------------------------------------------
8709
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8710
+  (0.1ms) SAVEPOINT active_record_1
8711
+ SQL (1.2ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8713
+  (0.6ms) rollback transaction
8714
+  (0.2ms) begin transaction
8715
+ --------------------------------------------------
8716
+ RemotePartial::PartialTest: test_update_stale_file
8717
+ --------------------------------------------------
8718
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8719
+  (0.1ms) rollback transaction
8720
+  (0.1ms) begin transaction
8721
+ -----------------------------------------------------------------
8722
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
8723
+ -----------------------------------------------------------------
8724
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8725
+  (0.1ms) SAVEPOINT active_record_1
8726
+ SQL (0.9ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:34:46 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
8727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8728
+  (0.4ms) rollback transaction
8729
+  (0.1ms) begin transaction
8730
+ -----------------------------------------------------------
8731
+ RemotePartial::ResourceManagerTest: test_connection_failure
8732
+ -----------------------------------------------------------
8733
+  (0.1ms) rollback transaction
8734
+  (0.1ms) begin transaction
8735
+ ------------------------------------------------------------------------------
8736
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
8737
+ ------------------------------------------------------------------------------
8738
+  (0.1ms) rollback transaction
8739
+  (0.1ms) begin transaction
8740
+ -------------------------------------------------
8741
+ RemotePartial::ResourceManagerTest: test_get_page
8742
+ -------------------------------------------------
8743
+  (0.1ms) rollback transaction
8744
+  (0.1ms) begin transaction
8745
+ ------------------------------------------------
8746
+ RemotePartial::ResourceManagerTest: test_get_raw
8747
+ ------------------------------------------------
8748
+  (0.2ms) rollback transaction
8749
+  (0.1ms) begin transaction
8750
+ ---------------------------------------------
8751
+ RemotePartial::ResourceManagerTest: test_html
8752
+ ---------------------------------------------
8753
+  (0.1ms) rollback transaction
8754
+  (0.1ms) begin transaction
8755
+ --------------------------------------------------------
8756
+ RemotePartial::ResourceManagerTest: test_html_with_limit
8757
+ --------------------------------------------------------
8758
+  (0.2ms) rollback transaction
8759
+  (0.1ms) begin transaction
8760
+ --------------------------------------------------------------------------------------
8761
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
8762
+ --------------------------------------------------------------------------------------
8763
+  (0.1ms) rollback transaction
8764
+  (0.1ms) begin transaction
8765
+ --------------------------------------------------
8766
+ RemotePartial::ResourceManagerTest: test_output_to
8767
+ --------------------------------------------------
8768
+  (0.2ms) rollback transaction
8769
+  (0.1ms) begin transaction
8770
+ ---------------------------------------------
8771
+ RemotePartial::ResourceManagerTest: test_stub
8772
+ ---------------------------------------------
8773
+  (0.1ms) rollback transaction
8774
+  (0.1ms) begin transaction
8775
+ ------------------------------
8776
+ RemotePartialTest: test_define
8777
+ ------------------------------
8778
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
8779
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8780
+  (0.3ms) SAVEPOINT active_record_1
8781
+ SQL (1.7ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8783
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
8784
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8785
+  (0.3ms) rollback transaction
8786
+  (0.1ms) begin transaction
8787
+ -----------------------------
8788
+ RemotePartialTest: test_truth
8789
+ -----------------------------
8790
+  (0.1ms) rollback transaction
8791
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8792
+  (0.2ms) begin transaction
8793
+  (0.1ms) commit transaction
8794
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8795
+
8796
+ You can stub this request with the following snippet:
8797
+
8798
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
8799
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8800
+ to_return(:status => 200, :body => "", :headers => {})
8801
+
8802
+ ============================================================>
8803
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8804
+  (0.1ms) begin transaction
8805
+  (0.1ms) commit transaction
8806
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
8807
+
8808
+ You can stub this request with the following snippet:
8809
+
8810
+ stub_request(:get, "http://www.ruby-lang.org/en/").
8811
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
8812
+ to_return(:status => 200, :body => "", :headers => {})
8813
+
8814
+ ============================================================>
8815
+  (0.3ms) begin transaction
8816
+ -------------------------------
8817
+ DemosControllerTest: test_index
8818
+ -------------------------------
8819
+ Processing by DemosController#index as HTML
8820
+ Rendered demos/index.html.erb within layouts/application (1.1ms)
8821
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
8822
+  (0.1ms) rollback transaction
8823
+  (0.1ms) begin transaction
8824
+ ------------------------------------
8825
+ DemosControllerTest: test_show_fixed
8826
+ ------------------------------------
8827
+ Processing by DemosController#show as HTML
8828
+ Parameters: {"id"=>"fixed"}
8829
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
8830
+ Rendered demos/_fixed.html.erb (2.7ms)
8831
+ Completed 200 OK in 10ms (Views: 10.2ms | ActiveRecord: 0.0ms)
8832
+  (0.4ms) rollback transaction
8833
+  (0.1ms) begin transaction
8834
+ -----------------------------------------------------------
8835
+ DemosHelperTest: test_render_remote_partial_with_no_partial
8836
+ -----------------------------------------------------------
8837
+  (0.2ms) rollback transaction
8838
+  (0.1ms) begin transaction
8839
+ --------------------------------------
8840
+ RemotePartial::BuilderTest: test_build
8841
+ --------------------------------------
8842
+ RemotePartial::Partial Load (33.6ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8843
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8844
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8845
+  (0.1ms) SAVEPOINT active_record_1
8846
+ SQL (3.1ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8847
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8848
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8849
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8850
+  (0.9ms) rollback transaction
8851
+  (0.1ms) begin transaction
8852
+ ------------------------------------------------------------
8853
+ RemotePartial::BuilderTest: test_build_with_existing_partial
8854
+ ------------------------------------------------------------
8855
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8856
+  (0.1ms) SAVEPOINT active_record_1
8857
+ SQL (4.9ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:41 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8859
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8860
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8861
+  (0.1ms) SAVEPOINT active_record_1
8862
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8864
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8865
+  (0.5ms) rollback transaction
8866
+  (0.1ms) begin transaction
8867
+ ------------------------------------------------------------------
8868
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
8869
+ ------------------------------------------------------------------
8870
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8871
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8872
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8873
+  (0.2ms) SAVEPOINT active_record_1
8874
+ SQL (2.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8875
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8876
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8877
+  (0.4ms) rollback transaction
8878
+  (0.1ms) begin transaction
8879
+ ------------------------------------------------------
8880
+ RemotePartial::BuilderTest: test_build_with_http_error
8881
+ ------------------------------------------------------
8882
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8883
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8884
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8885
+  (0.1ms) SAVEPOINT active_record_1
8886
+ SQL (8.1ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8888
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
8889
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8890
+  (4.5ms) rollback transaction
8891
+  (0.1ms) begin transaction
8892
+ ---------------------------------------------------------
8893
+ RemotePartial::BuilderTest: test_create_or_update_partial
8894
+ ---------------------------------------------------------
8895
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8896
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8897
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8898
+  (0.1ms) SAVEPOINT active_record_1
8899
+ SQL (0.5ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8901
+  (3.4ms) SELECT COUNT(*) FROM "remote_partial_partials"
8902
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8903
+  (0.3ms) rollback transaction
8904
+  (0.1ms) begin transaction
8905
+ -----------------------------------------------------------------------------------
8906
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
8907
+ -----------------------------------------------------------------------------------
8908
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8909
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8910
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8911
+  (6.8ms) SAVEPOINT active_record_1
8912
+ SQL (0.3ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
8913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8914
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8915
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8916
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8917
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8918
+  (0.1ms) SAVEPOINT active_record_1
8919
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233 [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8921
+  (4.0ms) SELECT COUNT(*) FROM "remote_partial_partials"
8922
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
8923
+  (0.3ms) rollback transaction
8924
+  (0.1ms) begin transaction
8925
+ ----------------------------------------------------------------------------
8926
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
8927
+ ----------------------------------------------------------------------------
8928
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8929
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8930
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
8931
+  (0.1ms) SAVEPOINT active_record_1
8932
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
8933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8934
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
8935
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
8936
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8937
+  (0.2ms) rollback transaction
8938
+  (0.1ms) begin transaction
8939
+ ----------------------------------------------------------------
8940
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
8941
+ ----------------------------------------------------------------
8942
+  (0.1ms) rollback transaction
8943
+  (0.1ms) begin transaction
8944
+ -------------------------------------------------
8945
+ RemotePartial::PartialTest: test_output_file_name
8946
+ -------------------------------------------------
8947
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8948
+  (0.1ms) rollback transaction
8949
+  (0.1ms) begin transaction
8950
+ ------------------------------------------------------------------
8951
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
8952
+ ------------------------------------------------------------------
8953
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8954
+  (0.1ms) SAVEPOINT active_record_1
8955
+ SQL (1.1ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:42 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00]]
8956
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8957
+  (0.7ms) rollback transaction
8958
+  (0.2ms) begin transaction
8959
+ --------------------------------------------------------
8960
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
8961
+ --------------------------------------------------------
8962
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8963
+  (0.1ms) SAVEPOINT active_record_1
8964
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:42 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00]]
8965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8966
+  (0.1ms) rollback transaction
8967
+  (0.1ms) begin transaction
8968
+ --------------------------------------------
8969
+ RemotePartial::PartialTest: test_update_file
8970
+ --------------------------------------------
8971
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8972
+  (0.1ms) rollback transaction
8973
+  (0.1ms) begin transaction
8974
+ ------------------------------------------------------------------------
8975
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
8976
+ ------------------------------------------------------------------------
8977
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8978
+  (0.1ms) SAVEPOINT active_record_1
8979
+ SQL (0.5ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:42 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00]]
8980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8981
+  (0.2ms) rollback transaction
8982
+  (0.1ms) begin transaction
8983
+ ------------------------------------------------
8984
+ RemotePartial::PartialTest: test_update_stale_at
8985
+ ------------------------------------------------
8986
+ RemotePartial::Partial Load (5.5ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8987
+  (0.1ms) SAVEPOINT active_record_1
8988
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:42 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00]]
8989
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8990
+  (0.4ms) rollback transaction
8991
+  (0.2ms) begin transaction
8992
+ --------------------------------------------------
8993
+ RemotePartial::PartialTest: test_update_stale_file
8994
+ --------------------------------------------------
8995
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
8996
+  (0.0ms) rollback transaction
8997
+  (0.1ms) begin transaction
8998
+ -----------------------------------------------------------------
8999
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
9000
+ -----------------------------------------------------------------
9001
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9002
+  (0.1ms) SAVEPOINT active_record_1
9003
+ SQL (4.8ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:37:42 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00]]
9004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9005
+  (0.3ms) rollback transaction
9006
+  (0.1ms) begin transaction
9007
+ -----------------------------------------------------------
9008
+ RemotePartial::ResourceManagerTest: test_connection_failure
9009
+ -----------------------------------------------------------
9010
+  (0.1ms) rollback transaction
9011
+  (0.1ms) begin transaction
9012
+ ------------------------------------------------------------------------------
9013
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
9014
+ ------------------------------------------------------------------------------
9015
+  (0.1ms) rollback transaction
9016
+  (0.1ms) begin transaction
9017
+ -------------------------------------------------
9018
+ RemotePartial::ResourceManagerTest: test_get_page
9019
+ -------------------------------------------------
9020
+  (0.1ms) rollback transaction
9021
+  (0.2ms) begin transaction
9022
+ ------------------------------------------------
9023
+ RemotePartial::ResourceManagerTest: test_get_raw
9024
+ ------------------------------------------------
9025
+  (0.1ms) rollback transaction
9026
+  (0.1ms) begin transaction
9027
+ ---------------------------------------------
9028
+ RemotePartial::ResourceManagerTest: test_html
9029
+ ---------------------------------------------
9030
+  (0.1ms) rollback transaction
9031
+  (0.1ms) begin transaction
9032
+ --------------------------------------------------------
9033
+ RemotePartial::ResourceManagerTest: test_html_with_limit
9034
+ --------------------------------------------------------
9035
+  (0.1ms) rollback transaction
9036
+  (0.1ms) begin transaction
9037
+ --------------------------------------------------------------------------------------
9038
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
9039
+ --------------------------------------------------------------------------------------
9040
+  (0.1ms) rollback transaction
9041
+  (0.1ms) begin transaction
9042
+ --------------------------------------------------
9043
+ RemotePartial::ResourceManagerTest: test_output_to
9044
+ --------------------------------------------------
9045
+  (0.4ms) rollback transaction
9046
+  (0.1ms) begin transaction
9047
+ ---------------------------------------------
9048
+ RemotePartial::ResourceManagerTest: test_stub
9049
+ ---------------------------------------------
9050
+  (0.1ms) rollback transaction
9051
+  (0.1ms) begin transaction
9052
+ ------------------------------
9053
+ RemotePartialTest: test_define
9054
+ ------------------------------
9055
+  (1.0ms) SELECT COUNT(*) FROM "remote_partial_partials"
9056
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9057
+  (0.4ms) SAVEPOINT active_record_1
9058
+ SQL (2.3ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:42 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9060
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9061
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9062
+  (1.3ms) rollback transaction
9063
+  (0.3ms) begin transaction
9064
+ -----------------------------
9065
+ RemotePartialTest: test_truth
9066
+ -----------------------------
9067
+  (0.3ms) rollback transaction
9068
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9069
+  (0.1ms) begin transaction
9070
+  (0.1ms) commit transaction
9071
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9072
+
9073
+ You can stub this request with the following snippet:
9074
+
9075
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
9076
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9077
+ to_return(:status => 200, :body => "", :headers => {})
9078
+
9079
+ ============================================================>
9080
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9081
+  (0.1ms) begin transaction
9082
+  (0.1ms) commit transaction
9083
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9084
+
9085
+ You can stub this request with the following snippet:
9086
+
9087
+ stub_request(:get, "http://www.ruby-lang.org/en/").
9088
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9089
+ to_return(:status => 200, :body => "", :headers => {})
9090
+
9091
+ ============================================================>
9092
+  (0.4ms) begin transaction
9093
+ -------------------------------
9094
+ DemosControllerTest: test_index
9095
+ -------------------------------
9096
+ Processing by DemosController#index as HTML
9097
+ Rendered demos/index.html.erb within layouts/application (1.8ms)
9098
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
9099
+  (0.1ms) rollback transaction
9100
+  (0.1ms) begin transaction
9101
+ ------------------------------------
9102
+ DemosControllerTest: test_show_fixed
9103
+ ------------------------------------
9104
+ Processing by DemosController#show as HTML
9105
+ Parameters: {"id"=>"fixed"}
9106
+ Rendered remote_partials/_fixed.html.erb (1.9ms)
9107
+ Rendered demos/_fixed.html.erb (3.4ms)
9108
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
9109
+  (0.1ms) rollback transaction
9110
+  (0.2ms) begin transaction
9111
+ -----------------------------------------------------------
9112
+ DemosHelperTest: test_render_remote_partial_with_no_partial
9113
+ -----------------------------------------------------------
9114
+  (0.1ms) rollback transaction
9115
+  (0.1ms) begin transaction
9116
+ --------------------------------------
9117
+ RemotePartial::BuilderTest: test_build
9118
+ --------------------------------------
9119
+ RemotePartial::Partial Load (33.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9120
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9121
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9122
+  (0.1ms) SAVEPOINT active_record_1
9123
+ SQL (3.6ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9125
+  (0.0ms) SELECT COUNT(*) FROM "remote_partial_partials"
9126
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9127
+  (0.5ms) rollback transaction
9128
+  (0.1ms) begin transaction
9129
+ ------------------------------------------------------------
9130
+ RemotePartial::BuilderTest: test_build_with_existing_partial
9131
+ ------------------------------------------------------------
9132
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9133
+  (0.1ms) SAVEPOINT active_record_1
9134
+ SQL (1.2ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:21 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9136
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9137
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9138
+  (0.2ms) SAVEPOINT active_record_1
9139
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9141
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9142
+  (0.5ms) rollback transaction
9143
+  (0.3ms) begin transaction
9144
+ ------------------------------------------------------------------
9145
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
9146
+ ------------------------------------------------------------------
9147
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9148
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9149
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9150
+  (0.2ms) SAVEPOINT active_record_1
9151
+ SQL (1.0ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9153
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9154
+  (0.5ms) rollback transaction
9155
+  (0.1ms) begin transaction
9156
+ ------------------------------------------------------
9157
+ RemotePartial::BuilderTest: test_build_with_http_error
9158
+ ------------------------------------------------------
9159
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9160
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9161
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9162
+  (0.1ms) SAVEPOINT active_record_1
9163
+ SQL (5.2ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9165
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9166
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9167
+  (0.2ms) rollback transaction
9168
+  (0.1ms) begin transaction
9169
+ ---------------------------------------------------------
9170
+ RemotePartial::BuilderTest: test_create_or_update_partial
9171
+ ---------------------------------------------------------
9172
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9173
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9174
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9175
+  (0.1ms) SAVEPOINT active_record_1
9176
+ SQL (0.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9178
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9179
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9180
+  (0.2ms) rollback transaction
9181
+  (0.2ms) begin transaction
9182
+ -----------------------------------------------------------------------------------
9183
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
9184
+ -----------------------------------------------------------------------------------
9185
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9186
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9187
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9188
+  (0.1ms) SAVEPOINT active_record_1
9189
+ SQL (0.1ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9191
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9192
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9193
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9194
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9195
+  (0.1ms) SAVEPOINT active_record_1
9196
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233 [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9198
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9199
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9200
+  (0.3ms) rollback transaction
9201
+  (0.1ms) begin transaction
9202
+ ----------------------------------------------------------------------------
9203
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
9204
+ ----------------------------------------------------------------------------
9205
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9206
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9207
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9208
+  (0.1ms) SAVEPOINT active_record_1
9209
+ SQL (0.0ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
9210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9211
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9212
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9213
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9214
+  (0.2ms) rollback transaction
9215
+  (0.1ms) begin transaction
9216
+ ----------------------------------------------------------------
9217
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
9218
+ ----------------------------------------------------------------
9219
+  (0.1ms) rollback transaction
9220
+  (0.1ms) begin transaction
9221
+ -------------------------------------------------
9222
+ RemotePartial::PartialTest: test_output_file_name
9223
+ -------------------------------------------------
9224
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9225
+  (0.1ms) rollback transaction
9226
+  (0.1ms) begin transaction
9227
+ ------------------------------------------------------------------
9228
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
9229
+ ------------------------------------------------------------------
9230
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9231
+  (0.1ms) SAVEPOINT active_record_1
9232
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:22 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00]]
9233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9234
+  (0.3ms) rollback transaction
9235
+  (0.1ms) begin transaction
9236
+ --------------------------------------------------------
9237
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
9238
+ --------------------------------------------------------
9239
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9240
+  (0.1ms) SAVEPOINT active_record_1
9241
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:22 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00]]
9242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9243
+  (0.2ms) rollback transaction
9244
+  (0.1ms) begin transaction
9245
+ --------------------------------------------
9246
+ RemotePartial::PartialTest: test_update_file
9247
+ --------------------------------------------
9248
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9249
+  (0.1ms) rollback transaction
9250
+  (0.1ms) begin transaction
9251
+ ------------------------------------------------------------------------
9252
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
9253
+ ------------------------------------------------------------------------
9254
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9255
+  (0.1ms) SAVEPOINT active_record_1
9256
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:22 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00]]
9257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9258
+  (5.2ms) rollback transaction
9259
+  (0.1ms) begin transaction
9260
+ ------------------------------------------------
9261
+ RemotePartial::PartialTest: test_update_stale_at
9262
+ ------------------------------------------------
9263
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9264
+  (0.1ms) SAVEPOINT active_record_1
9265
+ SQL (9.4ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:22 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00]]
9266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9267
+  (0.1ms) rollback transaction
9268
+  (0.1ms) begin transaction
9269
+ --------------------------------------------------
9270
+ RemotePartial::PartialTest: test_update_stale_file
9271
+ --------------------------------------------------
9272
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9273
+  (0.1ms) rollback transaction
9274
+  (0.1ms) begin transaction
9275
+ -----------------------------------------------------------------
9276
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
9277
+ -----------------------------------------------------------------
9278
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9279
+  (0.1ms) SAVEPOINT active_record_1
9280
+ SQL (1.4ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:42:22 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00]]
9281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9282
+  (2.9ms) rollback transaction
9283
+  (0.1ms) begin transaction
9284
+ -----------------------------------------------------------
9285
+ RemotePartial::ResourceManagerTest: test_connection_failure
9286
+ -----------------------------------------------------------
9287
+  (0.1ms) rollback transaction
9288
+  (0.1ms) begin transaction
9289
+ ------------------------------------------------------------------------------
9290
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
9291
+ ------------------------------------------------------------------------------
9292
+  (0.1ms) rollback transaction
9293
+  (0.2ms) begin transaction
9294
+ -------------------------------------------------
9295
+ RemotePartial::ResourceManagerTest: test_get_page
9296
+ -------------------------------------------------
9297
+  (0.1ms) rollback transaction
9298
+  (0.1ms) begin transaction
9299
+ ------------------------------------------------
9300
+ RemotePartial::ResourceManagerTest: test_get_raw
9301
+ ------------------------------------------------
9302
+  (0.1ms) rollback transaction
9303
+  (0.1ms) begin transaction
9304
+ ---------------------------------------------
9305
+ RemotePartial::ResourceManagerTest: test_html
9306
+ ---------------------------------------------
9307
+  (0.2ms) rollback transaction
9308
+  (0.1ms) begin transaction
9309
+ --------------------------------------------------------
9310
+ RemotePartial::ResourceManagerTest: test_html_with_limit
9311
+ --------------------------------------------------------
9312
+  (0.1ms) rollback transaction
9313
+  (0.1ms) begin transaction
9314
+ --------------------------------------------------------------------------------------
9315
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
9316
+ --------------------------------------------------------------------------------------
9317
+  (0.2ms) rollback transaction
9318
+  (0.1ms) begin transaction
9319
+ --------------------------------------------------
9320
+ RemotePartial::ResourceManagerTest: test_output_to
9321
+ --------------------------------------------------
9322
+  (4.3ms) rollback transaction
9323
+  (0.1ms) begin transaction
9324
+ ---------------------------------------------
9325
+ RemotePartial::ResourceManagerTest: test_stub
9326
+ ---------------------------------------------
9327
+  (0.1ms) rollback transaction
9328
+  (0.1ms) begin transaction
9329
+ ------------------------------
9330
+ RemotePartialTest: test_define
9331
+ ------------------------------
9332
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9333
+ RemotePartial::Partial Load (0.0ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9334
+  (0.1ms) SAVEPOINT active_record_1
9335
+ SQL (10.0ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:22 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9337
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9338
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9339
+  (0.3ms) rollback transaction
9340
+  (0.1ms) begin transaction
9341
+ -----------------------------
9342
+ RemotePartialTest: test_truth
9343
+ -----------------------------
9344
+  (0.1ms) rollback transaction
9345
+ RemotePartial::Partial Load (0.4ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9346
+  (0.1ms) begin transaction
9347
+  (0.1ms) commit transaction
9348
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9349
+
9350
+ You can stub this request with the following snippet:
9351
+
9352
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
9353
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9354
+ to_return(:status => 200, :body => "", :headers => {})
9355
+
9356
+ ============================================================>
9357
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9358
+  (0.0ms) begin transaction
9359
+  (0.1ms) commit transaction
9360
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9361
+
9362
+ You can stub this request with the following snippet:
9363
+
9364
+ stub_request(:get, "http://www.ruby-lang.org/en/").
9365
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9366
+ to_return(:status => 200, :body => "", :headers => {})
9367
+
9368
+ ============================================================>
9369
+  (0.3ms) begin transaction
9370
+ -------------------------------
9371
+ DemosControllerTest: test_index
9372
+ -------------------------------
9373
+ Processing by DemosController#index as HTML
9374
+ Rendered demos/index.html.erb within layouts/application (1.1ms)
9375
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
9376
+  (0.1ms) rollback transaction
9377
+  (0.1ms) begin transaction
9378
+ ------------------------------------
9379
+ DemosControllerTest: test_show_fixed
9380
+ ------------------------------------
9381
+ Processing by DemosController#show as HTML
9382
+ Parameters: {"id"=>"fixed"}
9383
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
9384
+ Rendered demos/_fixed.html.erb (4.9ms)
9385
+ Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
9386
+  (0.1ms) rollback transaction
9387
+  (0.1ms) begin transaction
9388
+ -----------------------------------------------------------
9389
+ DemosHelperTest: test_render_remote_partial_with_no_partial
9390
+ -----------------------------------------------------------
9391
+  (0.1ms) rollback transaction
9392
+  (0.1ms) begin transaction
9393
+ --------------------------------------
9394
+ RemotePartial::BuilderTest: test_build
9395
+ --------------------------------------
9396
+ RemotePartial::Partial Load (34.5ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9397
+  (0.6ms) SELECT COUNT(*) FROM "remote_partial_partials"
9398
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9399
+  (0.1ms) SAVEPOINT active_record_1
9400
+ SQL (3.3ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9402
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9403
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9404
+  (0.4ms) rollback transaction
9405
+  (0.1ms) begin transaction
9406
+ ------------------------------------------------------------
9407
+ RemotePartial::BuilderTest: test_build_with_existing_partial
9408
+ ------------------------------------------------------------
9409
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9410
+  (0.1ms) SAVEPOINT active_record_1
9411
+ SQL (2.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9412
+  (6.4ms) RELEASE SAVEPOINT active_record_1
9413
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9414
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9415
+  (0.1ms) SAVEPOINT active_record_1
9416
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9418
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9419
+  (0.4ms) rollback transaction
9420
+  (0.1ms) begin transaction
9421
+ ------------------------------------------------------------------
9422
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
9423
+ ------------------------------------------------------------------
9424
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9425
+  (3.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9426
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9427
+  (0.1ms) SAVEPOINT active_record_1
9428
+ SQL (11.6ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9429
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9430
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9431
+  (0.1ms) rollback transaction
9432
+  (0.1ms) begin transaction
9433
+ ------------------------------------------------------
9434
+ RemotePartial::BuilderTest: test_build_with_http_error
9435
+ ------------------------------------------------------
9436
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9437
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9438
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9439
+  (0.1ms) SAVEPOINT active_record_1
9440
+ SQL (2.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9442
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9443
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9444
+  (0.2ms) rollback transaction
9445
+  (0.1ms) begin transaction
9446
+ ---------------------------------------------------------
9447
+ RemotePartial::BuilderTest: test_create_or_update_partial
9448
+ ---------------------------------------------------------
9449
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9450
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9451
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9452
+  (0.2ms) SAVEPOINT active_record_1
9453
+ SQL (0.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9455
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9456
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9457
+  (0.2ms) rollback transaction
9458
+  (0.1ms) begin transaction
9459
+ -----------------------------------------------------------------------------------
9460
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
9461
+ -----------------------------------------------------------------------------------
9462
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9463
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9464
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9465
+  (0.1ms) SAVEPOINT active_record_1
9466
+ SQL (0.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9468
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9469
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9470
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9471
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9472
+  (0.1ms) SAVEPOINT active_record_1
9473
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233 [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9475
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9476
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9477
+  (10.3ms) rollback transaction
9478
+  (0.1ms) begin transaction
9479
+ ----------------------------------------------------------------------------
9480
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
9481
+ ----------------------------------------------------------------------------
9482
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9483
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9484
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9485
+  (0.1ms) SAVEPOINT active_record_1
9486
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9488
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9489
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9490
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9491
+  (0.3ms) rollback transaction
9492
+  (0.1ms) begin transaction
9493
+ ----------------------------------------------------------------
9494
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
9495
+ ----------------------------------------------------------------
9496
+  (0.1ms) rollback transaction
9497
+  (0.1ms) begin transaction
9498
+ -------------------------------------------------
9499
+ RemotePartial::PartialTest: test_output_file_name
9500
+ -------------------------------------------------
9501
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9502
+  (0.1ms) rollback transaction
9503
+  (0.1ms) begin transaction
9504
+ ------------------------------------------------------------------
9505
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
9506
+ ------------------------------------------------------------------
9507
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9508
+  (0.1ms) SAVEPOINT active_record_1
9509
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9511
+  (4.7ms) rollback transaction
9512
+  (0.1ms) begin transaction
9513
+ --------------------------------------------------------
9514
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
9515
+ --------------------------------------------------------
9516
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9517
+  (0.1ms) SAVEPOINT active_record_1
9518
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9520
+  (0.3ms) rollback transaction
9521
+  (0.1ms) begin transaction
9522
+ --------------------------------------------
9523
+ RemotePartial::PartialTest: test_update_file
9524
+ --------------------------------------------
9525
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9526
+  (0.1ms) rollback transaction
9527
+  (0.1ms) begin transaction
9528
+ ------------------------------------------------------------------------
9529
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
9530
+ ------------------------------------------------------------------------
9531
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9532
+  (0.1ms) SAVEPOINT active_record_1
9533
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9534
+  (0.3ms) RELEASE SAVEPOINT active_record_1
9535
+  (0.3ms) rollback transaction
9536
+  (0.1ms) begin transaction
9537
+ ------------------------------------------------
9538
+ RemotePartial::PartialTest: test_update_stale_at
9539
+ ------------------------------------------------
9540
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9541
+  (0.3ms) SAVEPOINT active_record_1
9542
+ SQL (28.5ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9544
+  (2.0ms) rollback transaction
9545
+  (0.1ms) begin transaction
9546
+ --------------------------------------------------
9547
+ RemotePartial::PartialTest: test_update_stale_file
9548
+ --------------------------------------------------
9549
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9550
+  (0.1ms) rollback transaction
9551
+  (0.3ms) begin transaction
9552
+ -----------------------------------------------------------------
9553
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
9554
+ -----------------------------------------------------------------
9555
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9556
+  (0.1ms) SAVEPOINT active_record_1
9557
+ SQL (1.2ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:46:50 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
9558
+  (0.8ms) RELEASE SAVEPOINT active_record_1
9559
+  (1.9ms) rollback transaction
9560
+  (0.1ms) begin transaction
9561
+ -----------------------------------------------------------
9562
+ RemotePartial::ResourceManagerTest: test_connection_failure
9563
+ -----------------------------------------------------------
9564
+  (0.1ms) rollback transaction
9565
+  (0.1ms) begin transaction
9566
+ ------------------------------------------------------------------------------
9567
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
9568
+ ------------------------------------------------------------------------------
9569
+  (0.1ms) rollback transaction
9570
+  (0.1ms) begin transaction
9571
+ -------------------------------------------------
9572
+ RemotePartial::ResourceManagerTest: test_get_page
9573
+ -------------------------------------------------
9574
+  (0.1ms) rollback transaction
9575
+  (0.1ms) begin transaction
9576
+ ------------------------------------------------
9577
+ RemotePartial::ResourceManagerTest: test_get_raw
9578
+ ------------------------------------------------
9579
+  (0.1ms) rollback transaction
9580
+  (0.1ms) begin transaction
9581
+ ---------------------------------------------
9582
+ RemotePartial::ResourceManagerTest: test_html
9583
+ ---------------------------------------------
9584
+  (0.1ms) rollback transaction
9585
+  (0.1ms) begin transaction
9586
+ --------------------------------------------------------
9587
+ RemotePartial::ResourceManagerTest: test_html_with_limit
9588
+ --------------------------------------------------------
9589
+  (0.1ms) rollback transaction
9590
+  (0.1ms) begin transaction
9591
+ --------------------------------------------------------------------------------------
9592
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
9593
+ --------------------------------------------------------------------------------------
9594
+  (0.1ms) rollback transaction
9595
+  (0.1ms) begin transaction
9596
+ --------------------------------------------------
9597
+ RemotePartial::ResourceManagerTest: test_output_to
9598
+ --------------------------------------------------
9599
+  (0.1ms) rollback transaction
9600
+  (0.1ms) begin transaction
9601
+ ---------------------------------------------
9602
+ RemotePartial::ResourceManagerTest: test_stub
9603
+ ---------------------------------------------
9604
+  (0.1ms) rollback transaction
9605
+  (0.1ms) begin transaction
9606
+ ------------------------------
9607
+ RemotePartialTest: test_define
9608
+ ------------------------------
9609
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9610
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9611
+  (0.1ms) SAVEPOINT active_record_1
9612
+ SQL (0.5ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9614
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9615
+
9616
+ You can stub this request with the following snippet:
9617
+
9618
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
9619
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9620
+ to_return(:status => 200, :body => "", :headers => {})
9621
+
9622
+ ============================================================>
9623
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9624
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9625
+  (0.2ms) rollback transaction
9626
+  (0.1ms) begin transaction
9627
+ -----------------------------
9628
+ RemotePartialTest: test_truth
9629
+ -----------------------------
9630
+  (0.1ms) rollback transaction
9631
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9632
+  (0.1ms) begin transaction
9633
+  (0.1ms) commit transaction
9634
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9635
+
9636
+ You can stub this request with the following snippet:
9637
+
9638
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
9639
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9640
+ to_return(:status => 200, :body => "", :headers => {})
9641
+
9642
+ ============================================================>
9643
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9644
+  (0.1ms) begin transaction
9645
+  (0.1ms) commit transaction
9646
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9647
+
9648
+ You can stub this request with the following snippet:
9649
+
9650
+ stub_request(:get, "http://www.ruby-lang.org/en/").
9651
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9652
+ to_return(:status => 200, :body => "", :headers => {})
9653
+
9654
+ ============================================================>
9655
+  (0.4ms) begin transaction
9656
+ -------------------------------
9657
+ DemosControllerTest: test_index
9658
+ -------------------------------
9659
+ Processing by DemosController#index as HTML
9660
+ Rendered demos/index.html.erb within layouts/application (1.2ms)
9661
+ Completed 200 OK in 19ms (Views: 9.1ms | ActiveRecord: 0.0ms)
9662
+  (0.1ms) rollback transaction
9663
+  (0.1ms) begin transaction
9664
+ ------------------------------------
9665
+ DemosControllerTest: test_show_fixed
9666
+ ------------------------------------
9667
+ Processing by DemosController#show as HTML
9668
+ Parameters: {"id"=>"fixed"}
9669
+ Rendered remote_partials/_fixed.html.erb (0.5ms)
9670
+ Rendered demos/_fixed.html.erb (2.4ms)
9671
+ Completed 200 OK in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms)
9672
+  (0.1ms) rollback transaction
9673
+  (0.1ms) begin transaction
9674
+ -----------------------------------------------------------
9675
+ DemosHelperTest: test_render_remote_partial_with_no_partial
9676
+ -----------------------------------------------------------
9677
+  (0.1ms) rollback transaction
9678
+  (0.1ms) begin transaction
9679
+ --------------------------------------
9680
+ RemotePartial::BuilderTest: test_build
9681
+ --------------------------------------
9682
+ RemotePartial::Partial Load (4.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9683
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9684
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9685
+  (0.1ms) SAVEPOINT active_record_1
9686
+ SQL (3.2ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9688
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9689
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9690
+  (0.4ms) rollback transaction
9691
+  (0.1ms) begin transaction
9692
+ ------------------------------------------------------------
9693
+ RemotePartial::BuilderTest: test_build_with_existing_partial
9694
+ ------------------------------------------------------------
9695
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9696
+  (0.1ms) SAVEPOINT active_record_1
9697
+ SQL (0.5ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9699
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9700
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9701
+  (0.2ms) SAVEPOINT active_record_1
9702
+ SQL (0.4ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9703
+  (8.8ms) RELEASE SAVEPOINT active_record_1
9704
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9705
+  (0.3ms) rollback transaction
9706
+  (0.2ms) begin transaction
9707
+ ------------------------------------------------------------------
9708
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
9709
+ ------------------------------------------------------------------
9710
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9711
+  (8.3ms) SELECT COUNT(*) FROM "remote_partial_partials"
9712
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9713
+  (0.1ms) SAVEPOINT active_record_1
9714
+ SQL (0.7ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9716
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9717
+  (0.3ms) rollback transaction
9718
+  (0.3ms) begin transaction
9719
+ ------------------------------------------------------
9720
+ RemotePartial::BuilderTest: test_build_with_http_error
9721
+ ------------------------------------------------------
9722
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9723
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9724
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9725
+  (0.1ms) SAVEPOINT active_record_1
9726
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9728
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9729
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9730
+  (0.3ms) rollback transaction
9731
+  (0.1ms) begin transaction
9732
+ ---------------------------------------------------------
9733
+ RemotePartial::BuilderTest: test_create_or_update_partial
9734
+ ---------------------------------------------------------
9735
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9736
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9737
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9738
+  (0.1ms) SAVEPOINT active_record_1
9739
+ SQL (0.4ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9741
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9742
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9743
+  (0.1ms) rollback transaction
9744
+  (0.1ms) begin transaction
9745
+ -----------------------------------------------------------------------------------
9746
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
9747
+ -----------------------------------------------------------------------------------
9748
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9749
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9750
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9751
+  (0.1ms) SAVEPOINT active_record_1
9752
+ SQL (0.3ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["name", "foo"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9754
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9755
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9756
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9757
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9758
+  (0.1ms) SAVEPOINT active_record_1
9759
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233 [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9761
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9762
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9763
+  (0.3ms) rollback transaction
9764
+  (0.1ms) begin transaction
9765
+ ----------------------------------------------------------------------------
9766
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
9767
+ ----------------------------------------------------------------------------
9768
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9769
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9770
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9771
+  (0.1ms) SAVEPOINT active_record_1
9772
+ SQL (0.3ms) UPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9774
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
9775
+  (0.3ms) SELECT COUNT(*) FROM "remote_partial_partials"
9776
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9777
+  (0.3ms) rollback transaction
9778
+  (1.3ms) begin transaction
9779
+ ----------------------------------------------------------------
9780
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
9781
+ ----------------------------------------------------------------
9782
+  (0.1ms) rollback transaction
9783
+  (0.1ms) begin transaction
9784
+ -------------------------------------------------
9785
+ RemotePartial::PartialTest: test_output_file_name
9786
+ -------------------------------------------------
9787
+ RemotePartial::Partial Load (0.3ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9788
+  (0.1ms) rollback transaction
9789
+  (0.1ms) begin transaction
9790
+ ------------------------------------------------------------------
9791
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
9792
+ ------------------------------------------------------------------
9793
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9794
+  (0.2ms) SAVEPOINT active_record_1
9795
+ SQL (2.0ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9797
+  (0.4ms) rollback transaction
9798
+  (0.2ms) begin transaction
9799
+ --------------------------------------------------------
9800
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
9801
+ --------------------------------------------------------
9802
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9803
+  (4.2ms) SAVEPOINT active_record_1
9804
+ SQL (1.2ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9806
+  (0.5ms) rollback transaction
9807
+  (0.1ms) begin transaction
9808
+ --------------------------------------------
9809
+ RemotePartial::PartialTest: test_update_file
9810
+ --------------------------------------------
9811
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9812
+  (0.1ms) rollback transaction
9813
+  (0.1ms) begin transaction
9814
+ ------------------------------------------------------------------------
9815
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
9816
+ ------------------------------------------------------------------------
9817
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9818
+  (0.1ms) SAVEPOINT active_record_1
9819
+ SQL (1.0ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9821
+  (0.6ms) rollback transaction
9822
+  (0.1ms) begin transaction
9823
+ ------------------------------------------------
9824
+ RemotePartial::PartialTest: test_update_stale_at
9825
+ ------------------------------------------------
9826
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9827
+  (0.1ms) SAVEPOINT active_record_1
9828
+ SQL (1.7ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9830
+  (0.9ms) rollback transaction
9831
+  (0.1ms) begin transaction
9832
+ --------------------------------------------------
9833
+ RemotePartial::PartialTest: test_update_stale_file
9834
+ --------------------------------------------------
9835
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9836
+  (0.1ms) rollback transaction
9837
+  (0.1ms) begin transaction
9838
+ -----------------------------------------------------------------
9839
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
9840
+ -----------------------------------------------------------------
9841
+ RemotePartial::Partial Load (0.2ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
9842
+  (0.2ms) SAVEPOINT active_record_1
9843
+ SQL (1.2ms) UPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1 [["stale_at", Tue, 09 Jul 2013 10:49:24 UTC +00:00], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
9844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9845
+  (0.4ms) rollback transaction
9846
+  (0.1ms) begin transaction
9847
+ -----------------------------------------------------------
9848
+ RemotePartial::ResourceManagerTest: test_connection_failure
9849
+ -----------------------------------------------------------
9850
+  (0.1ms) rollback transaction
9851
+  (0.1ms) begin transaction
9852
+ ------------------------------------------------------------------------------
9853
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
9854
+ ------------------------------------------------------------------------------
9855
+  (0.2ms) rollback transaction
9856
+  (0.1ms) begin transaction
9857
+ -------------------------------------------------
9858
+ RemotePartial::ResourceManagerTest: test_get_page
9859
+ -------------------------------------------------
9860
+  (0.1ms) rollback transaction
9861
+  (0.1ms) begin transaction
9862
+ ------------------------------------------------
9863
+ RemotePartial::ResourceManagerTest: test_get_raw
9864
+ ------------------------------------------------
9865
+  (0.1ms) rollback transaction
9866
+  (0.1ms) begin transaction
9867
+ ---------------------------------------------
9868
+ RemotePartial::ResourceManagerTest: test_html
9869
+ ---------------------------------------------
9870
+  (0.1ms) rollback transaction
9871
+  (0.1ms) begin transaction
9872
+ --------------------------------------------------------
9873
+ RemotePartial::ResourceManagerTest: test_html_with_limit
9874
+ --------------------------------------------------------
9875
+  (0.1ms) rollback transaction
9876
+  (0.1ms) begin transaction
9877
+ --------------------------------------------------------------------------------------
9878
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
9879
+ --------------------------------------------------------------------------------------
9880
+  (0.1ms) rollback transaction
9881
+  (0.1ms) begin transaction
9882
+ --------------------------------------------------
9883
+ RemotePartial::ResourceManagerTest: test_output_to
9884
+ --------------------------------------------------
9885
+  (0.1ms) rollback transaction
9886
+  (0.1ms) begin transaction
9887
+ ---------------------------------------------
9888
+ RemotePartial::ResourceManagerTest: test_stub
9889
+ ---------------------------------------------
9890
+  (0.5ms) rollback transaction
9891
+  (0.1ms) begin transaction
9892
+ ------------------------------
9893
+ RemotePartialTest: test_define
9894
+ ------------------------------
9895
+  (0.2ms) SELECT COUNT(*) FROM "remote_partial_partials"
9896
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
9897
+  (0.1ms) SAVEPOINT active_record_1
9898
+ SQL (2.2ms) INSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["name", "wcc"], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00], ["url", "http://www.warwickshire.gov.uk"]]
9899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9900
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
9901
+
9902
+ You can stub this request with the following snippet:
9903
+
9904
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
9905
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
9906
+ to_return(:status => 200, :body => "", :headers => {})
9907
+
9908
+ ============================================================>
9909
+  (0.1ms) SELECT COUNT(*) FROM "remote_partial_partials"
9910
+ RemotePartial::Partial Load (0.1ms) SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
9911
+  (0.4ms) rollback transaction
9912
+  (0.1ms) begin transaction
9913
+ -----------------------------
9914
+ RemotePartialTest: test_truth
9915
+ -----------------------------
9916
+  (0.1ms) rollback transaction