gonzales 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -129,13 +129,6 @@ module ActionDispatch
129
129
  Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
130
130
  Gonzales.initialize! # Ensure cache is cleared after running each test
131
131
  end
132
-
133
- def capture_and_open_screen
134
- tmp = Tempfile.new('capture_and_open_screen')
135
- tmp.close
136
- system("screencapture -P #{tmp.path}")
137
- system("open -a Preview \"file://#{tmp.path}\"")
138
- end
139
132
  end
140
133
  end
141
134
  ```
data/lib/gonzales.rb CHANGED
@@ -22,6 +22,7 @@
22
22
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
24
  require 'active_support/configurable'
25
+ require 'gonzales/exceptions'
25
26
 
26
27
  module Gonzales
27
28
  # = Gonzales provides a mechanism for speeding up tests when using FactoryGirl
@@ -0,0 +1,26 @@
1
+ # Copyright (c) 2012 Bingo Entreprenøren AS
2
+ # Copyright (c) 2012 Teknobingo Scandinavia AS
3
+ # Copyright (c) 2012 Knut I. Stenmark
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining
6
+ # a copy of this software and associated documentation files (the
7
+ # "Software"), to deal in the Software without restriction, including
8
+ # without limitation the rights to use, copy, modify, merge, publish,
9
+ # distribute, sublicense, and/or sell copies of the Software, and to
10
+ # permit persons to whom the Software is furnished to do so, subject to
11
+ # the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be
14
+ # included in all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ module Gonzales
25
+ class UndefinedAssociation < StandardError; end
26
+ end
@@ -59,15 +59,23 @@ module Gonzales
59
59
  attribute = attribute_or_factory
60
60
  options = args.extract_options!
61
61
  after_build do |r|
62
- if r.class.reflect_on_association(attribute).macro.to_s.include? 'has_and_belongs_to_many'
63
- if r.send(attribute).size == 0
64
- factory_names = args.size > 0 ? args : [attribute]
65
- r.send("#{attribute}=",
66
- factory_names.collect { |factory_name| Collection.entity(factory_name) || Adapter.create(factory_name, options) })
62
+ begin
63
+ if r.class.reflect_on_association(attribute).macro.to_s.include? 'has_and_belongs_to_many'
64
+ if r.send(attribute).size == 0
65
+ factory_names = args.size > 0 ? args : [attribute]
66
+ r.send("#{attribute}=",
67
+ factory_names.collect { |factory_name| Collection.entity(factory_name) || Adapter.create(factory_name, options) })
68
+ end
69
+ elsif !r.send(attribute)
70
+ factory_name = args.first || attribute
71
+ r.send("#{attribute}=", Collection.entity(factory_name) || Adapter.create(factory_name, options))
72
+ end
73
+ rescue NoMethodError => e
74
+ if e.message.include? 'macro'
75
+ raise UndefinedAssociation.new("association #{attribute} is undefined")
76
+ else
77
+ raise e
67
78
  end
68
- elsif !r.send(attribute)
69
- factory_name = args.first || attribute
70
- r.send("#{attribute}=", Collection.entity(factory_name) || Adapter.create(factory_name, options))
71
79
  end
72
80
  end
73
81
  end
@@ -1,3 +1,3 @@
1
1
  module Gonzales
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -31233,3 +31233,729 @@ Connecting to database specified by database.yml
31233
31233
   (0.0ms) RELEASE SAVEPOINT active_record_1
31234
31234
  Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
31235
31235
   (2.0ms) rollback transaction
31236
+ Connecting to database specified by database.yml
31237
+  (0.3ms) begin transaction
31238
+  (0.0ms) rollback transaction
31239
+  (0.0ms) begin transaction
31240
+  (0.0ms) rollback transaction
31241
+  (0.0ms) begin transaction
31242
+  (0.0ms) rollback transaction
31243
+  (0.0ms) begin transaction
31244
+  (0.0ms) rollback transaction
31245
+  (0.0ms) begin transaction
31246
+  (0.0ms) rollback transaction
31247
+  (0.0ms) begin transaction
31248
+  (0.0ms) rollback transaction
31249
+  (0.0ms) begin transaction
31250
+  (0.0ms) rollback transaction
31251
+ Connecting to database specified by database.yml
31252
+  (0.3ms) begin transaction
31253
+  (0.0ms) rollback transaction
31254
+  (0.0ms) begin transaction
31255
+  (0.0ms) rollback transaction
31256
+  (0.0ms) begin transaction
31257
+  (0.0ms) rollback transaction
31258
+  (0.0ms) begin transaction
31259
+  (0.0ms) rollback transaction
31260
+  (0.0ms) begin transaction
31261
+  (0.0ms) rollback transaction
31262
+  (0.0ms) begin transaction
31263
+  (0.0ms) rollback transaction
31264
+  (0.0ms) begin transaction
31265
+  (0.0ms) rollback transaction
31266
+ Connecting to database specified by database.yml
31267
+  (0.3ms) begin transaction
31268
+  (0.0ms) rollback transaction
31269
+  (0.0ms) begin transaction
31270
+  (0.0ms) rollback transaction
31271
+  (0.0ms) begin transaction
31272
+  (0.0ms) rollback transaction
31273
+  (0.0ms) begin transaction
31274
+  (0.0ms) rollback transaction
31275
+  (0.0ms) begin transaction
31276
+  (0.0ms) rollback transaction
31277
+  (0.1ms) begin transaction
31278
+  (0.0ms) rollback transaction
31279
+  (0.0ms) begin transaction
31280
+  (0.0ms) rollback transaction
31281
+ Connecting to database specified by database.yml
31282
+  (0.3ms) begin transaction
31283
+  (0.1ms) rollback transaction
31284
+  (0.0ms) begin transaction
31285
+  (0.0ms) rollback transaction
31286
+  (0.0ms) begin transaction
31287
+  (0.0ms) rollback transaction
31288
+  (0.0ms) begin transaction
31289
+  (0.0ms) rollback transaction
31290
+  (0.0ms) begin transaction
31291
+  (0.0ms) rollback transaction
31292
+  (0.0ms) begin transaction
31293
+  (0.0ms) rollback transaction
31294
+  (0.0ms) begin transaction
31295
+  (0.0ms) rollback transaction
31296
+ Connecting to database specified by database.yml
31297
+  (0.4ms) begin transaction
31298
+  (0.0ms) rollback transaction
31299
+  (0.0ms) begin transaction
31300
+  (0.0ms) rollback transaction
31301
+  (0.0ms) begin transaction
31302
+  (0.0ms) rollback transaction
31303
+  (0.0ms) begin transaction
31304
+  (0.0ms) rollback transaction
31305
+  (0.0ms) begin transaction
31306
+  (0.0ms) rollback transaction
31307
+  (0.0ms) begin transaction
31308
+  (0.0ms) rollback transaction
31309
+  (0.0ms) begin transaction
31310
+  (0.0ms) rollback transaction
31311
+ Connecting to database specified by database.yml
31312
+  (0.4ms) begin transaction
31313
+  (0.1ms) rollback transaction
31314
+  (0.0ms) begin transaction
31315
+  (0.0ms) rollback transaction
31316
+  (0.0ms) begin transaction
31317
+  (0.0ms) rollback transaction
31318
+  (0.0ms) begin transaction
31319
+  (0.0ms) rollback transaction
31320
+  (0.0ms) begin transaction
31321
+  (0.0ms) rollback transaction
31322
+  (0.0ms) begin transaction
31323
+  (0.0ms) rollback transaction
31324
+  (0.0ms) begin transaction
31325
+  (0.0ms) rollback transaction
31326
+ Connecting to database specified by database.yml
31327
+  (0.3ms) begin transaction
31328
+  (0.0ms) rollback transaction
31329
+  (0.0ms) begin transaction
31330
+  (0.0ms) rollback transaction
31331
+  (0.0ms) begin transaction
31332
+  (0.0ms) rollback transaction
31333
+  (0.0ms) begin transaction
31334
+  (0.0ms) rollback transaction
31335
+  (0.0ms) begin transaction
31336
+  (0.0ms) rollback transaction
31337
+  (0.0ms) begin transaction
31338
+  (0.0ms) rollback transaction
31339
+  (0.0ms) begin transaction
31340
+  (0.0ms) rollback transaction
31341
+  (0.0ms) begin transaction
31342
+  (0.0ms) rollback transaction
31343
+  (0.0ms) begin transaction
31344
+  (0.0ms) rollback transaction
31345
+  (0.0ms) begin transaction
31346
+  (0.0ms) rollback transaction
31347
+  (0.0ms) begin transaction
31348
+  (0.0ms) rollback transaction
31349
+  (0.0ms) begin transaction
31350
+  (0.0ms) rollback transaction
31351
+  (0.0ms) begin transaction
31352
+  (0.0ms) rollback transaction
31353
+  (0.0ms) begin transaction
31354
+  (0.0ms) rollback transaction
31355
+  (0.0ms) begin transaction
31356
+  (0.0ms) rollback transaction
31357
+  (0.0ms) begin transaction
31358
+  (0.0ms) rollback transaction
31359
+  (0.0ms) begin transaction
31360
+  (0.0ms) rollback transaction
31361
+  (0.0ms) begin transaction
31362
+  (0.0ms) rollback transaction
31363
+  (0.0ms) begin transaction
31364
+  (0.0ms) rollback transaction
31365
+  (0.0ms) begin transaction
31366
+  (0.0ms) rollback transaction
31367
+  (0.0ms) begin transaction
31368
+  (0.0ms) rollback transaction
31369
+  (0.0ms) begin transaction
31370
+  (0.0ms) rollback transaction
31371
+  (0.0ms) begin transaction
31372
+  (0.0ms) rollback transaction
31373
+  (0.0ms) begin transaction
31374
+  (0.0ms) rollback transaction
31375
+  (0.0ms) begin transaction
31376
+  (0.0ms) rollback transaction
31377
+  (0.0ms) begin transaction
31378
+  (0.0ms) rollback transaction
31379
+  (0.0ms) begin transaction
31380
+  (0.0ms) rollback transaction
31381
+  (0.0ms) begin transaction
31382
+  (0.0ms) rollback transaction
31383
+  (0.0ms) begin transaction
31384
+  (0.0ms) rollback transaction
31385
+  (0.0ms) begin transaction
31386
+  (0.0ms) SAVEPOINT active_record_1
31387
+ SQL (5.5ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31389
+  (0.1ms) SAVEPOINT active_record_1
31390
+ SQL (0.7ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31392
+  (0.0ms) SAVEPOINT active_record_1
31393
+ SQL (0.4ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31395
+ Material Load (0.1ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31396
+  (0.0ms) SAVEPOINT active_record_1
31397
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31399
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31400
+  (0.0ms) SAVEPOINT active_record_1
31401
+ SQL (1.4ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31403
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31404
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31405
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31406
+  (0.0ms) SAVEPOINT active_record_1
31407
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31408
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31409
+ Hat Load (0.1ms) SELECT "hats".* FROM "hats" WHERE "hats"."id" = ? LIMIT 1 [["id", 1]]
31410
+  (0.4ms) rollback transaction
31411
+  (0.0ms) begin transaction
31412
+  (0.0ms) SAVEPOINT active_record_1
31413
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31415
+  (0.0ms) SAVEPOINT active_record_1
31416
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31417
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31418
+  (0.0ms) SAVEPOINT active_record_1
31419
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31420
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31421
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31422
+  (0.0ms) SAVEPOINT active_record_1
31423
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31425
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31426
+  (0.0ms) SAVEPOINT active_record_1
31427
+ SQL (0.3ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31429
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31430
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31431
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31432
+  (0.0ms) SAVEPOINT active_record_1
31433
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31435
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
31436
+ Hat Load (0.0ms) SELECT "hats".* FROM "hats" WHERE "hats"."id" = ? LIMIT 1 [["id", 1]]
31437
+  (0.0ms) SAVEPOINT active_record_1
31438
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31440
+  (0.0ms) SAVEPOINT active_record_1
31441
+ SQL (1.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 1], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31442
+  (0.9ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31444
+  (0.4ms) rollback transaction
31445
+  (0.0ms) begin transaction
31446
+  (0.0ms) SAVEPOINT active_record_1
31447
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31449
+  (0.0ms) SAVEPOINT active_record_1
31450
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31452
+  (0.0ms) SAVEPOINT active_record_1
31453
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31455
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31456
+  (0.0ms) SAVEPOINT active_record_1
31457
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31459
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31460
+  (0.0ms) SAVEPOINT active_record_1
31461
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31463
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31464
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31465
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31466
+  (0.0ms) SAVEPOINT active_record_1
31467
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31469
+  (0.0ms) SAVEPOINT active_record_1
31470
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31472
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31473
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31474
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31475
+  (0.0ms) SAVEPOINT active_record_1
31476
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31478
+  (0.0ms) SAVEPOINT active_record_1
31479
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31481
+  (0.0ms) SAVEPOINT active_record_1
31482
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 3], ["shoe_id", 3], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31483
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31485
+  (0.4ms) rollback transaction
31486
+  (0.0ms) begin transaction
31487
+  (0.0ms) SAVEPOINT active_record_1
31488
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31489
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31490
+  (0.0ms) SAVEPOINT active_record_1
31491
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31492
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31493
+  (0.0ms) SAVEPOINT active_record_1
31494
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31496
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31497
+  (0.0ms) SAVEPOINT active_record_1
31498
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31500
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31501
+  (0.0ms) SAVEPOINT active_record_1
31502
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31504
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31505
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31506
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31507
+  (0.0ms) SAVEPOINT active_record_1
31508
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31510
+  (0.4ms) rollback transaction
31511
+  (0.0ms) begin transaction
31512
+  (0.0ms) SAVEPOINT active_record_1
31513
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31515
+  (0.0ms) SAVEPOINT active_record_1
31516
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31517
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31518
+  (0.0ms) SAVEPOINT active_record_1
31519
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31520
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31521
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31522
+  (0.0ms) SAVEPOINT active_record_1
31523
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31525
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31526
+  (0.0ms) SAVEPOINT active_record_1
31527
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31529
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31530
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31531
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31532
+  (0.0ms) SAVEPOINT active_record_1
31533
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31534
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31535
+  (0.0ms) SAVEPOINT active_record_1
31536
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31538
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 2]]
31539
+  (0.0ms) SAVEPOINT active_record_1
31540
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31542
+  (0.0ms) SAVEPOINT active_record_1
31543
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 3], ["shoe_id", 2], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31544
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31546
+  (0.5ms) rollback transaction
31547
+  (0.0ms) begin transaction
31548
+  (0.1ms) SELECT COUNT(*) FROM "outfits"
31549
+  (0.0ms) SAVEPOINT active_record_1
31550
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31552
+  (0.0ms) SAVEPOINT active_record_1
31553
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31555
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31556
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31557
+  (0.0ms) SAVEPOINT active_record_1
31558
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31560
+  (0.0ms) SAVEPOINT active_record_1
31561
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31563
+  (0.0ms) SAVEPOINT active_record_1
31564
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 2], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31565
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 1)
31566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31567
+ Outfit Load (0.1ms) SELECT "outfits".* FROM "outfits" WHERE "outfits"."id" = ? LIMIT 1 [["id", 1]]
31568
+  (0.1ms) SELECT COUNT(*) FROM "outfits"
31569
+  (0.5ms) rollback transaction
31570
+  (0.0ms) begin transaction
31571
+  (0.1ms) SELECT COUNT(*) FROM "outfits" 
31572
+  (0.0ms) SAVEPOINT active_record_1
31573
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31575
+  (0.0ms) SAVEPOINT active_record_1
31576
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31578
+  (0.0ms) SAVEPOINT active_record_1
31579
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31580
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31581
+  (0.0ms) SAVEPOINT active_record_1
31582
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31584
+  (0.0ms) SAVEPOINT active_record_1
31585
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 3], ["lower_material_id", 2], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31586
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31587
+  (0.0ms) SAVEPOINT active_record_1
31588
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31590
+  (0.0ms) SAVEPOINT active_record_1
31591
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 2], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31592
+  (0.2ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 1)
31593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31594
+  (0.0ms) SAVEPOINT active_record_1
31595
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31597
+  (0.0ms) SAVEPOINT active_record_1
31598
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31599
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31600
+  (0.0ms) SAVEPOINT active_record_1
31601
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31603
+  (0.0ms) SAVEPOINT active_record_1
31604
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31606
+  (0.0ms) SAVEPOINT active_record_1
31607
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 6], ["lower_material_id", 5], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 4]]
31608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31609
+  (0.0ms) SAVEPOINT active_record_1
31610
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31612
+  (0.0ms) SAVEPOINT active_record_1
31613
+ SQL (0.2ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["hat_id", 4], ["shoe_id", 2], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["wardrobe_id", nil]]
31614
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (2, 3)
31615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31616
+  (0.0ms) SELECT COUNT(*) FROM "outfits"
31617
+  (3.6ms) rollback transaction
31618
+  (0.1ms) begin transaction
31619
+  (0.0ms) SAVEPOINT active_record_1
31620
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31622
+  (0.0ms) SAVEPOINT active_record_1
31623
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31625
+  (0.0ms) SAVEPOINT active_record_1
31626
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31628
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31629
+  (0.0ms) SAVEPOINT active_record_1
31630
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00]]
31631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31632
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31633
+  (0.0ms) SAVEPOINT active_record_1
31634
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31636
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31637
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31638
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31639
+  (0.0ms) SAVEPOINT active_record_1
31640
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:01:34 UTC +00:00], ["upper_material_id", 1]]
31641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31642
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
31643
+  (0.4ms) rollback transaction
31644
+ Connecting to database specified by database.yml
31645
+  (0.3ms) begin transaction
31646
+  (0.0ms) rollback transaction
31647
+  (0.0ms) begin transaction
31648
+  (0.0ms) rollback transaction
31649
+  (0.0ms) begin transaction
31650
+  (0.0ms) rollback transaction
31651
+  (0.0ms) begin transaction
31652
+  (0.0ms) rollback transaction
31653
+  (0.0ms) begin transaction
31654
+  (0.0ms) rollback transaction
31655
+  (0.0ms) begin transaction
31656
+  (0.0ms) rollback transaction
31657
+  (0.0ms) begin transaction
31658
+  (0.0ms) rollback transaction
31659
+  (0.0ms) begin transaction
31660
+  (0.0ms) rollback transaction
31661
+  (0.0ms) begin transaction
31662
+  (0.0ms) rollback transaction
31663
+  (0.0ms) begin transaction
31664
+  (0.0ms) rollback transaction
31665
+  (0.0ms) begin transaction
31666
+  (0.0ms) rollback transaction
31667
+  (0.0ms) begin transaction
31668
+  (0.0ms) rollback transaction
31669
+  (0.0ms) begin transaction
31670
+  (0.0ms) rollback transaction
31671
+  (0.0ms) begin transaction
31672
+  (0.0ms) rollback transaction
31673
+  (0.0ms) begin transaction
31674
+  (0.0ms) rollback transaction
31675
+  (0.0ms) begin transaction
31676
+  (0.0ms) rollback transaction
31677
+  (0.0ms) begin transaction
31678
+  (0.0ms) rollback transaction
31679
+  (0.0ms) begin transaction
31680
+  (0.0ms) rollback transaction
31681
+  (0.0ms) begin transaction
31682
+  (0.0ms) rollback transaction
31683
+  (0.0ms) begin transaction
31684
+  (0.0ms) rollback transaction
31685
+  (0.0ms) begin transaction
31686
+  (0.0ms) rollback transaction
31687
+  (0.0ms) begin transaction
31688
+  (0.0ms) rollback transaction
31689
+  (0.0ms) begin transaction
31690
+  (0.0ms) rollback transaction
31691
+  (0.0ms) begin transaction
31692
+  (0.0ms) rollback transaction
31693
+  (0.0ms) begin transaction
31694
+  (0.0ms) rollback transaction
31695
+  (0.0ms) begin transaction
31696
+  (0.0ms) rollback transaction
31697
+  (0.0ms) begin transaction
31698
+  (0.0ms) rollback transaction
31699
+  (0.0ms) begin transaction
31700
+  (0.0ms) rollback transaction
31701
+  (0.0ms) begin transaction
31702
+  (0.0ms) rollback transaction
31703
+  (0.0ms) begin transaction
31704
+  (0.0ms) SAVEPOINT active_record_1
31705
+ SQL (2.4ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31707
+  (0.0ms) SAVEPOINT active_record_1
31708
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31710
+  (0.0ms) SAVEPOINT active_record_1
31711
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31713
+ Material Load (0.1ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31714
+  (0.0ms) SAVEPOINT active_record_1
31715
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31717
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31718
+  (0.0ms) SAVEPOINT active_record_1
31719
+ SQL (0.3ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31721
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31722
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31723
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31724
+  (0.0ms) SAVEPOINT active_record_1
31725
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31727
+ Hat Load (0.1ms) SELECT "hats".* FROM "hats" WHERE "hats"."id" = ? LIMIT 1 [["id", 1]]
31728
+  (0.9ms) rollback transaction
31729
+  (0.0ms) begin transaction
31730
+  (0.0ms) SAVEPOINT active_record_1
31731
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31732
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31733
+  (0.0ms) SAVEPOINT active_record_1
31734
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31736
+  (0.0ms) SAVEPOINT active_record_1
31737
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31739
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31740
+  (0.0ms) SAVEPOINT active_record_1
31741
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31743
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31744
+  (0.0ms) SAVEPOINT active_record_1
31745
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31747
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31748
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31749
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31750
+  (0.0ms) SAVEPOINT active_record_1
31751
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31753
+ Shoe Load (0.1ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
31754
+ Hat Load (0.0ms) SELECT "hats".* FROM "hats" WHERE "hats"."id" = ? LIMIT 1 [["id", 1]]
31755
+  (0.1ms) SAVEPOINT active_record_1
31756
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31758
+  (0.0ms) SAVEPOINT active_record_1
31759
+ SQL (0.3ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 1], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31760
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31762
+  (0.5ms) rollback transaction
31763
+  (0.0ms) begin transaction
31764
+  (0.0ms) SAVEPOINT active_record_1
31765
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31767
+  (0.0ms) SAVEPOINT active_record_1
31768
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31770
+  (0.0ms) SAVEPOINT active_record_1
31771
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31773
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31774
+  (0.0ms) SAVEPOINT active_record_1
31775
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31777
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31778
+  (0.0ms) SAVEPOINT active_record_1
31779
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31781
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31782
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31783
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31784
+  (0.0ms) SAVEPOINT active_record_1
31785
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31787
+  (0.0ms) SAVEPOINT active_record_1
31788
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31790
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31791
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31792
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31793
+  (0.0ms) SAVEPOINT active_record_1
31794
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31796
+  (0.0ms) SAVEPOINT active_record_1
31797
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31799
+  (0.0ms) SAVEPOINT active_record_1
31800
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 3], ["shoe_id", 3], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31801
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31803
+  (0.6ms) rollback transaction
31804
+  (0.0ms) begin transaction
31805
+  (0.0ms) SAVEPOINT active_record_1
31806
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31808
+  (0.0ms) SAVEPOINT active_record_1
31809
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31811
+  (0.0ms) SAVEPOINT active_record_1
31812
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31814
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31815
+  (0.0ms) SAVEPOINT active_record_1
31816
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31818
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31819
+  (0.0ms) SAVEPOINT active_record_1
31820
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31822
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31823
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31824
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31825
+  (0.0ms) SAVEPOINT active_record_1
31826
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31828
+  (0.4ms) rollback transaction
31829
+  (0.0ms) begin transaction
31830
+  (0.0ms) SAVEPOINT active_record_1
31831
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31833
+  (0.0ms) SAVEPOINT active_record_1
31834
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31836
+  (0.0ms) SAVEPOINT active_record_1
31837
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31839
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31840
+  (0.0ms) SAVEPOINT active_record_1
31841
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31843
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31844
+  (0.0ms) SAVEPOINT active_record_1
31845
+ SQL (0.1ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31847
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31848
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31849
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31850
+  (0.0ms) SAVEPOINT active_record_1
31851
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31852
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31853
+  (0.0ms) SAVEPOINT active_record_1
31854
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31856
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 2]]
31857
+  (0.0ms) SAVEPOINT active_record_1
31858
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31860
+  (0.0ms) SAVEPOINT active_record_1
31861
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 3], ["shoe_id", 2], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31862
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 2)
31863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31864
+  (0.5ms) rollback transaction
31865
+  (0.0ms) begin transaction
31866
+  (0.1ms) SELECT COUNT(*) FROM "outfits"
31867
+  (0.0ms) SAVEPOINT active_record_1
31868
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31870
+  (0.0ms) SAVEPOINT active_record_1
31871
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31873
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31874
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31875
+  (0.0ms) SAVEPOINT active_record_1
31876
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31878
+  (0.0ms) SAVEPOINT active_record_1
31879
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31881
+  (0.0ms) SAVEPOINT active_record_1
31882
+ SQL (0.2ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 2], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31883
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 1)
31884
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31885
+ Outfit Load (0.1ms) SELECT "outfits".* FROM "outfits" WHERE "outfits"."id" = ? LIMIT 1 [["id", 1]]
31886
+  (0.0ms) SELECT COUNT(*) FROM "outfits"
31887
+  (0.5ms) rollback transaction
31888
+  (0.0ms) begin transaction
31889
+  (0.1ms) SELECT COUNT(*) FROM "outfits" 
31890
+  (0.0ms) SAVEPOINT active_record_1
31891
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31893
+  (0.0ms) SAVEPOINT active_record_1
31894
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31896
+  (0.0ms) SAVEPOINT active_record_1
31897
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31899
+  (0.0ms) SAVEPOINT active_record_1
31900
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31902
+  (0.0ms) SAVEPOINT active_record_1
31903
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 3], ["lower_material_id", 2], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31905
+  (0.0ms) SAVEPOINT active_record_1
31906
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31908
+  (0.0ms) SAVEPOINT active_record_1
31909
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 2], ["shoe_id", 1], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31910
+  (0.2ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (1, 1)
31911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31912
+  (0.0ms) SAVEPOINT active_record_1
31913
+ SQL (0.2ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Cool"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31915
+  (0.0ms) SAVEPOINT active_record_1
31916
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31918
+  (0.0ms) SAVEPOINT active_record_1
31919
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31921
+  (0.0ms) SAVEPOINT active_record_1
31922
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31924
+  (0.0ms) SAVEPOINT active_record_1
31925
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 6], ["lower_material_id", 5], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 4]]
31926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31927
+  (0.0ms) SAVEPOINT active_record_1
31928
+ SQL (0.1ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Narrow"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31930
+  (0.0ms) SAVEPOINT active_record_1
31931
+ SQL (0.1ms) INSERT INTO "outfits" ("created_at", "hat_id", "shoe_id", "style", "updated_at", "wardrobe_id") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["hat_id", 4], ["shoe_id", 2], ["style", "Mexican"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["wardrobe_id", nil]]
31932
+  (0.1ms) INSERT INTO "hats_outfits" ("outfit_id", "hat_id") VALUES (2, 3)
31933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31934
+  (0.0ms) SELECT COUNT(*) FROM "outfits"
31935
+  (1.7ms) rollback transaction
31936
+  (0.1ms) begin transaction
31937
+  (0.0ms) SAVEPOINT active_record_1
31938
+ SQL (0.3ms) INSERT INTO "hats" ("brim_type", "created_at", "size", "updated_at") VALUES (?, ?, ?, ?) [["brim_type", "Fat"], ["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["size", 52], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31940
+  (0.0ms) SAVEPOINT active_record_1
31941
+ SQL (0.3ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Leather"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31943
+  (0.0ms) SAVEPOINT active_record_1
31944
+ SQL (0.2ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Fabrick"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31946
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31947
+  (0.0ms) SAVEPOINT active_record_1
31948
+ SQL (0.1ms) INSERT INTO "materials" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["name", "Rubber"], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00]]
31949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31950
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31951
+  (0.0ms) SAVEPOINT active_record_1
31952
+ SQL (0.3ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 3], ["name", "Classy"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31954
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31955
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31956
+ Material Load (0.0ms) SELECT "materials".* FROM "materials" WHERE "materials"."id" = ? LIMIT 1 [["id", 1]]
31957
+  (0.0ms) SAVEPOINT active_record_1
31958
+ SQL (0.2ms) INSERT INTO "shoes" ("created_at", "inner_material_id", "lower_material_id", "name", "size", "updated_at", "upper_material_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["inner_material_id", 1], ["lower_material_id", 1], ["name", "Boot"], ["size", 42], ["updated_at", Fri, 19 Oct 2012 16:02:39 UTC +00:00], ["upper_material_id", 1]]
31959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
31960
+ Shoe Load (0.0ms) SELECT "shoes".* FROM "shoes" WHERE "shoes"."id" = ? LIMIT 1 [["id", 1]]
31961
+  (0.4ms) rollback transaction
@@ -75,9 +75,15 @@ class Gonzales::FactoryGirl::DefinitionProxyTest < ActiveSupport::TestCase
75
75
  @proxy.speedy(:sylvester)
76
76
  assert_equal :cat, @proxy.sylvester
77
77
  end
78
+ should 'raise exception when association is not defined' do
79
+ DefinitionProxyTest.expects(:reflect_on_association).with(:sylvester).raises(NoMethodError.new("undefined method `macro' for nil:NilClass"))
80
+ assert_raises Gonzales::UndefinedAssociation do
81
+ @proxy.speedy(:sylvester)
82
+ end
83
+ end
78
84
  end
79
85
 
80
- context 'speedy has_many and has_and_belongs_to_many association' do
86
+ context 'speedy has_many association' do
81
87
  setup do
82
88
  @proxy.cartoons = []
83
89
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonzales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -104,6 +104,7 @@ files:
104
104
  - lib/gonzales/adapter/unregistered.rb
105
105
  - lib/gonzales/adapter.rb
106
106
  - lib/gonzales/collection.rb
107
+ - lib/gonzales/exceptions.rb
107
108
  - lib/gonzales/factories.rb
108
109
  - lib/gonzales/factory_girl/definition_proxy.rb
109
110
  - lib/gonzales/test_helper.rb
@@ -184,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
185
  version: '0'
185
186
  segments:
186
187
  - 0
187
- hash: -4539270136119256787
188
+ hash: 4278598574288274259
188
189
  required_rubygems_version: !ruby/object:Gem::Requirement
189
190
  none: false
190
191
  requirements:
@@ -193,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
194
  version: '0'
194
195
  segments:
195
196
  - 0
196
- hash: -4539270136119256787
197
+ hash: 4278598574288274259
197
198
  requirements: []
198
199
  rubyforge_project:
199
200
  rubygems_version: 1.8.24