remote_partial 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/remote_partial/version.rb +15 -1
- data/lib/remote_partial.rb +10 -7
- data/test/dummy/app/views/remote_partials/_clock.html.erb +1 -1
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/environments/test.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +778 -0
- data/test/dummy/log/test.log +2814 -0
- data/test/dummy/test/unit/helpers/demos_helper_test.rb +9 -2
- data/test/test_helper.rb +2 -7
- data/test/unit/remote_partial/builder_test.rb +0 -4
- data/test/unit/remote_partial/partial_test.rb +0 -4
- data/test/unit/remote_partial/resource_manager_test.rb +0 -4
- metadata +2 -20
- data/test/dummy/app/views/remote_partials/_wcc.html.erb +0 -749
data/test/dummy/log/test.log
CHANGED
@@ -7100,3 +7100,2817 @@ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTP
|
|
7100
7100
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7101
7101
|
[1m[35m (0.1ms)[0m begin transaction
|
7102
7102
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7103
|
+
Connecting to database specified by database.yml
|
7104
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' LIMIT 1[0m
|
7105
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7106
|
+
[1m[36mSQL (24.3ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (227.1ms)[0m commit transaction
|
7108
|
+
[1m[36mRemotePartial::Partial Load (1.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' LIMIT 1[0m
|
7109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7110
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (143.9ms)[0m commit transaction
|
7112
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7113
|
+
[1m[35mFixture Delete (1.6ms)[0m DELETE FROM "remote_partial_partials"
|
7114
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT 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')[0m
|
7115
|
+
[1m[35m (159.3ms)[0m commit transaction
|
7116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7129
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7130
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7131
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7132
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7133
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
7134
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7135
|
+
[1m[35mSQL (1.7ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7137
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7138
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7139
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7140
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7141
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7142
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7143
|
+
[1m[35m (1.1ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7145
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7146
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
7147
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7148
|
+
[1m[36m (1.8ms)[0m [1mUPDATE "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[0m
|
7149
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7150
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7151
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
7152
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7153
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7154
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7155
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1
|
7156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7157
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7159
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7160
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7162
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7163
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7164
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
7165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7166
|
+
[1m[36m (1.3ms)[0m [1mUPDATE "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[0m
|
7167
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7168
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
7169
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7170
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7172
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7173
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7174
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
7175
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7176
|
+
[1m[35mSQL (2.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7178
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7179
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7180
|
+
[1m[35m (3.2ms)[0m rollback transaction
|
7181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7182
|
+
[1m[35mRemotePartial::Partial Load (1.0ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7183
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7184
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1
|
7185
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7186
|
+
[1m[35mSQL (1.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7188
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7189
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7190
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7191
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' LIMIT 1[0m
|
7192
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7193
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = 'other', "updated_at" = '2013-07-05 15:05:35.837899' WHERE "remote_partial_partials"."id" = 231[0m
|
7194
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7195
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7196
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
7197
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7199
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7200
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7201
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' LIMIT 1[0m
|
7202
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7203
|
+
[1m[36m (1.0ms)[0m [1mUPDATE "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[0m
|
7204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
7205
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
7206
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7207
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7208
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
7209
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7210
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7211
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7212
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7213
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7214
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7215
|
+
[1m[35mRemotePartial::Partial Load (0.8ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7216
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7217
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7219
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7221
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7222
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7223
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7225
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
7226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7227
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7228
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7229
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7230
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7231
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
7232
|
+
[1m[36m (1.0ms)[0m [1mUPDATE "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[0m
|
7233
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7234
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
7235
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7236
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7237
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7238
|
+
[1m[36m (0.9ms)[0m [1mUPDATE "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[0m
|
7239
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7240
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
7241
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7242
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7243
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7244
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7245
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7246
|
+
[1m[36m (1.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
7247
|
+
[1m[35m (1.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7249
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7250
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7251
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7253
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7257
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7259
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7260
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7261
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7262
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7263
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7265
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7267
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7269
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7270
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' LIMIT 1[0m
|
7271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7272
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "stale_at", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7274
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials" [0m
|
7275
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
7276
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7277
|
+
[1m[35m (0.0ms)[0m begin transaction
|
7278
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7279
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
7280
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7281
|
+
[1m[36mSQL (37.2ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (197.9ms)[0m 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
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
7293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7294
|
+
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "criteria", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (139.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7324
|
+
-----------------------------------------------------------
|
7325
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
7326
|
+
-----------------------------------------------------------
|
7327
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7328
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7329
|
+
--------------------------------------
|
7330
|
+
RemotePartial::BuilderTest: test_build
|
7331
|
+
--------------------------------------
|
7332
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7333
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7334
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7335
|
+
------------------------------------------------------------
|
7336
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
7337
|
+
------------------------------------------------------------
|
7338
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7340
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7341
|
+
------------------------------------------------------------------
|
7342
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
7343
|
+
------------------------------------------------------------------
|
7344
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7345
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7347
|
+
------------------------------------------------------
|
7348
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
7349
|
+
------------------------------------------------------
|
7350
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7351
|
+
[1m[35m (2.6ms)[0m rollback transaction
|
7352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7353
|
+
---------------------------------------------------------
|
7354
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
7355
|
+
---------------------------------------------------------
|
7356
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7357
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7359
|
+
-----------------------------------------------------------------------------------
|
7360
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
7361
|
+
-----------------------------------------------------------------------------------
|
7362
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7364
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7365
|
+
----------------------------------------------------------------------------
|
7366
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
7367
|
+
----------------------------------------------------------------------------
|
7368
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7369
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7371
|
+
----------------------------------------------------------------
|
7372
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
7373
|
+
----------------------------------------------------------------
|
7374
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7375
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7376
|
+
-------------------------------------------------
|
7377
|
+
RemotePartial::PartialTest: test_output_file_name
|
7378
|
+
-------------------------------------------------
|
7379
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7380
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7381
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7382
|
+
------------------------------------------------------------------
|
7383
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
7384
|
+
------------------------------------------------------------------
|
7385
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7386
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7388
|
+
--------------------------------------------------------
|
7389
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
7390
|
+
--------------------------------------------------------
|
7391
|
+
[1m[36mRemotePartial::Partial Load (1.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7392
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7393
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7394
|
+
--------------------------------------------
|
7395
|
+
RemotePartial::PartialTest: test_update_file
|
7396
|
+
--------------------------------------------
|
7397
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7398
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7399
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7400
|
+
------------------------------------------------------------------------
|
7401
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
7402
|
+
------------------------------------------------------------------------
|
7403
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7404
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7406
|
+
------------------------------------------------
|
7407
|
+
RemotePartial::PartialTest: test_update_stale_at
|
7408
|
+
------------------------------------------------
|
7409
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7410
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
7411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7412
|
+
--------------------------------------------------
|
7413
|
+
RemotePartial::PartialTest: test_update_stale_file
|
7414
|
+
--------------------------------------------------
|
7415
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7416
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7417
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7418
|
+
-----------------------------------------------------------------
|
7419
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
7420
|
+
-----------------------------------------------------------------
|
7421
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7422
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
7423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7424
|
+
-----------------------------------------------------------
|
7425
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
7426
|
+
-----------------------------------------------------------
|
7427
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7428
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7429
|
+
------------------------------------------------------------------------------
|
7430
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
7431
|
+
------------------------------------------------------------------------------
|
7432
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7434
|
+
-------------------------------------------------
|
7435
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
7436
|
+
-------------------------------------------------
|
7437
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7438
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7439
|
+
------------------------------------------------
|
7440
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
7441
|
+
------------------------------------------------
|
7442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7443
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7444
|
+
---------------------------------------------
|
7445
|
+
RemotePartial::ResourceManagerTest: test_html
|
7446
|
+
---------------------------------------------
|
7447
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7448
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7449
|
+
--------------------------------------------------------
|
7450
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
7451
|
+
--------------------------------------------------------
|
7452
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7454
|
+
--------------------------------------------------------------------------------------
|
7455
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
7456
|
+
--------------------------------------------------------------------------------------
|
7457
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7459
|
+
--------------------------------------------------
|
7460
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
7461
|
+
--------------------------------------------------
|
7462
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7463
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7464
|
+
---------------------------------------------
|
7465
|
+
RemotePartial::ResourceManagerTest: test_stub
|
7466
|
+
---------------------------------------------
|
7467
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7468
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7469
|
+
------------------------------
|
7470
|
+
RemotePartialTest: test_define
|
7471
|
+
------------------------------
|
7472
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
7473
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7474
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7475
|
+
[1m[35mSQL (2.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7477
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7478
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7479
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
7480
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7481
|
+
-----------------------------
|
7482
|
+
RemotePartialTest: test_truth
|
7483
|
+
-----------------------------
|
7484
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7485
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
7486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7487
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7499
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7517
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7527
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7528
|
+
-----------------------------------------------------------
|
7529
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
7530
|
+
-----------------------------------------------------------
|
7531
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7532
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7533
|
+
--------------------------------------
|
7534
|
+
RemotePartial::BuilderTest: test_build
|
7535
|
+
--------------------------------------
|
7536
|
+
[1m[35mRemotePartial::Partial Load (12.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7537
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7538
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7539
|
+
------------------------------------------------------------
|
7540
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
7541
|
+
------------------------------------------------------------
|
7542
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7543
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7544
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7545
|
+
------------------------------------------------------------------
|
7546
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
7547
|
+
------------------------------------------------------------------
|
7548
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7549
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7550
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7551
|
+
------------------------------------------------------
|
7552
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
7553
|
+
------------------------------------------------------
|
7554
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7555
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7557
|
+
---------------------------------------------------------
|
7558
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
7559
|
+
---------------------------------------------------------
|
7560
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7561
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7562
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7563
|
+
-----------------------------------------------------------------------------------
|
7564
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
7565
|
+
-----------------------------------------------------------------------------------
|
7566
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7567
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7569
|
+
----------------------------------------------------------------------------
|
7570
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
7571
|
+
----------------------------------------------------------------------------
|
7572
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7573
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7574
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7575
|
+
----------------------------------------------------------------
|
7576
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
7577
|
+
----------------------------------------------------------------
|
7578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7580
|
+
-------------------------------------------------
|
7581
|
+
RemotePartial::PartialTest: test_output_file_name
|
7582
|
+
-------------------------------------------------
|
7583
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7584
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7586
|
+
------------------------------------------------------------------
|
7587
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
7588
|
+
------------------------------------------------------------------
|
7589
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7590
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7591
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7592
|
+
--------------------------------------------------------
|
7593
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
7594
|
+
--------------------------------------------------------
|
7595
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7596
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7597
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7598
|
+
--------------------------------------------
|
7599
|
+
RemotePartial::PartialTest: test_update_file
|
7600
|
+
--------------------------------------------
|
7601
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7602
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7603
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7604
|
+
------------------------------------------------------------------------
|
7605
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
7606
|
+
------------------------------------------------------------------------
|
7607
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7609
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7610
|
+
------------------------------------------------
|
7611
|
+
RemotePartial::PartialTest: test_update_stale_at
|
7612
|
+
------------------------------------------------
|
7613
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7614
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7615
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7616
|
+
--------------------------------------------------
|
7617
|
+
RemotePartial::PartialTest: test_update_stale_file
|
7618
|
+
--------------------------------------------------
|
7619
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7620
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7621
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7622
|
+
-----------------------------------------------------------------
|
7623
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
7624
|
+
-----------------------------------------------------------------
|
7625
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7626
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7627
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7628
|
+
-----------------------------------------------------------
|
7629
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
7630
|
+
-----------------------------------------------------------
|
7631
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7633
|
+
------------------------------------------------------------------------------
|
7634
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
7635
|
+
------------------------------------------------------------------------------
|
7636
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7637
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7638
|
+
-------------------------------------------------
|
7639
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
7640
|
+
-------------------------------------------------
|
7641
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7643
|
+
------------------------------------------------
|
7644
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
7645
|
+
------------------------------------------------
|
7646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7648
|
+
---------------------------------------------
|
7649
|
+
RemotePartial::ResourceManagerTest: test_html
|
7650
|
+
---------------------------------------------
|
7651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7653
|
+
--------------------------------------------------------
|
7654
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
7655
|
+
--------------------------------------------------------
|
7656
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7657
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7658
|
+
--------------------------------------------------------------------------------------
|
7659
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
7660
|
+
--------------------------------------------------------------------------------------
|
7661
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7663
|
+
--------------------------------------------------
|
7664
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
7665
|
+
--------------------------------------------------
|
7666
|
+
[1m[36m (2.4ms)[0m [1mrollback transaction[0m
|
7667
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7668
|
+
---------------------------------------------
|
7669
|
+
RemotePartial::ResourceManagerTest: test_stub
|
7670
|
+
---------------------------------------------
|
7671
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7673
|
+
------------------------------
|
7674
|
+
RemotePartialTest: test_define
|
7675
|
+
------------------------------
|
7676
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
7677
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7678
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7679
|
+
[1m[35mSQL (6.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7681
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7682
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7683
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
7684
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7685
|
+
-----------------------------
|
7686
|
+
RemotePartialTest: test_truth
|
7687
|
+
-----------------------------
|
7688
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7689
|
+
[1m[36mRemotePartial::Partial Load (0.5ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
7690
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7691
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
7692
|
+
[1m[35mRemotePartial::Partial Load (0.4ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7693
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7694
|
+
[1m[35m (0.1ms)[0m commit transaction
|
7695
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7703
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7713
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7714
|
+
-----------------------------------------------------------
|
7715
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
7716
|
+
-----------------------------------------------------------
|
7717
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7718
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7719
|
+
--------------------------------------
|
7720
|
+
RemotePartial::BuilderTest: test_build
|
7721
|
+
--------------------------------------
|
7722
|
+
[1m[35mRemotePartial::Partial Load (3.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7723
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7724
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7725
|
+
------------------------------------------------------------
|
7726
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
7727
|
+
------------------------------------------------------------
|
7728
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7729
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7731
|
+
------------------------------------------------------------------
|
7732
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
7733
|
+
------------------------------------------------------------------
|
7734
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7735
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7736
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7737
|
+
------------------------------------------------------
|
7738
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
7739
|
+
------------------------------------------------------
|
7740
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7741
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7743
|
+
---------------------------------------------------------
|
7744
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
7745
|
+
---------------------------------------------------------
|
7746
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7747
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7748
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7749
|
+
-----------------------------------------------------------------------------------
|
7750
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
7751
|
+
-----------------------------------------------------------------------------------
|
7752
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7755
|
+
----------------------------------------------------------------------------
|
7756
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
7757
|
+
----------------------------------------------------------------------------
|
7758
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7759
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7760
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7761
|
+
----------------------------------------------------------------
|
7762
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
7763
|
+
----------------------------------------------------------------
|
7764
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7765
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7766
|
+
-------------------------------------------------
|
7767
|
+
RemotePartial::PartialTest: test_output_file_name
|
7768
|
+
-------------------------------------------------
|
7769
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7770
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7772
|
+
------------------------------------------------------------------
|
7773
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
7774
|
+
------------------------------------------------------------------
|
7775
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7776
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
7777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7778
|
+
--------------------------------------------------------
|
7779
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
7780
|
+
--------------------------------------------------------
|
7781
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7782
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7783
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7784
|
+
--------------------------------------------
|
7785
|
+
RemotePartial::PartialTest: test_update_file
|
7786
|
+
--------------------------------------------
|
7787
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7788
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7790
|
+
------------------------------------------------------------------------
|
7791
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
7792
|
+
------------------------------------------------------------------------
|
7793
|
+
[1m[36mRemotePartial::Partial Load (3.0ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7794
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7795
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7796
|
+
------------------------------------------------
|
7797
|
+
RemotePartial::PartialTest: test_update_stale_at
|
7798
|
+
------------------------------------------------
|
7799
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7800
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7801
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7802
|
+
--------------------------------------------------
|
7803
|
+
RemotePartial::PartialTest: test_update_stale_file
|
7804
|
+
--------------------------------------------------
|
7805
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7806
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7807
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7808
|
+
-----------------------------------------------------------------
|
7809
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
7810
|
+
-----------------------------------------------------------------
|
7811
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7812
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7813
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7814
|
+
-----------------------------------------------------------
|
7815
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
7816
|
+
-----------------------------------------------------------
|
7817
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7819
|
+
------------------------------------------------------------------------------
|
7820
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
7821
|
+
------------------------------------------------------------------------------
|
7822
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7823
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7824
|
+
-------------------------------------------------
|
7825
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
7826
|
+
-------------------------------------------------
|
7827
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7828
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7829
|
+
------------------------------------------------
|
7830
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
7831
|
+
------------------------------------------------
|
7832
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7833
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7834
|
+
---------------------------------------------
|
7835
|
+
RemotePartial::ResourceManagerTest: test_html
|
7836
|
+
---------------------------------------------
|
7837
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7839
|
+
--------------------------------------------------------
|
7840
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
7841
|
+
--------------------------------------------------------
|
7842
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7844
|
+
--------------------------------------------------------------------------------------
|
7845
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
7846
|
+
--------------------------------------------------------------------------------------
|
7847
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7849
|
+
--------------------------------------------------
|
7850
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
7851
|
+
--------------------------------------------------
|
7852
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
7853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7854
|
+
---------------------------------------------
|
7855
|
+
RemotePartial::ResourceManagerTest: test_stub
|
7856
|
+
---------------------------------------------
|
7857
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7859
|
+
------------------------------
|
7860
|
+
RemotePartialTest: test_define
|
7861
|
+
------------------------------
|
7862
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
7863
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7864
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7865
|
+
[1m[35mSQL (10.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7867
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
7868
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
7869
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
7870
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7871
|
+
-----------------------------
|
7872
|
+
RemotePartialTest: test_truth
|
7873
|
+
-----------------------------
|
7874
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7875
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
7876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7877
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
7888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7889
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7907
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7917
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7918
|
+
-----------------------------------------------------------
|
7919
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
7920
|
+
-----------------------------------------------------------
|
7921
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7922
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7923
|
+
--------------------------------------
|
7924
|
+
RemotePartial::BuilderTest: test_build
|
7925
|
+
--------------------------------------
|
7926
|
+
[1m[35mRemotePartial::Partial Load (6.5ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7927
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7929
|
+
------------------------------------------------------------
|
7930
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
7931
|
+
------------------------------------------------------------
|
7932
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7933
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7934
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7935
|
+
------------------------------------------------------------------
|
7936
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
7937
|
+
------------------------------------------------------------------
|
7938
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7939
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7940
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7941
|
+
------------------------------------------------------
|
7942
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
7943
|
+
------------------------------------------------------
|
7944
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7945
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
7946
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7947
|
+
---------------------------------------------------------
|
7948
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
7949
|
+
---------------------------------------------------------
|
7950
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7951
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7952
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7953
|
+
-----------------------------------------------------------------------------------
|
7954
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
7955
|
+
-----------------------------------------------------------------------------------
|
7956
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7957
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7958
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7959
|
+
----------------------------------------------------------------------------
|
7960
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
7961
|
+
----------------------------------------------------------------------------
|
7962
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7963
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7964
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7965
|
+
----------------------------------------------------------------
|
7966
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
7967
|
+
----------------------------------------------------------------
|
7968
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
7969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7970
|
+
-------------------------------------------------
|
7971
|
+
RemotePartial::PartialTest: test_output_file_name
|
7972
|
+
-------------------------------------------------
|
7973
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7974
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
7975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7976
|
+
------------------------------------------------------------------
|
7977
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
7978
|
+
------------------------------------------------------------------
|
7979
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7980
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7981
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7982
|
+
--------------------------------------------------------
|
7983
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
7984
|
+
--------------------------------------------------------
|
7985
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7986
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7987
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7988
|
+
--------------------------------------------
|
7989
|
+
RemotePartial::PartialTest: test_update_file
|
7990
|
+
--------------------------------------------
|
7991
|
+
[1m[35mRemotePartial::Partial Load (4.0ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
7992
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7993
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7994
|
+
------------------------------------------------------------------------
|
7995
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
7996
|
+
------------------------------------------------------------------------
|
7997
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
7998
|
+
[1m[35m (4.6ms)[0m rollback transaction
|
7999
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8000
|
+
------------------------------------------------
|
8001
|
+
RemotePartial::PartialTest: test_update_stale_at
|
8002
|
+
------------------------------------------------
|
8003
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8004
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8005
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8006
|
+
--------------------------------------------------
|
8007
|
+
RemotePartial::PartialTest: test_update_stale_file
|
8008
|
+
--------------------------------------------------
|
8009
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8012
|
+
-----------------------------------------------------------------
|
8013
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
8014
|
+
-----------------------------------------------------------------
|
8015
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8016
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8017
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8018
|
+
-----------------------------------------------------------
|
8019
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
8020
|
+
-----------------------------------------------------------
|
8021
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8022
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8023
|
+
------------------------------------------------------------------------------
|
8024
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
8025
|
+
------------------------------------------------------------------------------
|
8026
|
+
[1m[36m (2.5ms)[0m [1mrollback transaction[0m
|
8027
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8028
|
+
-------------------------------------------------
|
8029
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
8030
|
+
-------------------------------------------------
|
8031
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8032
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8033
|
+
------------------------------------------------
|
8034
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
8035
|
+
------------------------------------------------
|
8036
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8037
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8038
|
+
---------------------------------------------
|
8039
|
+
RemotePartial::ResourceManagerTest: test_html
|
8040
|
+
---------------------------------------------
|
8041
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8042
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8043
|
+
--------------------------------------------------------
|
8044
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
8045
|
+
--------------------------------------------------------
|
8046
|
+
[1m[36m (4.3ms)[0m [1mrollback transaction[0m
|
8047
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8048
|
+
--------------------------------------------------------------------------------------
|
8049
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
8050
|
+
--------------------------------------------------------------------------------------
|
8051
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8052
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8053
|
+
--------------------------------------------------
|
8054
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
8055
|
+
--------------------------------------------------
|
8056
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8057
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8058
|
+
---------------------------------------------
|
8059
|
+
RemotePartial::ResourceManagerTest: test_stub
|
8060
|
+
---------------------------------------------
|
8061
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
8062
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8063
|
+
------------------------------
|
8064
|
+
RemotePartialTest: test_define
|
8065
|
+
------------------------------
|
8066
|
+
[1m[36m (1.7ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8067
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8068
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
8069
|
+
[1m[35mSQL (3.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8081
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8082
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
8083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8084
|
+
-----------------------------
|
8085
|
+
RemotePartialTest: test_truth
|
8086
|
+
-----------------------------
|
8087
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8088
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8089
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8090
|
+
[1m[36m (0.5ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8101
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8102
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8120
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8130
|
+
[1m[36m (3.0ms)[0m [1mbegin transaction[0m
|
8131
|
+
-----------------------------------------------------------
|
8132
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
8133
|
+
-----------------------------------------------------------
|
8134
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8136
|
+
--------------------------------------
|
8137
|
+
RemotePartial::BuilderTest: test_build
|
8138
|
+
--------------------------------------
|
8139
|
+
[1m[35mRemotePartial::Partial Load (3.6ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8140
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
8141
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8142
|
+
------------------------------------------------------------
|
8143
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
8144
|
+
------------------------------------------------------------
|
8145
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8146
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8147
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8148
|
+
------------------------------------------------------------------
|
8149
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
8150
|
+
------------------------------------------------------------------
|
8151
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8152
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8153
|
+
[1m[35m (0.3ms)[0m begin transaction
|
8154
|
+
------------------------------------------------------
|
8155
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
8156
|
+
------------------------------------------------------
|
8157
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8158
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8159
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8160
|
+
---------------------------------------------------------
|
8161
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
8162
|
+
---------------------------------------------------------
|
8163
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8164
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8166
|
+
-----------------------------------------------------------------------------------
|
8167
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
8168
|
+
-----------------------------------------------------------------------------------
|
8169
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8170
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8171
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8172
|
+
----------------------------------------------------------------------------
|
8173
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
8174
|
+
----------------------------------------------------------------------------
|
8175
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8177
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8178
|
+
----------------------------------------------------------------
|
8179
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
8180
|
+
----------------------------------------------------------------
|
8181
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8183
|
+
-------------------------------------------------
|
8184
|
+
RemotePartial::PartialTest: test_output_file_name
|
8185
|
+
-------------------------------------------------
|
8186
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8187
|
+
[1m[35m (10.9ms)[0m rollback transaction
|
8188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8189
|
+
------------------------------------------------------------------
|
8190
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
8191
|
+
------------------------------------------------------------------
|
8192
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8193
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8195
|
+
--------------------------------------------------------
|
8196
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
8197
|
+
--------------------------------------------------------
|
8198
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8199
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8200
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8201
|
+
--------------------------------------------
|
8202
|
+
RemotePartial::PartialTest: test_update_file
|
8203
|
+
--------------------------------------------
|
8204
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8205
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8206
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8207
|
+
------------------------------------------------------------------------
|
8208
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
8209
|
+
------------------------------------------------------------------------
|
8210
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8211
|
+
[1m[35m (41.3ms)[0m rollback transaction
|
8212
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8213
|
+
------------------------------------------------
|
8214
|
+
RemotePartial::PartialTest: test_update_stale_at
|
8215
|
+
------------------------------------------------
|
8216
|
+
[1m[35mRemotePartial::Partial Load (0.8ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8217
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8219
|
+
--------------------------------------------------
|
8220
|
+
RemotePartial::PartialTest: test_update_stale_file
|
8221
|
+
--------------------------------------------------
|
8222
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8223
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8224
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8225
|
+
-----------------------------------------------------------------
|
8226
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
8227
|
+
-----------------------------------------------------------------
|
8228
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8229
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8231
|
+
-----------------------------------------------------------
|
8232
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
8233
|
+
-----------------------------------------------------------
|
8234
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8236
|
+
------------------------------------------------------------------------------
|
8237
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
8238
|
+
------------------------------------------------------------------------------
|
8239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8241
|
+
-------------------------------------------------
|
8242
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
8243
|
+
-------------------------------------------------
|
8244
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8245
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8246
|
+
------------------------------------------------
|
8247
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
8248
|
+
------------------------------------------------
|
8249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8251
|
+
---------------------------------------------
|
8252
|
+
RemotePartial::ResourceManagerTest: test_html
|
8253
|
+
---------------------------------------------
|
8254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8255
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8256
|
+
--------------------------------------------------------
|
8257
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
8258
|
+
--------------------------------------------------------
|
8259
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8260
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8261
|
+
--------------------------------------------------------------------------------------
|
8262
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
8263
|
+
--------------------------------------------------------------------------------------
|
8264
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8265
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8266
|
+
--------------------------------------------------
|
8267
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
8268
|
+
--------------------------------------------------
|
8269
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8271
|
+
---------------------------------------------
|
8272
|
+
RemotePartial::ResourceManagerTest: test_stub
|
8273
|
+
---------------------------------------------
|
8274
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8276
|
+
------------------------------
|
8277
|
+
RemotePartialTest: test_define
|
8278
|
+
------------------------------
|
8279
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8280
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8281
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8282
|
+
[1m[35mSQL (3.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8294
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8295
|
+
[1m[35m (32.2ms)[0m rollback transaction
|
8296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8297
|
+
-----------------------------
|
8298
|
+
RemotePartialTest: test_truth
|
8299
|
+
-----------------------------
|
8300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8301
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8302
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8303
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8315
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8333
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8344
|
+
-----------------------------------------------------------
|
8345
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
8346
|
+
-----------------------------------------------------------
|
8347
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8348
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8349
|
+
--------------------------------------
|
8350
|
+
RemotePartial::BuilderTest: test_build
|
8351
|
+
--------------------------------------
|
8352
|
+
[1m[35mRemotePartial::Partial Load (13.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8353
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8354
|
+
[1m[35m (0.6ms)[0m begin transaction
|
8355
|
+
------------------------------------------------------------
|
8356
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
8357
|
+
------------------------------------------------------------
|
8358
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8359
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8360
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8361
|
+
------------------------------------------------------------------
|
8362
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
8363
|
+
------------------------------------------------------------------
|
8364
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8365
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8366
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8367
|
+
------------------------------------------------------
|
8368
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
8369
|
+
------------------------------------------------------
|
8370
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8371
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8372
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8373
|
+
---------------------------------------------------------
|
8374
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
8375
|
+
---------------------------------------------------------
|
8376
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8377
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8378
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8379
|
+
-----------------------------------------------------------------------------------
|
8380
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
8381
|
+
-----------------------------------------------------------------------------------
|
8382
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8383
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8385
|
+
----------------------------------------------------------------------------
|
8386
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
8387
|
+
----------------------------------------------------------------------------
|
8388
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8389
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8390
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8391
|
+
----------------------------------------------------------------
|
8392
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
8393
|
+
----------------------------------------------------------------
|
8394
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
8395
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8396
|
+
-------------------------------------------------
|
8397
|
+
RemotePartial::PartialTest: test_output_file_name
|
8398
|
+
-------------------------------------------------
|
8399
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8400
|
+
[1m[35m (8.5ms)[0m rollback transaction
|
8401
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8402
|
+
------------------------------------------------------------------
|
8403
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
8404
|
+
------------------------------------------------------------------
|
8405
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8406
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8407
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8408
|
+
--------------------------------------------------------
|
8409
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
8410
|
+
--------------------------------------------------------
|
8411
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8412
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8413
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8414
|
+
--------------------------------------------
|
8415
|
+
RemotePartial::PartialTest: test_update_file
|
8416
|
+
--------------------------------------------
|
8417
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8418
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8419
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8420
|
+
------------------------------------------------------------------------
|
8421
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
8422
|
+
------------------------------------------------------------------------
|
8423
|
+
[1m[36mRemotePartial::Partial Load (2.6ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8424
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8426
|
+
------------------------------------------------
|
8427
|
+
RemotePartial::PartialTest: test_update_stale_at
|
8428
|
+
------------------------------------------------
|
8429
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8430
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8432
|
+
--------------------------------------------------
|
8433
|
+
RemotePartial::PartialTest: test_update_stale_file
|
8434
|
+
--------------------------------------------------
|
8435
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8436
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8438
|
+
-----------------------------------------------------------------
|
8439
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
8440
|
+
-----------------------------------------------------------------
|
8441
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8443
|
+
[1m[35m (0.4ms)[0m begin transaction
|
8444
|
+
-----------------------------------------------------------
|
8445
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
8446
|
+
-----------------------------------------------------------
|
8447
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8448
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8449
|
+
------------------------------------------------------------------------------
|
8450
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
8451
|
+
------------------------------------------------------------------------------
|
8452
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8454
|
+
-------------------------------------------------
|
8455
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
8456
|
+
-------------------------------------------------
|
8457
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
8458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8459
|
+
------------------------------------------------
|
8460
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
8461
|
+
------------------------------------------------
|
8462
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8463
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8464
|
+
---------------------------------------------
|
8465
|
+
RemotePartial::ResourceManagerTest: test_html
|
8466
|
+
---------------------------------------------
|
8467
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8469
|
+
--------------------------------------------------------
|
8470
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
8471
|
+
--------------------------------------------------------
|
8472
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8473
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8474
|
+
--------------------------------------------------------------------------------------
|
8475
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
8476
|
+
--------------------------------------------------------------------------------------
|
8477
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8479
|
+
--------------------------------------------------
|
8480
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
8481
|
+
--------------------------------------------------
|
8482
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8483
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8484
|
+
---------------------------------------------
|
8485
|
+
RemotePartial::ResourceManagerTest: test_stub
|
8486
|
+
---------------------------------------------
|
8487
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
8488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8489
|
+
------------------------------
|
8490
|
+
RemotePartialTest: test_define
|
8491
|
+
------------------------------
|
8492
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8493
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8495
|
+
[1m[35mSQL (3.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8507
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8508
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
8509
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8510
|
+
-----------------------------
|
8511
|
+
RemotePartialTest: test_truth
|
8512
|
+
-----------------------------
|
8513
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8514
|
+
[1m[36mRemotePartial::Partial Load (0.6ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8515
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8516
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (1.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8527
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8528
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8546
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8557
|
+
-----------------------------------------------------------
|
8558
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
8559
|
+
-----------------------------------------------------------
|
8560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8561
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8562
|
+
--------------------------------------
|
8563
|
+
RemotePartial::BuilderTest: test_build
|
8564
|
+
--------------------------------------
|
8565
|
+
[1m[35mRemotePartial::Partial Load (36.8ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8566
|
+
[1m[36m (2.8ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8567
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8568
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8569
|
+
[1m[35mSQL (10.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8571
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8572
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8573
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
8574
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8575
|
+
------------------------------------------------------------
|
8576
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
8577
|
+
------------------------------------------------------------
|
8578
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8579
|
+
[1m[36m (10.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
8580
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8582
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8583
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8584
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8585
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
|
8586
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8587
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8588
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
8589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8590
|
+
------------------------------------------------------------------
|
8591
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
8592
|
+
------------------------------------------------------------------
|
8593
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8594
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8595
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8596
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8597
|
+
[1m[35mSQL (6.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8599
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8600
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8601
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8602
|
+
------------------------------------------------------
|
8603
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
8604
|
+
------------------------------------------------------
|
8605
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8606
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8607
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8608
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8609
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
|
8610
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8611
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
8612
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8613
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
8614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8615
|
+
---------------------------------------------------------
|
8616
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
8617
|
+
---------------------------------------------------------
|
8618
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8619
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8620
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8621
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8622
|
+
[1m[35mSQL (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8624
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8625
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8626
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8627
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8628
|
+
-----------------------------------------------------------------------------------
|
8629
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
8630
|
+
-----------------------------------------------------------------------------------
|
8631
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8632
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8633
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8634
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8635
|
+
[1m[35mSQL (4.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8637
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8638
|
+
[1m[36mRemotePartial::Partial Load (1.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8639
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8640
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8641
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8642
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233[0m [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
|
8643
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8644
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8645
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
8646
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8648
|
+
----------------------------------------------------------------------------
|
8649
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
8650
|
+
----------------------------------------------------------------------------
|
8651
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8652
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8653
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8654
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8655
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:24:46 UTC +00:00]]
|
8656
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8657
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
8658
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8659
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8660
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
8661
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8662
|
+
----------------------------------------------------------------
|
8663
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
8664
|
+
----------------------------------------------------------------
|
8665
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8666
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8667
|
+
-------------------------------------------------
|
8668
|
+
RemotePartial::PartialTest: test_output_file_name
|
8669
|
+
-------------------------------------------------
|
8670
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8671
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8673
|
+
------------------------------------------------------------------
|
8674
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
8675
|
+
------------------------------------------------------------------
|
8676
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8678
|
+
[1m[35mSQL (14.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8680
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8681
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8682
|
+
--------------------------------------------------------
|
8683
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
8684
|
+
--------------------------------------------------------
|
8685
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8687
|
+
[1m[35mSQL (1.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8689
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8690
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8691
|
+
--------------------------------------------
|
8692
|
+
RemotePartial::PartialTest: test_update_file
|
8693
|
+
--------------------------------------------
|
8694
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8695
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8696
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8697
|
+
------------------------------------------------------------------------
|
8698
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
8699
|
+
------------------------------------------------------------------------
|
8700
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8701
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8702
|
+
[1m[36mSQL (4.8ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
8704
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
8705
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8706
|
+
------------------------------------------------
|
8707
|
+
RemotePartial::PartialTest: test_update_stale_at
|
8708
|
+
------------------------------------------------
|
8709
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8710
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8711
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8713
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
8714
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8715
|
+
--------------------------------------------------
|
8716
|
+
RemotePartial::PartialTest: test_update_stale_file
|
8717
|
+
--------------------------------------------------
|
8718
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8719
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8720
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8721
|
+
-----------------------------------------------------------------
|
8722
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
8723
|
+
-----------------------------------------------------------------
|
8724
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8725
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8726
|
+
[1m[35mSQL (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8728
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8729
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8730
|
+
-----------------------------------------------------------
|
8731
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
8732
|
+
-----------------------------------------------------------
|
8733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8735
|
+
------------------------------------------------------------------------------
|
8736
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
8737
|
+
------------------------------------------------------------------------------
|
8738
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8739
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8740
|
+
-------------------------------------------------
|
8741
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
8742
|
+
-------------------------------------------------
|
8743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8745
|
+
------------------------------------------------
|
8746
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
8747
|
+
------------------------------------------------
|
8748
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8749
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8750
|
+
---------------------------------------------
|
8751
|
+
RemotePartial::ResourceManagerTest: test_html
|
8752
|
+
---------------------------------------------
|
8753
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8754
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8755
|
+
--------------------------------------------------------
|
8756
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
8757
|
+
--------------------------------------------------------
|
8758
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8759
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8760
|
+
--------------------------------------------------------------------------------------
|
8761
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
8762
|
+
--------------------------------------------------------------------------------------
|
8763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8764
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8765
|
+
--------------------------------------------------
|
8766
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
8767
|
+
--------------------------------------------------
|
8768
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8769
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8770
|
+
---------------------------------------------
|
8771
|
+
RemotePartial::ResourceManagerTest: test_stub
|
8772
|
+
---------------------------------------------
|
8773
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8774
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8775
|
+
------------------------------
|
8776
|
+
RemotePartialTest: test_define
|
8777
|
+
------------------------------
|
8778
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8779
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8780
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
8781
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8783
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8784
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
8785
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8786
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8787
|
+
-----------------------------
|
8788
|
+
RemotePartialTest: test_truth
|
8789
|
+
-----------------------------
|
8790
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8791
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8792
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8793
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8805
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8823
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8833
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8834
|
+
-----------------------------------------------------------
|
8835
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
8836
|
+
-----------------------------------------------------------
|
8837
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
8838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8839
|
+
--------------------------------------
|
8840
|
+
RemotePartial::BuilderTest: test_build
|
8841
|
+
--------------------------------------
|
8842
|
+
[1m[35mRemotePartial::Partial Load (33.6ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8843
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8844
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8845
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8846
|
+
[1m[35mSQL (3.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8848
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8849
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8850
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
8851
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8852
|
+
------------------------------------------------------------
|
8853
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
8854
|
+
------------------------------------------------------------
|
8855
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8856
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8857
|
+
[1m[35mSQL (4.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8859
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8860
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8861
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8862
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
|
8863
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8864
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8865
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
8866
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8867
|
+
------------------------------------------------------------------
|
8868
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
8869
|
+
------------------------------------------------------------------
|
8870
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8871
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8872
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8873
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
8874
|
+
[1m[35mSQL (2.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8876
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8877
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
8878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8879
|
+
------------------------------------------------------
|
8880
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
8881
|
+
------------------------------------------------------
|
8882
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8883
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8884
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8885
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8886
|
+
[1m[36mSQL (8.1ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
|
8887
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8888
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
8889
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8890
|
+
[1m[35m (4.5ms)[0m rollback transaction
|
8891
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8892
|
+
---------------------------------------------------------
|
8893
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
8894
|
+
---------------------------------------------------------
|
8895
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8896
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8897
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8898
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8899
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8901
|
+
[1m[35m (3.4ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8902
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8903
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
8904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8905
|
+
-----------------------------------------------------------------------------------
|
8906
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
8907
|
+
-----------------------------------------------------------------------------------
|
8908
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8909
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8910
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
8911
|
+
[1m[36m (6.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
8912
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8914
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8915
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
8916
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8917
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8918
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8919
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233[0m [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
|
8920
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8921
|
+
[1m[36m (4.0ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8922
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
8923
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8924
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8925
|
+
----------------------------------------------------------------------------
|
8926
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
8927
|
+
----------------------------------------------------------------------------
|
8928
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8929
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
8930
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
8931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8932
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:27:41 UTC +00:00]]
|
8933
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8934
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
8935
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
8936
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8937
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8938
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8939
|
+
----------------------------------------------------------------
|
8940
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
8941
|
+
----------------------------------------------------------------
|
8942
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8943
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8944
|
+
-------------------------------------------------
|
8945
|
+
RemotePartial::PartialTest: test_output_file_name
|
8946
|
+
-------------------------------------------------
|
8947
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8948
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8949
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8950
|
+
------------------------------------------------------------------
|
8951
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
8952
|
+
------------------------------------------------------------------
|
8953
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8954
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8955
|
+
[1m[35mSQL (1.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8957
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
8958
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8959
|
+
--------------------------------------------------------
|
8960
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
8961
|
+
--------------------------------------------------------
|
8962
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8963
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8964
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8966
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8967
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8968
|
+
--------------------------------------------
|
8969
|
+
RemotePartial::PartialTest: test_update_file
|
8970
|
+
--------------------------------------------
|
8971
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
8972
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8973
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8974
|
+
------------------------------------------------------------------------
|
8975
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
8976
|
+
------------------------------------------------------------------------
|
8977
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8979
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8981
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8982
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8983
|
+
------------------------------------------------
|
8984
|
+
RemotePartial::PartialTest: test_update_stale_at
|
8985
|
+
------------------------------------------------
|
8986
|
+
[1m[36mRemotePartial::Partial Load (5.5ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8987
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8988
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8990
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
8991
|
+
[1m[35m (0.2ms)[0m begin transaction
|
8992
|
+
--------------------------------------------------
|
8993
|
+
RemotePartial::PartialTest: test_update_stale_file
|
8994
|
+
--------------------------------------------------
|
8995
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
8996
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8997
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8998
|
+
-----------------------------------------------------------------
|
8999
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
9000
|
+
-----------------------------------------------------------------
|
9001
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9002
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9003
|
+
[1m[35mSQL (4.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9005
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9006
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9007
|
+
-----------------------------------------------------------
|
9008
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
9009
|
+
-----------------------------------------------------------
|
9010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9012
|
+
------------------------------------------------------------------------------
|
9013
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
9014
|
+
------------------------------------------------------------------------------
|
9015
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9016
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9017
|
+
-------------------------------------------------
|
9018
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
9019
|
+
-------------------------------------------------
|
9020
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9021
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9022
|
+
------------------------------------------------
|
9023
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
9024
|
+
------------------------------------------------
|
9025
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9026
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9027
|
+
---------------------------------------------
|
9028
|
+
RemotePartial::ResourceManagerTest: test_html
|
9029
|
+
---------------------------------------------
|
9030
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9031
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9032
|
+
--------------------------------------------------------
|
9033
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
9034
|
+
--------------------------------------------------------
|
9035
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9036
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9037
|
+
--------------------------------------------------------------------------------------
|
9038
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
9039
|
+
--------------------------------------------------------------------------------------
|
9040
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9042
|
+
--------------------------------------------------
|
9043
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
9044
|
+
--------------------------------------------------
|
9045
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9046
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9047
|
+
---------------------------------------------
|
9048
|
+
RemotePartial::ResourceManagerTest: test_stub
|
9049
|
+
---------------------------------------------
|
9050
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9052
|
+
------------------------------
|
9053
|
+
RemotePartialTest: test_define
|
9054
|
+
------------------------------
|
9055
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9056
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9057
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
9058
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9060
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9061
|
+
[1m[35mRemotePartial::Partial Load (0.4ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9062
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
9063
|
+
[1m[35m (0.3ms)[0m begin transaction
|
9064
|
+
-----------------------------
|
9065
|
+
RemotePartialTest: test_truth
|
9066
|
+
-----------------------------
|
9067
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9068
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9069
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9070
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9082
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9110
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9111
|
+
-----------------------------------------------------------
|
9112
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
9113
|
+
-----------------------------------------------------------
|
9114
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9115
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9116
|
+
--------------------------------------
|
9117
|
+
RemotePartial::BuilderTest: test_build
|
9118
|
+
--------------------------------------
|
9119
|
+
[1m[35mRemotePartial::Partial Load (33.4ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9120
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9121
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9122
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9123
|
+
[1m[35mSQL (3.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9125
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9126
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9127
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9129
|
+
------------------------------------------------------------
|
9130
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
9131
|
+
------------------------------------------------------------
|
9132
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9133
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9134
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9136
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9137
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9138
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
9139
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
|
9140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9141
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9142
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9143
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
9144
|
+
------------------------------------------------------------------
|
9145
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
9146
|
+
------------------------------------------------------------------
|
9147
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9148
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9149
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9150
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9151
|
+
[1m[35mSQL (1.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9153
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9154
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
9155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9156
|
+
------------------------------------------------------
|
9157
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
9158
|
+
------------------------------------------------------
|
9159
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9160
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9161
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9162
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9163
|
+
[1m[36mSQL (5.2ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
|
9164
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9165
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9166
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9167
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9168
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9169
|
+
---------------------------------------------------------
|
9170
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
9171
|
+
---------------------------------------------------------
|
9172
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9173
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9174
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9175
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9176
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9178
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9179
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9180
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9181
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9182
|
+
-----------------------------------------------------------------------------------
|
9183
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
9184
|
+
-----------------------------------------------------------------------------------
|
9185
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9186
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9187
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9188
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9189
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9191
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9192
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9193
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9194
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9195
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9196
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233[0m [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
|
9197
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9198
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9199
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9200
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9202
|
+
----------------------------------------------------------------------------
|
9203
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
9204
|
+
----------------------------------------------------------------------------
|
9205
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9206
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9207
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9208
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9209
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:32:21 UTC +00:00]]
|
9210
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9211
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9212
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9213
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9214
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9215
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9216
|
+
----------------------------------------------------------------
|
9217
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
9218
|
+
----------------------------------------------------------------
|
9219
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9220
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9221
|
+
-------------------------------------------------
|
9222
|
+
RemotePartial::PartialTest: test_output_file_name
|
9223
|
+
-------------------------------------------------
|
9224
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9225
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9227
|
+
------------------------------------------------------------------
|
9228
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
9229
|
+
------------------------------------------------------------------
|
9230
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9231
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9232
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9234
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9236
|
+
--------------------------------------------------------
|
9237
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
9238
|
+
--------------------------------------------------------
|
9239
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9240
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9241
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9243
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9244
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9245
|
+
--------------------------------------------
|
9246
|
+
RemotePartial::PartialTest: test_update_file
|
9247
|
+
--------------------------------------------
|
9248
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9251
|
+
------------------------------------------------------------------------
|
9252
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
9253
|
+
------------------------------------------------------------------------
|
9254
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9255
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9256
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9258
|
+
[1m[36m (5.2ms)[0m [1mrollback transaction[0m
|
9259
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9260
|
+
------------------------------------------------
|
9261
|
+
RemotePartial::PartialTest: test_update_stale_at
|
9262
|
+
------------------------------------------------
|
9263
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9264
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9265
|
+
[1m[36mSQL (9.4ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9267
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9268
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9269
|
+
--------------------------------------------------
|
9270
|
+
RemotePartial::PartialTest: test_update_stale_file
|
9271
|
+
--------------------------------------------------
|
9272
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9273
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9274
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9275
|
+
-----------------------------------------------------------------
|
9276
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
9277
|
+
-----------------------------------------------------------------
|
9278
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9279
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9280
|
+
[1m[35mSQL (1.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9282
|
+
[1m[35m (2.9ms)[0m rollback transaction
|
9283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9284
|
+
-----------------------------------------------------------
|
9285
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
9286
|
+
-----------------------------------------------------------
|
9287
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9288
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9289
|
+
------------------------------------------------------------------------------
|
9290
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
9291
|
+
------------------------------------------------------------------------------
|
9292
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9293
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9294
|
+
-------------------------------------------------
|
9295
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
9296
|
+
-------------------------------------------------
|
9297
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9299
|
+
------------------------------------------------
|
9300
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
9301
|
+
------------------------------------------------
|
9302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9303
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9304
|
+
---------------------------------------------
|
9305
|
+
RemotePartial::ResourceManagerTest: test_html
|
9306
|
+
---------------------------------------------
|
9307
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9309
|
+
--------------------------------------------------------
|
9310
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
9311
|
+
--------------------------------------------------------
|
9312
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9314
|
+
--------------------------------------------------------------------------------------
|
9315
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
9316
|
+
--------------------------------------------------------------------------------------
|
9317
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9318
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9319
|
+
--------------------------------------------------
|
9320
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
9321
|
+
--------------------------------------------------
|
9322
|
+
[1m[35m (4.3ms)[0m rollback transaction
|
9323
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9324
|
+
---------------------------------------------
|
9325
|
+
RemotePartial::ResourceManagerTest: test_stub
|
9326
|
+
---------------------------------------------
|
9327
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9328
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9329
|
+
------------------------------
|
9330
|
+
RemotePartialTest: test_define
|
9331
|
+
------------------------------
|
9332
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9333
|
+
[1m[36mRemotePartial::Partial Load (0.0ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9334
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9335
|
+
[1m[36mSQL (10.0ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9337
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9338
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9339
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9340
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9341
|
+
-----------------------------
|
9342
|
+
RemotePartialTest: test_truth
|
9343
|
+
-----------------------------
|
9344
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9345
|
+
[1m[36mRemotePartial::Partial Load (0.4ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9346
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9347
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9358
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9359
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9377
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9387
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9388
|
+
-----------------------------------------------------------
|
9389
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
9390
|
+
-----------------------------------------------------------
|
9391
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9393
|
+
--------------------------------------
|
9394
|
+
RemotePartial::BuilderTest: test_build
|
9395
|
+
--------------------------------------
|
9396
|
+
[1m[35mRemotePartial::Partial Load (34.5ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9397
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9398
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9399
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9400
|
+
[1m[35mSQL (3.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9402
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9403
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9404
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9405
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9406
|
+
------------------------------------------------------------
|
9407
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
9408
|
+
------------------------------------------------------------
|
9409
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9410
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9411
|
+
[1m[35mSQL (2.3ms)[0m 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
|
+
[1m[36m (6.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9413
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9414
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9415
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9416
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
|
9417
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9418
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9419
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9420
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9421
|
+
------------------------------------------------------------------
|
9422
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
9423
|
+
------------------------------------------------------------------
|
9424
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9425
|
+
[1m[36m (3.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9426
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9427
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9428
|
+
[1m[35mSQL (11.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9430
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9431
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9432
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9433
|
+
------------------------------------------------------
|
9434
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
9435
|
+
------------------------------------------------------
|
9436
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9437
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9438
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9439
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9440
|
+
[1m[36mSQL (2.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
|
9441
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9442
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9443
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9444
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9445
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9446
|
+
---------------------------------------------------------
|
9447
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
9448
|
+
---------------------------------------------------------
|
9449
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9450
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9451
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9452
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9453
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9455
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9456
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9457
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9459
|
+
-----------------------------------------------------------------------------------
|
9460
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
9461
|
+
-----------------------------------------------------------------------------------
|
9462
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9463
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9464
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9466
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9468
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9469
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9470
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9471
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9472
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9473
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233[0m [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
|
9474
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9475
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9476
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9477
|
+
[1m[36m (10.3ms)[0m [1mrollback transaction[0m
|
9478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9479
|
+
----------------------------------------------------------------------------
|
9480
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
9481
|
+
----------------------------------------------------------------------------
|
9482
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9483
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9484
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9486
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:36:50 UTC +00:00]]
|
9487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9488
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9489
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9490
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9491
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9493
|
+
----------------------------------------------------------------
|
9494
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
9495
|
+
----------------------------------------------------------------
|
9496
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9497
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9498
|
+
-------------------------------------------------
|
9499
|
+
RemotePartial::PartialTest: test_output_file_name
|
9500
|
+
-------------------------------------------------
|
9501
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9502
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9504
|
+
------------------------------------------------------------------
|
9505
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
9506
|
+
------------------------------------------------------------------
|
9507
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9508
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9509
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9511
|
+
[1m[35m (4.7ms)[0m rollback transaction
|
9512
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9513
|
+
--------------------------------------------------------
|
9514
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
9515
|
+
--------------------------------------------------------
|
9516
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9517
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9518
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9520
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9521
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9522
|
+
--------------------------------------------
|
9523
|
+
RemotePartial::PartialTest: test_update_file
|
9524
|
+
--------------------------------------------
|
9525
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9526
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9528
|
+
------------------------------------------------------------------------
|
9529
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
9530
|
+
------------------------------------------------------------------------
|
9531
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9532
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9533
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
9535
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9536
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9537
|
+
------------------------------------------------
|
9538
|
+
RemotePartial::PartialTest: test_update_stale_at
|
9539
|
+
------------------------------------------------
|
9540
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9541
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
9542
|
+
[1m[36mSQL (28.5ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9544
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
9545
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9546
|
+
--------------------------------------------------
|
9547
|
+
RemotePartial::PartialTest: test_update_stale_file
|
9548
|
+
--------------------------------------------------
|
9549
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9550
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9551
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
9552
|
+
-----------------------------------------------------------------
|
9553
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
9554
|
+
-----------------------------------------------------------------
|
9555
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9557
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.8ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9559
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
9560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9561
|
+
-----------------------------------------------------------
|
9562
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
9563
|
+
-----------------------------------------------------------
|
9564
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9565
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9566
|
+
------------------------------------------------------------------------------
|
9567
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
9568
|
+
------------------------------------------------------------------------------
|
9569
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9570
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9571
|
+
-------------------------------------------------
|
9572
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
9573
|
+
-------------------------------------------------
|
9574
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9576
|
+
------------------------------------------------
|
9577
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
9578
|
+
------------------------------------------------
|
9579
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9581
|
+
---------------------------------------------
|
9582
|
+
RemotePartial::ResourceManagerTest: test_html
|
9583
|
+
---------------------------------------------
|
9584
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9585
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9586
|
+
--------------------------------------------------------
|
9587
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
9588
|
+
--------------------------------------------------------
|
9589
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9590
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9591
|
+
--------------------------------------------------------------------------------------
|
9592
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
9593
|
+
--------------------------------------------------------------------------------------
|
9594
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9595
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9596
|
+
--------------------------------------------------
|
9597
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
9598
|
+
--------------------------------------------------
|
9599
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9600
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9601
|
+
---------------------------------------------
|
9602
|
+
RemotePartial::ResourceManagerTest: test_stub
|
9603
|
+
---------------------------------------------
|
9604
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9606
|
+
------------------------------
|
9607
|
+
RemotePartialTest: test_define
|
9608
|
+
------------------------------
|
9609
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9610
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9612
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9624
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9625
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9627
|
+
-----------------------------
|
9628
|
+
RemotePartialTest: test_truth
|
9629
|
+
-----------------------------
|
9630
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9631
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'clock' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9633
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
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
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'ruby' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9644
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9645
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9673
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9674
|
+
-----------------------------------------------------------
|
9675
|
+
DemosHelperTest: test_render_remote_partial_with_no_partial
|
9676
|
+
-----------------------------------------------------------
|
9677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9679
|
+
--------------------------------------
|
9680
|
+
RemotePartial::BuilderTest: test_build
|
9681
|
+
--------------------------------------
|
9682
|
+
[1m[35mRemotePartial::Partial Load (4.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9683
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9684
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9685
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9686
|
+
[1m[35mSQL (3.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9688
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9689
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9690
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9691
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9692
|
+
------------------------------------------------------------
|
9693
|
+
RemotePartial::BuilderTest: test_build_with_existing_partial
|
9694
|
+
------------------------------------------------------------
|
9695
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9696
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9697
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9699
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9700
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9701
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
9702
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
|
9703
|
+
[1m[35m (8.8ms)[0m RELEASE SAVEPOINT active_record_1
|
9704
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9705
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9706
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9707
|
+
------------------------------------------------------------------
|
9708
|
+
RemotePartial::BuilderTest: test_build_with_existing_stale_partial
|
9709
|
+
------------------------------------------------------------------
|
9710
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9711
|
+
[1m[36m (8.3ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9712
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9713
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9714
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9716
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9717
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9718
|
+
[1m[35m (0.3ms)[0m begin transaction
|
9719
|
+
------------------------------------------------------
|
9720
|
+
RemotePartial::BuilderTest: test_build_with_http_error
|
9721
|
+
------------------------------------------------------
|
9722
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9723
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9724
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9725
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9726
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
|
9727
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9728
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9729
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9730
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9731
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9732
|
+
---------------------------------------------------------
|
9733
|
+
RemotePartial::BuilderTest: test_create_or_update_partial
|
9734
|
+
---------------------------------------------------------
|
9735
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9736
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9737
|
+
[1m[35mRemotePartial::Partial Load (0.3ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9739
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9741
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9742
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9743
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9745
|
+
-----------------------------------------------------------------------------------
|
9746
|
+
RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
|
9747
|
+
-----------------------------------------------------------------------------------
|
9748
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9749
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9750
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1
|
9751
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9752
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9754
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9755
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1[0m
|
9756
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9757
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'foo' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9759
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "url" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 233[0m [["url", "other"], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
|
9760
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9761
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9762
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9763
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9764
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9765
|
+
----------------------------------------------------------------------------
|
9766
|
+
RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
|
9767
|
+
----------------------------------------------------------------------------
|
9768
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9769
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9770
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'simple' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9771
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9772
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "remote_partial_partials" SET "criteria" = ?, "repeat_period" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["criteria", nil], ["repeat_period", 43200.0], ["updated_at", Tue, 09 Jul 2013 10:39:24 UTC +00:00]]
|
9773
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9774
|
+
Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
|
9775
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9776
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9777
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9778
|
+
[1m[35m (1.3ms)[0m begin transaction
|
9779
|
+
----------------------------------------------------------------
|
9780
|
+
RemotePartial::ExceptionTest: test_remote_partial_retrival_error
|
9781
|
+
----------------------------------------------------------------
|
9782
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9783
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9784
|
+
-------------------------------------------------
|
9785
|
+
RemotePartial::PartialTest: test_output_file_name
|
9786
|
+
-------------------------------------------------
|
9787
|
+
[1m[36mRemotePartial::Partial Load (0.3ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9788
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9789
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9790
|
+
------------------------------------------------------------------
|
9791
|
+
RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
|
9792
|
+
------------------------------------------------------------------
|
9793
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9794
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9795
|
+
[1m[35mSQL (2.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9797
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9798
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
9799
|
+
--------------------------------------------------------
|
9800
|
+
RemotePartial::PartialTest: test_stale_at_reset_if_stale
|
9801
|
+
--------------------------------------------------------
|
9802
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9803
|
+
[1m[36m (4.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9804
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9806
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9807
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9808
|
+
--------------------------------------------
|
9809
|
+
RemotePartial::PartialTest: test_update_file
|
9810
|
+
--------------------------------------------
|
9811
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9812
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9813
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9814
|
+
------------------------------------------------------------------------
|
9815
|
+
RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
|
9816
|
+
------------------------------------------------------------------------
|
9817
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9818
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9819
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9821
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
9822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9823
|
+
------------------------------------------------
|
9824
|
+
RemotePartial::PartialTest: test_update_stale_at
|
9825
|
+
------------------------------------------------
|
9826
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9827
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9828
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE "remote_partial_partials" SET "stale_at" = ?, "updated_at" = ? WHERE "remote_partial_partials"."id" = 1[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9830
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
9831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9832
|
+
--------------------------------------------------
|
9833
|
+
RemotePartial::PartialTest: test_update_stale_file
|
9834
|
+
--------------------------------------------------
|
9835
|
+
[1m[36mRemotePartial::Partial Load (0.2ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1[0m [["id", 1]]
|
9836
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9837
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9838
|
+
-----------------------------------------------------------------
|
9839
|
+
RemotePartial::PartialTest: test_update_stale_file_when_not_stale
|
9840
|
+
-----------------------------------------------------------------
|
9841
|
+
[1m[35mRemotePartial::Partial Load (0.2ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."id" = ? LIMIT 1 [["id", 1]]
|
9842
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9843
|
+
[1m[35mSQL (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9845
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9846
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9847
|
+
-----------------------------------------------------------
|
9848
|
+
RemotePartial::ResourceManagerTest: test_connection_failure
|
9849
|
+
-----------------------------------------------------------
|
9850
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9851
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9852
|
+
------------------------------------------------------------------------------
|
9853
|
+
RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
|
9854
|
+
------------------------------------------------------------------------------
|
9855
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
9856
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9857
|
+
-------------------------------------------------
|
9858
|
+
RemotePartial::ResourceManagerTest: test_get_page
|
9859
|
+
-------------------------------------------------
|
9860
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9861
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9862
|
+
------------------------------------------------
|
9863
|
+
RemotePartial::ResourceManagerTest: test_get_raw
|
9864
|
+
------------------------------------------------
|
9865
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9866
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9867
|
+
---------------------------------------------
|
9868
|
+
RemotePartial::ResourceManagerTest: test_html
|
9869
|
+
---------------------------------------------
|
9870
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9872
|
+
--------------------------------------------------------
|
9873
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit
|
9874
|
+
--------------------------------------------------------
|
9875
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9876
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9877
|
+
--------------------------------------------------------------------------------------
|
9878
|
+
RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
|
9879
|
+
--------------------------------------------------------------------------------------
|
9880
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9881
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9882
|
+
--------------------------------------------------
|
9883
|
+
RemotePartial::ResourceManagerTest: test_output_to
|
9884
|
+
--------------------------------------------------
|
9885
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9886
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9887
|
+
---------------------------------------------
|
9888
|
+
RemotePartial::ResourceManagerTest: test_stub
|
9889
|
+
---------------------------------------------
|
9890
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9891
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9892
|
+
------------------------------
|
9893
|
+
RemotePartialTest: test_define
|
9894
|
+
------------------------------
|
9895
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "remote_partial_partials"
|
9896
|
+
[1m[36mRemotePartial::Partial Load (0.1ms)[0m [1mSELECT "remote_partial_partials".* FROM "remote_partial_partials" WHERE "remote_partial_partials"."name" = 'wcc' ORDER BY "remote_partial_partials"."id" ASC LIMIT 1[0m
|
9897
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9898
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "remote_partial_partials" ("created_at", "name", "repeat_period", "updated_at", "url") VALUES (?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "remote_partial_partials"[0m
|
9910
|
+
[1m[35mRemotePartial::Partial Load (0.1ms)[0m SELECT "remote_partial_partials".* FROM "remote_partial_partials" ORDER BY "remote_partial_partials"."id" DESC LIMIT 1
|
9911
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
9912
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9913
|
+
-----------------------------
|
9914
|
+
RemotePartialTest: test_truth
|
9915
|
+
-----------------------------
|
9916
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|