built_in_data 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3587,3 +3587,1782 @@ BuiltInDataTest: test_should_update_existing_built_in_data
3587
3587
  NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3588
3588
  NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3589
3589
   (0.6ms) rollback transaction
3590
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3591
+  (0.1ms) begin transaction
3592
+ -----------------------------------------------
3593
+ BuiltInDataTest: test_should_load_built_in_data
3594
+ -----------------------------------------------
3595
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3596
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3597
+  (0.1ms) SAVEPOINT active_record_1
3598
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3599
+ SQL (1.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:41:24.428502"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.428502"], ["url", "http://www.nps.gov/yell/index.htm"]]
3600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3601
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3602
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3603
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3604
+  (19.1ms) rollback transaction
3605
+  (0.1ms) begin transaction
3606
+ --------------------------------------------------------------
3607
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
3608
+ --------------------------------------------------------------
3609
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3610
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3611
+  (0.0ms) SAVEPOINT active_record_1
3612
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3613
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:41:24.457245"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.457245"], ["url", "http://www.nps.gov/yell/index.htm"]]
3614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3615
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3616
+  (0.0ms) SAVEPOINT active_record_1
3617
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3618
+ SQL (0.7ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:41:24.459154"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:41:24.459154"], ["url", "http://www.nps.gov/glac/index.htm"]]
3619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3620
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3621
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3622
+  (32.2ms) rollback transaction
3623
+  (0.1ms) begin transaction
3624
+ --------------------------------------------------------------
3625
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
3626
+ --------------------------------------------------------------
3627
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3628
+  (0.0ms) SAVEPOINT active_record_1
3629
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3630
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:41:24.496325"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.496325"], ["url", "http://www.nps.gov/yell/index.htm"]]
3631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3632
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3633
+  (0.0ms) SAVEPOINT active_record_1
3634
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3635
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:41:24.498343"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:41:24.498343"], ["url", "http://www.nps.gov/glac/index.htm"]]
3636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3637
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3638
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3639
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3640
+  (0.1ms) SAVEPOINT active_record_1
3641
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
3642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3643
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3644
+  (0.0ms) SAVEPOINT active_record_1
3645
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
3646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3647
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3648
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3649
+  (8.9ms) rollback transaction
3650
+  (0.1ms) begin transaction
3651
+ -----------------------------------------------------------------------
3652
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
3653
+ -----------------------------------------------------------------------
3654
+  (0.0ms) SAVEPOINT active_record_1
3655
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:41:24.513356"], ["name", "Testing"], ["updated_at", "2014-11-13 21:41:24.513356"]]
3656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3657
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3658
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3659
+  (0.0ms) SAVEPOINT active_record_1
3660
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3661
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:41:24.515508"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.515508"], ["url", "http://www.nps.gov/yell/index.htm"]]
3662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3663
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3664
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3665
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
3666
+  (39.9ms) rollback transaction
3667
+  (0.1ms) begin transaction
3668
+ -----------------------------------------------------
3669
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
3670
+ -----------------------------------------------------
3671
+  (0.0ms) rollback transaction
3672
+  (0.1ms) begin transaction
3673
+ -------------------------------------------------
3674
+ BuiltInDataTest: test_should_remove_built_in_data
3675
+ -------------------------------------------------
3676
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3677
+  (0.0ms) SAVEPOINT active_record_1
3678
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3679
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:41:24.560016"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.560016"], ["url", "http://www.nps.gov/yell/index.htm"]]
3680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3681
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3682
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3683
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3684
+  (0.0ms) SAVEPOINT active_record_1
3685
+ SQL (0.3ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
3686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3687
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3688
+ NationalPark Load (0.0ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3689
+  (17.4ms) rollback transaction
3690
+  (0.0ms) begin transaction
3691
+ -------------------------------------------------------------------
3692
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
3693
+ -------------------------------------------------------------------
3694
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3695
+  (0.0ms) SAVEPOINT active_record_1
3696
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3697
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:41:24.582466"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.582466"], ["url", "http://www.nps.gov/yell/index.htm"]]
3698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3699
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3700
+  (0.0ms) SAVEPOINT active_record_1
3701
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3702
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:41:24.584048"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:41:24.584048"], ["url", "http://www.nps.gov/glac/index.htm"]]
3703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3704
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3705
+  (0.4ms) rollback transaction
3706
+  (0.1ms) begin transaction
3707
+ -------------------------------------------------------
3708
+ BuiltInDataTest: test_should_return_false_for_built_in?
3709
+ -------------------------------------------------------
3710
+  (0.0ms) rollback transaction
3711
+  (0.0ms) begin transaction
3712
+ ------------------------------------------------------
3713
+ BuiltInDataTest: test_should_return_true_for_built_in?
3714
+ ------------------------------------------------------
3715
+  (0.0ms) rollback transaction
3716
+  (0.0ms) begin transaction
3717
+ ----------------------------------------------------------
3718
+ BuiltInDataTest: test_should_update_existing_built_in_data
3719
+ ----------------------------------------------------------
3720
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3721
+  (0.0ms) SAVEPOINT active_record_1
3722
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3723
+ SQL (0.1ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:41:24.587599"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:41:24.587599"], ["url", "http://www.nps.gov/yell/index.htm"]]
3724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3725
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3726
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3727
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3728
+  (0.0ms) SAVEPOINT active_record_1
3729
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
3730
+ SQL (0.5ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:41:24.589557"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
3731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3732
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3733
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3734
+  (0.4ms) rollback transaction
3735
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3736
+ Migrating to AddActiveToNationalParks (20141113214328)
3737
+  (0.1ms) begin transaction
3738
+  (0.4ms) ALTER TABLE "national_parks" ADD "active" boolean
3739
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141113214328"]]
3740
+  (1.1ms) commit transaction
3741
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3742
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3743
+  (0.1ms) begin transaction
3744
+ -----------------------------------------------
3745
+ BuiltInDataTest: test_should_load_built_in_data
3746
+ -----------------------------------------------
3747
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3748
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3749
+  (0.1ms) SAVEPOINT active_record_1
3750
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3751
+ SQL (0.6ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:44:58.836449"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.836449"], ["url", "http://www.nps.gov/yell/index.htm"]]
3752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3753
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3754
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3755
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3756
+  (0.5ms) rollback transaction
3757
+  (0.0ms) begin transaction
3758
+ --------------------------------------------------------------
3759
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
3760
+ --------------------------------------------------------------
3761
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3762
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3763
+  (0.0ms) SAVEPOINT active_record_1
3764
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3765
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:44:58.844585"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.844585"], ["url", "http://www.nps.gov/yell/index.htm"]]
3766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3767
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3768
+  (0.0ms) SAVEPOINT active_record_1
3769
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3770
+ SQL (0.7ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:44:58.846261"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:44:58.846261"], ["url", "http://www.nps.gov/glac/index.htm"]]
3771
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3772
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3773
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3774
+  (0.4ms) rollback transaction
3775
+  (0.0ms) begin transaction
3776
+ --------------------------------------------------------------
3777
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
3778
+ --------------------------------------------------------------
3779
+ NationalPark Load (1.2ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3780
+  (0.1ms) SAVEPOINT active_record_1
3781
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3782
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:44:58.851966"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.851966"], ["url", "http://www.nps.gov/yell/index.htm"]]
3783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3784
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3785
+  (0.0ms) SAVEPOINT active_record_1
3786
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3787
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:44:58.853769"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:44:58.853769"], ["url", "http://www.nps.gov/glac/index.htm"]]
3788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3789
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3790
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3791
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3792
+  (0.0ms) SAVEPOINT active_record_1
3793
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
3794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3795
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3796
+  (0.0ms) SAVEPOINT active_record_1
3797
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
3798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3799
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3800
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3801
+  (0.5ms) rollback transaction
3802
+  (0.0ms) begin transaction
3803
+ -----------------------------------------------------------------------
3804
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
3805
+ -----------------------------------------------------------------------
3806
+  (0.0ms) SAVEPOINT active_record_1
3807
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:44:58.860202"], ["name", "Testing"], ["updated_at", "2014-11-13 21:44:58.860202"]]
3808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3809
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3810
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3811
+  (0.0ms) SAVEPOINT active_record_1
3812
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3813
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:44:58.862319"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.862319"], ["url", "http://www.nps.gov/yell/index.htm"]]
3814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3815
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3816
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3817
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
3818
+  (0.5ms) rollback transaction
3819
+  (0.1ms) begin transaction
3820
+ -----------------------------------------------------
3821
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
3822
+ -----------------------------------------------------
3823
+  (0.0ms) rollback transaction
3824
+  (0.0ms) begin transaction
3825
+ -------------------------------------------------
3826
+ BuiltInDataTest: test_should_remove_built_in_data
3827
+ -------------------------------------------------
3828
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3829
+  (0.0ms) SAVEPOINT active_record_1
3830
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3831
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:44:58.867248"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.867248"], ["url", "http://www.nps.gov/yell/index.htm"]]
3832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3833
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3834
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3835
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3836
+  (0.0ms) SAVEPOINT active_record_1
3837
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
3838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3839
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3840
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3841
+  (0.9ms) rollback transaction
3842
+  (0.0ms) begin transaction
3843
+ -------------------------------------------------------------------
3844
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
3845
+ -------------------------------------------------------------------
3846
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3847
+  (0.0ms) SAVEPOINT active_record_1
3848
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3849
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:44:58.872544"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.872544"], ["url", "http://www.nps.gov/yell/index.htm"]]
3850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3851
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3852
+  (0.0ms) SAVEPOINT active_record_1
3853
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3854
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:44:58.874110"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:44:58.874110"], ["url", "http://www.nps.gov/glac/index.htm"]]
3855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3856
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3857
+  (0.9ms) rollback transaction
3858
+  (0.0ms) begin transaction
3859
+ -------------------------------------------------------
3860
+ BuiltInDataTest: test_should_return_false_for_built_in?
3861
+ -------------------------------------------------------
3862
+  (0.0ms) rollback transaction
3863
+  (0.0ms) begin transaction
3864
+ ------------------------------------------------------
3865
+ BuiltInDataTest: test_should_return_true_for_built_in?
3866
+ ------------------------------------------------------
3867
+  (0.0ms) rollback transaction
3868
+  (0.0ms) begin transaction
3869
+ ----------------------------------------------------------
3870
+ BuiltInDataTest: test_should_update_existing_built_in_data
3871
+ ----------------------------------------------------------
3872
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3873
+  (0.0ms) SAVEPOINT active_record_1
3874
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3875
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:44:58.878317"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:44:58.878317"], ["url", "http://www.nps.gov/yell/index.htm"]]
3876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3877
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3878
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3879
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3880
+  (0.0ms) SAVEPOINT active_record_1
3881
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
3882
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:44:58.880475"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
3883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3884
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3885
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3886
+  (0.8ms) rollback transaction
3887
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3888
+  (0.1ms) begin transaction
3889
+ -----------------------------------------------
3890
+ BuiltInDataTest: test_should_load_built_in_data
3891
+ -----------------------------------------------
3892
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3893
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3894
+  (0.0ms) SAVEPOINT active_record_1
3895
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3896
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:48:37.553143"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.553143"], ["url", "http://www.nps.gov/yell/index.htm"]]
3897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3898
+ NationalPark Load (0.3ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3899
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3900
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3901
+  (0.5ms) rollback transaction
3902
+  (0.0ms) begin transaction
3903
+ --------------------------------------------------------------
3904
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
3905
+ --------------------------------------------------------------
3906
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
3907
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3908
+  (0.0ms) SAVEPOINT active_record_1
3909
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3910
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:48:37.561564"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.561564"], ["url", "http://www.nps.gov/yell/index.htm"]]
3911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3912
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3913
+  (0.0ms) SAVEPOINT active_record_1
3914
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3915
+ SQL (0.7ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:48:37.563256"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:48:37.563256"], ["url", "http://www.nps.gov/glac/index.htm"]]
3916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3917
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3918
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3919
+  (1.4ms) rollback transaction
3920
+  (0.0ms) begin transaction
3921
+ --------------------------------------------------------------
3922
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
3923
+ --------------------------------------------------------------
3924
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3925
+  (0.0ms) SAVEPOINT active_record_1
3926
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3927
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:48:37.570411"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.570411"], ["url", "http://www.nps.gov/yell/index.htm"]]
3928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3929
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3930
+  (0.0ms) SAVEPOINT active_record_1
3931
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3932
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:48:37.572178"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:48:37.572178"], ["url", "http://www.nps.gov/glac/index.htm"]]
3933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3934
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3935
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3936
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3937
+  (0.0ms) SAVEPOINT active_record_1
3938
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
3939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3940
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3941
+  (0.0ms) SAVEPOINT active_record_1
3942
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
3943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3944
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3945
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3946
+  (0.5ms) rollback transaction
3947
+  (0.1ms) begin transaction
3948
+ -----------------------------------------------
3949
+ BuiltInDataTest: test_should_load_yaml_defaults
3950
+ -----------------------------------------------
3951
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3952
+  (0.0ms) SAVEPOINT active_record_1
3953
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
3954
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:48:37.580218"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.580218"], ["url", "http://www.nps.gov/yell/index.htm"]]
3955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3956
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3957
+  (0.0ms) SAVEPOINT active_record_1
3958
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
3959
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:48:37.581789"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:48:37.581789"], ["url", "http://www.nps.gov/glac/index.htm"]]
3960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3961
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3962
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
3963
+  (0.4ms) rollback transaction
3964
+  (0.0ms) begin transaction
3965
+ -----------------------------------------------------------------------
3966
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
3967
+ -----------------------------------------------------------------------
3968
+  (0.0ms) SAVEPOINT active_record_1
3969
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:48:37.584280"], ["name", "Testing"], ["updated_at", "2014-11-13 21:48:37.584280"]]
3970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3971
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3972
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3973
+  (0.0ms) SAVEPOINT active_record_1
3974
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3975
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:48:37.586197"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.586197"], ["url", "http://www.nps.gov/yell/index.htm"]]
3976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3977
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3978
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3979
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
3980
+  (0.4ms) rollback transaction
3981
+  (0.0ms) begin transaction
3982
+ -----------------------------------------------------
3983
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
3984
+ -----------------------------------------------------
3985
+  (0.0ms) rollback transaction
3986
+  (0.1ms) begin transaction
3987
+ -------------------------------------------------
3988
+ BuiltInDataTest: test_should_remove_built_in_data
3989
+ -------------------------------------------------
3990
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3991
+  (0.0ms) SAVEPOINT active_record_1
3992
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
3993
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:48:37.590902"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.590902"], ["url", "http://www.nps.gov/yell/index.htm"]]
3994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3995
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3996
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
3997
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
3998
+  (0.0ms) SAVEPOINT active_record_1
3999
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4000
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4001
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4002
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4003
+  (0.4ms) rollback transaction
4004
+  (0.1ms) begin transaction
4005
+ -------------------------------------------------------------------
4006
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4007
+ -------------------------------------------------------------------
4008
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4009
+  (0.1ms) SAVEPOINT active_record_1
4010
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4011
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:48:37.596052"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.596052"], ["url", "http://www.nps.gov/yell/index.htm"]]
4012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4013
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4014
+  (0.0ms) SAVEPOINT active_record_1
4015
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4016
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:48:37.597644"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:48:37.597644"], ["url", "http://www.nps.gov/glac/index.htm"]]
4017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4018
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4019
+  (0.9ms) rollback transaction
4020
+  (0.0ms) begin transaction
4021
+ -------------------------------------------------------
4022
+ BuiltInDataTest: test_should_return_false_for_built_in?
4023
+ -------------------------------------------------------
4024
+  (0.0ms) rollback transaction
4025
+  (0.0ms) begin transaction
4026
+ ------------------------------------------------------
4027
+ BuiltInDataTest: test_should_return_true_for_built_in?
4028
+ ------------------------------------------------------
4029
+  (0.0ms) rollback transaction
4030
+  (0.0ms) begin transaction
4031
+ ----------------------------------------------------------
4032
+ BuiltInDataTest: test_should_update_existing_built_in_data
4033
+ ----------------------------------------------------------
4034
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4035
+  (0.0ms) SAVEPOINT active_record_1
4036
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4037
+ SQL (0.6ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:48:37.601807"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:48:37.601807"], ["url", "http://www.nps.gov/yell/index.htm"]]
4038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4039
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4040
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4041
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4042
+  (0.0ms) SAVEPOINT active_record_1
4043
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4044
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:48:37.604503"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4046
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4047
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4048
+  (0.4ms) rollback transaction
4049
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4050
+  (0.1ms) begin transaction
4051
+ -----------------------------------------------
4052
+ BuiltInDataTest: test_should_load_built_in_data
4053
+ -----------------------------------------------
4054
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4055
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4056
+  (0.0ms) SAVEPOINT active_record_1
4057
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4058
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:49:57.095457"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.095457"], ["url", "http://www.nps.gov/yell/index.htm"]]
4059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4060
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4061
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4062
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4063
+  (0.5ms) rollback transaction
4064
+  (0.0ms) begin transaction
4065
+ --------------------------------------------------------------
4066
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4067
+ --------------------------------------------------------------
4068
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4069
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4070
+  (0.0ms) SAVEPOINT active_record_1
4071
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4072
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["active", "t"], ["built_in_key", "DEFAULTS"], ["created_at", "2014-11-13 21:49:57.104704"], ["updated_at", "2014-11-13 21:49:57.104704"]]
4073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4074
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4075
+  (0.0ms) SAVEPOINT active_record_1
4076
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4077
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:49:57.106814"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.106814"], ["url", "http://www.nps.gov/yell/index.htm"]]
4078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4079
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4080
+  (0.0ms) SAVEPOINT active_record_1
4081
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4082
+ SQL (0.1ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:49:57.111486"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:49:57.111486"], ["url", "http://www.nps.gov/glac/index.htm"]]
4083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4084
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4085
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4086
+  (0.5ms) rollback transaction
4087
+  (0.0ms) begin transaction
4088
+ --------------------------------------------------------------
4089
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4090
+ --------------------------------------------------------------
4091
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4092
+  (0.0ms) SAVEPOINT active_record_1
4093
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4094
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["active", "t"], ["built_in_key", "DEFAULTS"], ["created_at", "2014-11-13 21:49:57.115559"], ["updated_at", "2014-11-13 21:49:57.115559"]]
4095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4096
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4097
+  (0.0ms) SAVEPOINT active_record_1
4098
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4099
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:49:57.117344"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.117344"], ["url", "http://www.nps.gov/yell/index.htm"]]
4100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4101
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4102
+  (0.0ms) SAVEPOINT active_record_1
4103
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4104
+ SQL (0.1ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:49:57.118999"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:49:57.118999"], ["url", "http://www.nps.gov/glac/index.htm"]]
4105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4106
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4107
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4108
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4109
+  (0.1ms) SAVEPOINT active_record_1
4110
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'DEFAULTS' AND "national_parks"."id" != 1) LIMIT 1
4111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4112
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4113
+  (0.0ms) SAVEPOINT active_record_1
4114
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 2) LIMIT 1
4115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4116
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4117
+  (0.0ms) SAVEPOINT active_record_1
4118
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 3) LIMIT 1
4119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4120
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4121
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4122
+  (0.5ms) rollback transaction
4123
+  (0.1ms) begin transaction
4124
+ -----------------------------------------------
4125
+ BuiltInDataTest: test_should_load_yaml_defaults
4126
+ -----------------------------------------------
4127
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4128
+  (0.0ms) SAVEPOINT active_record_1
4129
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4130
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["active", "t"], ["built_in_key", "DEFAULTS"], ["created_at", "2014-11-13 21:49:57.127134"], ["updated_at", "2014-11-13 21:49:57.127134"]]
4131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4132
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4133
+  (0.0ms) SAVEPOINT active_record_1
4134
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4135
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:49:57.128792"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.128792"], ["url", "http://www.nps.gov/yell/index.htm"]]
4136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4137
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4138
+  (0.0ms) SAVEPOINT active_record_1
4139
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4140
+ SQL (0.0ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:49:57.130349"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:49:57.130349"], ["url", "http://www.nps.gov/glac/index.htm"]]
4141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4142
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4143
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4144
+  (0.4ms) rollback transaction
4145
+  (0.1ms) begin transaction
4146
+ -----------------------------------------------------------------------
4147
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4148
+ -----------------------------------------------------------------------
4149
+  (0.0ms) SAVEPOINT active_record_1
4150
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:49:57.132602"], ["name", "Testing"], ["updated_at", "2014-11-13 21:49:57.132602"]]
4151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4152
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4153
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4154
+  (0.0ms) SAVEPOINT active_record_1
4155
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4156
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:49:57.134410"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.134410"], ["url", "http://www.nps.gov/yell/index.htm"]]
4157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4158
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4159
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4160
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4161
+  (0.5ms) rollback transaction
4162
+  (0.0ms) begin transaction
4163
+ -----------------------------------------------------
4164
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4165
+ -----------------------------------------------------
4166
+  (0.0ms) rollback transaction
4167
+  (0.0ms) begin transaction
4168
+ -------------------------------------------------
4169
+ BuiltInDataTest: test_should_remove_built_in_data
4170
+ -------------------------------------------------
4171
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4172
+  (0.0ms) SAVEPOINT active_record_1
4173
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4174
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:49:57.139082"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.139082"], ["url", "http://www.nps.gov/yell/index.htm"]]
4175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4176
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4177
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4178
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4179
+  (0.0ms) SAVEPOINT active_record_1
4180
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4182
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4183
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4184
+  (0.4ms) rollback transaction
4185
+  (0.1ms) begin transaction
4186
+ -------------------------------------------------------------------
4187
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4188
+ -------------------------------------------------------------------
4189
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4190
+  (0.0ms) SAVEPOINT active_record_1
4191
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'DEFAULTS' LIMIT 1
4192
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["active", "t"], ["built_in_key", "DEFAULTS"], ["created_at", "2014-11-13 21:49:57.143945"], ["updated_at", "2014-11-13 21:49:57.143945"]]
4193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4194
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4195
+  (0.0ms) SAVEPOINT active_record_1
4196
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4197
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:49:57.145555"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.145555"], ["url", "http://www.nps.gov/yell/index.htm"]]
4198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4199
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4200
+  (0.0ms) SAVEPOINT active_record_1
4201
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4202
+ SQL (0.1ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "glacier"], ["created_at", "2014-11-13 21:49:57.147043"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:49:57.147043"], ["url", "http://www.nps.gov/glac/index.htm"]]
4203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4204
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4205
+  (0.5ms) rollback transaction
4206
+  (0.1ms) begin transaction
4207
+ -------------------------------------------------------
4208
+ BuiltInDataTest: test_should_return_false_for_built_in?
4209
+ -------------------------------------------------------
4210
+  (0.0ms) rollback transaction
4211
+  (0.0ms) begin transaction
4212
+ ------------------------------------------------------
4213
+ BuiltInDataTest: test_should_return_true_for_built_in?
4214
+ ------------------------------------------------------
4215
+  (0.0ms) rollback transaction
4216
+  (0.0ms) begin transaction
4217
+ ----------------------------------------------------------
4218
+ BuiltInDataTest: test_should_update_existing_built_in_data
4219
+ ----------------------------------------------------------
4220
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4221
+  (0.0ms) SAVEPOINT active_record_1
4222
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4223
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:49:57.152768"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:49:57.152768"], ["url", "http://www.nps.gov/yell/index.htm"]]
4224
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4225
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4226
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4227
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4228
+  (0.0ms) SAVEPOINT active_record_1
4229
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4230
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:49:57.154846"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4232
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4233
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4234
+  (0.5ms) rollback transaction
4235
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4236
+  (0.1ms) begin transaction
4237
+ -----------------------------------------------
4238
+ BuiltInDataTest: test_should_load_built_in_data
4239
+ -----------------------------------------------
4240
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4241
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4242
+  (0.1ms) SAVEPOINT active_record_1
4243
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4244
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:00.128300"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.128300"], ["url", "http://www.nps.gov/yell/index.htm"]]
4245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4246
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4247
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4248
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4249
+  (0.4ms) rollback transaction
4250
+  (0.1ms) begin transaction
4251
+ --------------------------------------------------------------
4252
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4253
+ --------------------------------------------------------------
4254
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4255
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4256
+  (0.0ms) SAVEPOINT active_record_1
4257
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4258
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:00.136297"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.136297"], ["url", "http://www.nps.gov/yell/index.htm"]]
4259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4260
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4261
+  (0.0ms) SAVEPOINT active_record_1
4262
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4263
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:00.138087"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:00.138087"], ["url", "http://www.nps.gov/glac/index.htm"]]
4264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4265
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4266
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4267
+  (0.4ms) rollback transaction
4268
+  (0.1ms) begin transaction
4269
+ --------------------------------------------------------------
4270
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4271
+ --------------------------------------------------------------
4272
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4273
+  (0.0ms) SAVEPOINT active_record_1
4274
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4275
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:00.144312"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.144312"], ["url", "http://www.nps.gov/yell/index.htm"]]
4276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4277
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4278
+  (0.0ms) SAVEPOINT active_record_1
4279
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4280
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:00.146170"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:00.146170"], ["url", "http://www.nps.gov/glac/index.htm"]]
4281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4282
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4283
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4284
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4285
+  (0.0ms) SAVEPOINT active_record_1
4286
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
4287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4288
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4289
+  (0.0ms) SAVEPOINT active_record_1
4290
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
4291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4292
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4293
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4294
+  (0.6ms) rollback transaction
4295
+  (0.0ms) begin transaction
4296
+ -----------------------------------------------
4297
+ BuiltInDataTest: test_should_load_yaml_defaults
4298
+ -----------------------------------------------
4299
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4300
+  (0.0ms) SAVEPOINT active_record_1
4301
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4302
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:00.154894"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.154894"], ["url", "http://www.nps.gov/yell/index.htm"]]
4303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4304
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4305
+  (0.0ms) SAVEPOINT active_record_1
4306
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4307
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:00.156763"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:00.156763"], ["url", "http://www.nps.gov/glac/index.htm"]]
4308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4309
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4310
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4311
+  (0.4ms) rollback transaction
4312
+  (0.0ms) begin transaction
4313
+ -----------------------------------------------------------------------
4314
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4315
+ -----------------------------------------------------------------------
4316
+  (0.0ms) SAVEPOINT active_record_1
4317
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:51:00.159182"], ["name", "Testing"], ["updated_at", "2014-11-13 21:51:00.159182"]]
4318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4319
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4320
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4321
+  (0.0ms) SAVEPOINT active_record_1
4322
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4323
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:00.161037"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.161037"], ["url", "http://www.nps.gov/yell/index.htm"]]
4324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4325
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4326
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4327
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4328
+  (0.4ms) rollback transaction
4329
+  (0.0ms) begin transaction
4330
+ -----------------------------------------------------
4331
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4332
+ -----------------------------------------------------
4333
+  (0.1ms) rollback transaction
4334
+  (0.1ms) begin transaction
4335
+ -------------------------------------------------
4336
+ BuiltInDataTest: test_should_remove_built_in_data
4337
+ -------------------------------------------------
4338
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4339
+  (0.0ms) SAVEPOINT active_record_1
4340
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4341
+ SQL (0.6ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:00.165624"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.165624"], ["url", "http://www.nps.gov/yell/index.htm"]]
4342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4343
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4344
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4345
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4346
+  (0.0ms) SAVEPOINT active_record_1
4347
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4348
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4349
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4350
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4351
+  (0.4ms) rollback transaction
4352
+  (0.1ms) begin transaction
4353
+ -------------------------------------------------------------------
4354
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4355
+ -------------------------------------------------------------------
4356
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4357
+  (0.0ms) SAVEPOINT active_record_1
4358
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4359
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:00.171164"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.171164"], ["url", "http://www.nps.gov/yell/index.htm"]]
4360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4361
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4362
+  (0.0ms) SAVEPOINT active_record_1
4363
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4364
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:00.172729"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:00.172729"], ["url", "http://www.nps.gov/glac/index.htm"]]
4365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4366
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4367
+  (0.4ms) rollback transaction
4368
+  (0.1ms) begin transaction
4369
+ -------------------------------------------------------
4370
+ BuiltInDataTest: test_should_return_false_for_built_in?
4371
+ -------------------------------------------------------
4372
+  (0.0ms) rollback transaction
4373
+  (0.0ms) begin transaction
4374
+ ------------------------------------------------------
4375
+ BuiltInDataTest: test_should_return_true_for_built_in?
4376
+ ------------------------------------------------------
4377
+  (0.0ms) rollback transaction
4378
+  (0.0ms) begin transaction
4379
+ ----------------------------------------------------------
4380
+ BuiltInDataTest: test_should_update_existing_built_in_data
4381
+ ----------------------------------------------------------
4382
+ NationalPark Load (0.3ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4383
+  (0.0ms) SAVEPOINT active_record_1
4384
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4385
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:00.176554"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:00.176554"], ["url", "http://www.nps.gov/yell/index.htm"]]
4386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4387
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4388
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4389
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4390
+  (0.0ms) SAVEPOINT active_record_1
4391
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4392
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:51:00.178573"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4394
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4395
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4396
+  (0.4ms) rollback transaction
4397
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4398
+  (0.1ms) begin transaction
4399
+ -----------------------------------------------
4400
+ BuiltInDataTest: test_should_load_built_in_data
4401
+ -----------------------------------------------
4402
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4403
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4404
+  (0.1ms) SAVEPOINT active_record_1
4405
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4406
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:31.548031"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.548031"], ["url", "http://www.nps.gov/yell/index.htm"]]
4407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4408
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4409
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4410
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4411
+  (0.4ms) rollback transaction
4412
+  (0.0ms) begin transaction
4413
+ --------------------------------------------------------------
4414
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4415
+ --------------------------------------------------------------
4416
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4417
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4418
+  (0.0ms) SAVEPOINT active_record_1
4419
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4420
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:31.556560"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.556560"], ["url", "http://www.nps.gov/yell/index.htm"]]
4421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4422
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4423
+  (0.0ms) SAVEPOINT active_record_1
4424
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4425
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:31.558410"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:31.558410"], ["url", "http://www.nps.gov/glac/index.htm"]]
4426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4427
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4428
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4429
+  (1.3ms) rollback transaction
4430
+  (0.0ms) begin transaction
4431
+ --------------------------------------------------------------
4432
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4433
+ --------------------------------------------------------------
4434
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4435
+  (0.0ms) SAVEPOINT active_record_1
4436
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4437
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:31.563731"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.563731"], ["url", "http://www.nps.gov/yell/index.htm"]]
4438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4439
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4440
+  (0.0ms) SAVEPOINT active_record_1
4441
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4442
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:31.565421"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:31.565421"], ["url", "http://www.nps.gov/glac/index.htm"]]
4443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4444
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4445
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4446
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4447
+  (0.0ms) SAVEPOINT active_record_1
4448
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
4449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4450
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4451
+  (0.1ms) SAVEPOINT active_record_1
4452
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
4453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4454
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4455
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4456
+  (1.2ms) rollback transaction
4457
+  (0.0ms) begin transaction
4458
+ -----------------------------------------------
4459
+ BuiltInDataTest: test_should_load_yaml_defaults
4460
+ -----------------------------------------------
4461
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4462
+  (0.0ms) SAVEPOINT active_record_1
4463
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4464
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:31.574367"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.574367"], ["url", "http://www.nps.gov/yell/index.htm"]]
4465
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4466
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4467
+  (0.0ms) SAVEPOINT active_record_1
4468
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4469
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:31.575929"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:31.575929"], ["url", "http://www.nps.gov/glac/index.htm"]]
4470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4471
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4472
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4473
+  (0.4ms) rollback transaction
4474
+  (0.0ms) begin transaction
4475
+ -----------------------------------------------------------------------
4476
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4477
+ -----------------------------------------------------------------------
4478
+  (0.0ms) SAVEPOINT active_record_1
4479
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:51:31.578370"], ["name", "Testing"], ["updated_at", "2014-11-13 21:51:31.578370"]]
4480
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4481
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4482
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4483
+  (0.0ms) SAVEPOINT active_record_1
4484
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4485
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:31.580159"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.580159"], ["url", "http://www.nps.gov/yell/index.htm"]]
4486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4487
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4488
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4489
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4490
+  (0.9ms) rollback transaction
4491
+  (0.0ms) begin transaction
4492
+ -----------------------------------------------------
4493
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4494
+ -----------------------------------------------------
4495
+  (0.0ms) rollback transaction
4496
+  (0.0ms) begin transaction
4497
+ -------------------------------------------------
4498
+ BuiltInDataTest: test_should_remove_built_in_data
4499
+ -------------------------------------------------
4500
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4501
+  (0.0ms) SAVEPOINT active_record_1
4502
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4503
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:31.585075"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.585075"], ["url", "http://www.nps.gov/yell/index.htm"]]
4504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4505
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4506
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4507
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4508
+  (0.0ms) SAVEPOINT active_record_1
4509
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4511
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4512
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4513
+  (0.4ms) rollback transaction
4514
+  (0.1ms) begin transaction
4515
+ -------------------------------------------------------------------
4516
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4517
+ -------------------------------------------------------------------
4518
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4519
+  (0.0ms) SAVEPOINT active_record_1
4520
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4521
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:51:31.590580"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.590580"], ["url", "http://www.nps.gov/yell/index.htm"]]
4522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4523
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4524
+  (0.0ms) SAVEPOINT active_record_1
4525
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4526
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:51:31.592126"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:51:31.592126"], ["url", "http://www.nps.gov/glac/index.htm"]]
4527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4528
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4529
+  (0.9ms) rollback transaction
4530
+  (0.0ms) begin transaction
4531
+ -------------------------------------------------------
4532
+ BuiltInDataTest: test_should_return_false_for_built_in?
4533
+ -------------------------------------------------------
4534
+  (0.0ms) rollback transaction
4535
+  (0.0ms) begin transaction
4536
+ ------------------------------------------------------
4537
+ BuiltInDataTest: test_should_return_true_for_built_in?
4538
+ ------------------------------------------------------
4539
+  (0.0ms) rollback transaction
4540
+  (0.0ms) begin transaction
4541
+ ----------------------------------------------------------
4542
+ BuiltInDataTest: test_should_update_existing_built_in_data
4543
+ ----------------------------------------------------------
4544
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4545
+  (0.0ms) SAVEPOINT active_record_1
4546
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4547
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:51:31.596314"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:51:31.596314"], ["url", "http://www.nps.gov/yell/index.htm"]]
4548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4549
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4550
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4551
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4552
+  (0.0ms) SAVEPOINT active_record_1
4553
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4554
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:51:31.598326"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4555
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4556
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4557
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4558
+  (0.4ms) rollback transaction
4559
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4560
+  (0.1ms) begin transaction
4561
+ -----------------------------------------------
4562
+ BuiltInDataTest: test_should_load_built_in_data
4563
+ -----------------------------------------------
4564
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4565
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4566
+  (0.1ms) SAVEPOINT active_record_1
4567
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4568
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:52:06.665015"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.665015"], ["url", "http://www.nps.gov/yell/index.htm"]]
4569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4570
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4571
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4572
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4573
+  (0.4ms) rollback transaction
4574
+  (0.0ms) begin transaction
4575
+ --------------------------------------------------------------
4576
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4577
+ --------------------------------------------------------------
4578
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4579
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4580
+  (0.0ms) SAVEPOINT active_record_1
4581
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4582
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:52:06.673056"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.673056"], ["url", "http://www.nps.gov/yell/index.htm"]]
4583
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4584
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4585
+  (0.0ms) SAVEPOINT active_record_1
4586
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4587
+ SQL (0.7ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:52:06.674823"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:52:06.674823"], ["url", "http://www.nps.gov/glac/index.htm"]]
4588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4589
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4590
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4591
+  (0.4ms) rollback transaction
4592
+  (0.1ms) begin transaction
4593
+ --------------------------------------------------------------
4594
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4595
+ --------------------------------------------------------------
4596
+ NationalPark Load (0.2ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4597
+  (0.0ms) SAVEPOINT active_record_1
4598
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4599
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:52:06.681628"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.681628"], ["url", "http://www.nps.gov/yell/index.htm"]]
4600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4601
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4602
+  (0.0ms) SAVEPOINT active_record_1
4603
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4604
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:52:06.683449"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:52:06.683449"], ["url", "http://www.nps.gov/glac/index.htm"]]
4605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4606
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4607
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4608
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4609
+  (0.0ms) SAVEPOINT active_record_1
4610
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
4611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4612
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4613
+  (0.0ms) SAVEPOINT active_record_1
4614
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
4615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4616
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4617
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4618
+  (0.5ms) rollback transaction
4619
+  (0.0ms) begin transaction
4620
+ -----------------------------------------------
4621
+ BuiltInDataTest: test_should_load_yaml_defaults
4622
+ -----------------------------------------------
4623
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4624
+  (0.0ms) SAVEPOINT active_record_1
4625
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4626
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:52:06.691124"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.691124"], ["url", "http://www.nps.gov/yell/index.htm"]]
4627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4628
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4629
+  (0.0ms) SAVEPOINT active_record_1
4630
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4631
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:52:06.693024"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:52:06.693024"], ["url", "http://www.nps.gov/glac/index.htm"]]
4632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4633
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4634
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4635
+  (0.6ms) rollback transaction
4636
+  (0.1ms) begin transaction
4637
+ -----------------------------------------------------------------------
4638
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4639
+ -----------------------------------------------------------------------
4640
+  (0.0ms) SAVEPOINT active_record_1
4641
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:52:06.695710"], ["name", "Testing"], ["updated_at", "2014-11-13 21:52:06.695710"]]
4642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4643
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4644
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4645
+  (0.0ms) SAVEPOINT active_record_1
4646
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4647
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:52:06.697548"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.697548"], ["url", "http://www.nps.gov/yell/index.htm"]]
4648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4649
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4650
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4651
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4652
+  (0.4ms) rollback transaction
4653
+  (0.1ms) begin transaction
4654
+ -----------------------------------------------------
4655
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4656
+ -----------------------------------------------------
4657
+  (0.0ms) rollback transaction
4658
+  (0.0ms) begin transaction
4659
+ -------------------------------------------------
4660
+ BuiltInDataTest: test_should_remove_built_in_data
4661
+ -------------------------------------------------
4662
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4663
+  (0.0ms) SAVEPOINT active_record_1
4664
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4665
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:52:06.701992"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.701992"], ["url", "http://www.nps.gov/yell/index.htm"]]
4666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4667
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4668
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4669
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4670
+  (0.0ms) SAVEPOINT active_record_1
4671
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4673
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4674
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4675
+  (0.4ms) rollback transaction
4676
+  (0.0ms) begin transaction
4677
+ -------------------------------------------------------------------
4678
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4679
+ -------------------------------------------------------------------
4680
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4681
+  (0.0ms) SAVEPOINT active_record_1
4682
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4683
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:52:06.707709"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.707709"], ["url", "http://www.nps.gov/yell/index.htm"]]
4684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4685
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4686
+  (0.0ms) SAVEPOINT active_record_1
4687
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4688
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:52:06.709240"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:52:06.709240"], ["url", "http://www.nps.gov/glac/index.htm"]]
4689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4690
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4691
+  (0.4ms) rollback transaction
4692
+  (0.1ms) begin transaction
4693
+ -------------------------------------------------------
4694
+ BuiltInDataTest: test_should_return_false_for_built_in?
4695
+ -------------------------------------------------------
4696
+  (0.0ms) rollback transaction
4697
+  (0.0ms) begin transaction
4698
+ ------------------------------------------------------
4699
+ BuiltInDataTest: test_should_return_true_for_built_in?
4700
+ ------------------------------------------------------
4701
+  (0.0ms) rollback transaction
4702
+  (0.0ms) begin transaction
4703
+ ----------------------------------------------------------
4704
+ BuiltInDataTest: test_should_update_existing_built_in_data
4705
+ ----------------------------------------------------------
4706
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4707
+  (0.0ms) SAVEPOINT active_record_1
4708
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4709
+ SQL (0.1ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:52:06.712791"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:52:06.712791"], ["url", "http://www.nps.gov/yell/index.htm"]]
4710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4711
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4712
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4713
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4714
+  (0.0ms) SAVEPOINT active_record_1
4715
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4716
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:52:06.714760"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4718
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4719
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4720
+  (0.6ms) rollback transaction
4721
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4722
+  (0.1ms) begin transaction
4723
+ -----------------------------------------------
4724
+ BuiltInDataTest: test_should_load_built_in_data
4725
+ -----------------------------------------------
4726
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4727
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4728
+  (0.1ms) SAVEPOINT active_record_1
4729
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4730
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:54:03.704444"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.704444"], ["url", "http://www.nps.gov/yell/index.htm"]]
4731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4732
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4733
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4734
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4735
+  (0.4ms) rollback transaction
4736
+  (0.0ms) begin transaction
4737
+ --------------------------------------------------------------
4738
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4739
+ --------------------------------------------------------------
4740
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4741
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4742
+  (0.0ms) SAVEPOINT active_record_1
4743
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4744
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:54:03.712456"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.712456"], ["url", "http://www.nps.gov/yell/index.htm"]]
4745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4746
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4747
+  (0.0ms) SAVEPOINT active_record_1
4748
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4749
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:54:03.714296"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:54:03.714296"], ["url", "http://www.nps.gov/glac/index.htm"]]
4750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4751
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4752
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4753
+  (1.2ms) rollback transaction
4754
+  (0.0ms) begin transaction
4755
+ --------------------------------------------------------------
4756
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4757
+ --------------------------------------------------------------
4758
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4759
+  (0.0ms) SAVEPOINT active_record_1
4760
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4761
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:54:03.720218"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.720218"], ["url", "http://www.nps.gov/yell/index.htm"]]
4762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4763
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4764
+  (0.0ms) SAVEPOINT active_record_1
4765
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4766
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:54:03.722165"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:54:03.722165"], ["url", "http://www.nps.gov/glac/index.htm"]]
4767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4768
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4769
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4770
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4771
+  (0.0ms) SAVEPOINT active_record_1
4772
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
4773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4774
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4775
+  (0.0ms) SAVEPOINT active_record_1
4776
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
4777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4778
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4779
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4780
+  (0.8ms) rollback transaction
4781
+  (0.0ms) begin transaction
4782
+ -----------------------------------------------
4783
+ BuiltInDataTest: test_should_load_yaml_defaults
4784
+ -----------------------------------------------
4785
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4786
+  (0.0ms) SAVEPOINT active_record_1
4787
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4788
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:54:03.730457"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.730457"], ["url", "http://www.nps.gov/yell/index.htm"]]
4789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4790
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4791
+  (0.0ms) SAVEPOINT active_record_1
4792
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4793
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:54:03.732129"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:54:03.732129"], ["url", "http://www.nps.gov/glac/index.htm"]]
4794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4795
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4796
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4797
+  (0.4ms) rollback transaction
4798
+  (0.0ms) begin transaction
4799
+ -----------------------------------------------------------------------
4800
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4801
+ -----------------------------------------------------------------------
4802
+  (0.0ms) SAVEPOINT active_record_1
4803
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:54:03.734525"], ["name", "Testing"], ["updated_at", "2014-11-13 21:54:03.734525"]]
4804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4805
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4806
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4807
+  (0.0ms) SAVEPOINT active_record_1
4808
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4809
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:54:03.736412"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.736412"], ["url", "http://www.nps.gov/yell/index.htm"]]
4810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4811
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4812
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4813
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4814
+  (0.4ms) rollback transaction
4815
+  (0.0ms) begin transaction
4816
+ -----------------------------------------------------
4817
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4818
+ -----------------------------------------------------
4819
+  (0.0ms) rollback transaction
4820
+  (0.0ms) begin transaction
4821
+ -------------------------------------------------
4822
+ BuiltInDataTest: test_should_remove_built_in_data
4823
+ -------------------------------------------------
4824
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4825
+  (0.0ms) SAVEPOINT active_record_1
4826
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4827
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:54:03.741431"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.741431"], ["url", "http://www.nps.gov/yell/index.htm"]]
4828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4829
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4830
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4831
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4832
+  (0.0ms) SAVEPOINT active_record_1
4833
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4835
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4836
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4837
+  (0.5ms) rollback transaction
4838
+  (0.1ms) begin transaction
4839
+ -------------------------------------------------------------------
4840
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
4841
+ -------------------------------------------------------------------
4842
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4843
+  (0.0ms) SAVEPOINT active_record_1
4844
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4845
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:54:03.746470"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.746470"], ["url", "http://www.nps.gov/yell/index.htm"]]
4846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4847
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4848
+  (0.0ms) SAVEPOINT active_record_1
4849
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4850
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:54:03.748003"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:54:03.748003"], ["url", "http://www.nps.gov/glac/index.htm"]]
4851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4852
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4853
+  (0.6ms) rollback transaction
4854
+  (0.0ms) begin transaction
4855
+ -------------------------------------------------------
4856
+ BuiltInDataTest: test_should_return_false_for_built_in?
4857
+ -------------------------------------------------------
4858
+  (0.0ms) rollback transaction
4859
+  (0.0ms) begin transaction
4860
+ ------------------------------------------------------
4861
+ BuiltInDataTest: test_should_return_true_for_built_in?
4862
+ ------------------------------------------------------
4863
+  (0.0ms) rollback transaction
4864
+  (0.0ms) begin transaction
4865
+ ----------------------------------------------------------
4866
+ BuiltInDataTest: test_should_update_existing_built_in_data
4867
+ ----------------------------------------------------------
4868
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4869
+  (0.0ms) SAVEPOINT active_record_1
4870
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4871
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:54:03.751910"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:54:03.751910"], ["url", "http://www.nps.gov/yell/index.htm"]]
4872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4873
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4874
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4875
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4876
+  (0.0ms) SAVEPOINT active_record_1
4877
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
4878
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:54:03.754192"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
4879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4880
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4881
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4882
+  (0.5ms) rollback transaction
4883
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4884
+  (0.1ms) begin transaction
4885
+ -----------------------------------------------
4886
+ BuiltInDataTest: test_should_load_built_in_data
4887
+ -----------------------------------------------
4888
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4889
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4890
+  (0.0ms) SAVEPOINT active_record_1
4891
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4892
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:55:52.315761"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.315761"], ["url", "http://www.nps.gov/yell/index.htm"]]
4893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4894
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4895
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4896
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4897
+  (0.4ms) rollback transaction
4898
+  (0.1ms) begin transaction
4899
+ --------------------------------------------------------------
4900
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
4901
+ --------------------------------------------------------------
4902
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
4903
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4904
+  (0.0ms) SAVEPOINT active_record_1
4905
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4906
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:55:52.323752"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.323752"], ["url", "http://www.nps.gov/yell/index.htm"]]
4907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4908
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4909
+  (0.0ms) SAVEPOINT active_record_1
4910
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4911
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:55:52.325629"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:55:52.325629"], ["url", "http://www.nps.gov/glac/index.htm"]]
4912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4913
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4914
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4915
+  (1.3ms) rollback transaction
4916
+  (0.1ms) begin transaction
4917
+ --------------------------------------------------------------
4918
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
4919
+ --------------------------------------------------------------
4920
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4921
+  (0.0ms) SAVEPOINT active_record_1
4922
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4923
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:55:52.330979"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.330979"], ["url", "http://www.nps.gov/yell/index.htm"]]
4924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4925
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4926
+  (0.0ms) SAVEPOINT active_record_1
4927
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4928
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:55:52.332785"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:55:52.332785"], ["url", "http://www.nps.gov/glac/index.htm"]]
4929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4930
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4931
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4932
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4933
+  (0.0ms) SAVEPOINT active_record_1
4934
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
4935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4936
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4937
+  (0.0ms) SAVEPOINT active_record_1
4938
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
4939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4940
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4941
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4942
+  (0.5ms) rollback transaction
4943
+  (0.0ms) begin transaction
4944
+ -----------------------------------------------
4945
+ BuiltInDataTest: test_should_load_yaml_defaults
4946
+ -----------------------------------------------
4947
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4948
+  (0.0ms) SAVEPOINT active_record_1
4949
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
4950
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:55:52.340574"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.340574"], ["url", "http://www.nps.gov/yell/index.htm"]]
4951
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4952
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4953
+  (0.0ms) SAVEPOINT active_record_1
4954
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
4955
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:55:52.342173"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:55:52.342173"], ["url", "http://www.nps.gov/glac/index.htm"]]
4956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4957
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4958
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
4959
+  (0.4ms) rollback transaction
4960
+  (0.1ms) begin transaction
4961
+ -----------------------------------------------------------------------
4962
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
4963
+ -----------------------------------------------------------------------
4964
+  (0.0ms) SAVEPOINT active_record_1
4965
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 21:55:52.345333"], ["name", "Testing"], ["updated_at", "2014-11-13 21:55:52.345333"]]
4966
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4967
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4968
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4969
+  (0.0ms) SAVEPOINT active_record_1
4970
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4971
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:55:52.347230"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.347230"], ["url", "http://www.nps.gov/yell/index.htm"]]
4972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4973
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4974
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4975
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
4976
+  (0.4ms) rollback transaction
4977
+  (0.0ms) begin transaction
4978
+ -----------------------------------------------------
4979
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
4980
+ -----------------------------------------------------
4981
+  (0.0ms) rollback transaction
4982
+  (0.0ms) begin transaction
4983
+ -------------------------------------------------
4984
+ BuiltInDataTest: test_should_remove_built_in_data
4985
+ -------------------------------------------------
4986
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4987
+  (0.0ms) SAVEPOINT active_record_1
4988
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4989
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:55:52.352135"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.352135"], ["url", "http://www.nps.gov/yell/index.htm"]]
4990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4991
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4992
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4993
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
4994
+  (0.0ms) SAVEPOINT active_record_1
4995
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
4996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4997
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
4998
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
4999
+  (0.4ms) rollback transaction
5000
+  (0.0ms) begin transaction
5001
+ -------------------------------------------------------------------
5002
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
5003
+ -------------------------------------------------------------------
5004
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5005
+  (0.0ms) SAVEPOINT active_record_1
5006
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5007
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 21:55:52.357103"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.357103"], ["url", "http://www.nps.gov/yell/index.htm"]]
5008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5009
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5010
+  (0.0ms) SAVEPOINT active_record_1
5011
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5012
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 21:55:52.358581"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 21:55:52.358581"], ["url", "http://www.nps.gov/glac/index.htm"]]
5013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5014
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5015
+  (0.4ms) rollback transaction
5016
+  (0.0ms) begin transaction
5017
+ -------------------------------------------------------
5018
+ BuiltInDataTest: test_should_return_false_for_built_in?
5019
+ -------------------------------------------------------
5020
+  (0.0ms) rollback transaction
5021
+  (0.0ms) begin transaction
5022
+ ------------------------------------------------------
5023
+ BuiltInDataTest: test_should_return_true_for_built_in?
5024
+ ------------------------------------------------------
5025
+  (0.0ms) rollback transaction
5026
+  (0.0ms) begin transaction
5027
+ ----------------------------------------------------------
5028
+ BuiltInDataTest: test_should_update_existing_built_in_data
5029
+ ----------------------------------------------------------
5030
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5031
+  (0.0ms) SAVEPOINT active_record_1
5032
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5033
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 21:55:52.362257"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 21:55:52.362257"], ["url", "http://www.nps.gov/yell/index.htm"]]
5034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5035
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5036
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5037
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5038
+  (0.0ms) SAVEPOINT active_record_1
5039
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
5040
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 21:55:52.364758"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
5041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5042
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5043
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5044
+  (0.5ms) rollback transaction
5045
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5046
+  (0.1ms) begin transaction
5047
+ -----------------------------------------------
5048
+ BuiltInDataTest: test_should_load_built_in_data
5049
+ -----------------------------------------------
5050
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5051
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5052
+  (0.0ms) SAVEPOINT active_record_1
5053
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5054
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:36:07.715986"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.715986"], ["url", "http://www.nps.gov/yell/index.htm"]]
5055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5056
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5057
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5058
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5059
+  (0.4ms) rollback transaction
5060
+  (0.0ms) begin transaction
5061
+ --------------------------------------------------------------
5062
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
5063
+ --------------------------------------------------------------
5064
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5065
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5066
+  (0.0ms) SAVEPOINT active_record_1
5067
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5068
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:36:07.723878"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.723878"], ["url", "http://www.nps.gov/yell/index.htm"]]
5069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5070
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5071
+  (0.0ms) SAVEPOINT active_record_1
5072
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5073
+ SQL (0.8ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:36:07.725714"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:36:07.725714"], ["url", "http://www.nps.gov/glac/index.htm"]]
5074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5075
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5076
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5077
+  (0.4ms) rollback transaction
5078
+  (0.1ms) begin transaction
5079
+ --------------------------------------------------------------
5080
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
5081
+ --------------------------------------------------------------
5082
+ NationalPark Load (0.9ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5083
+  (0.0ms) SAVEPOINT active_record_1
5084
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5085
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:36:07.732796"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.732796"], ["url", "http://www.nps.gov/yell/index.htm"]]
5086
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5087
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5088
+  (0.0ms) SAVEPOINT active_record_1
5089
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5090
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:36:07.736925"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:36:07.736925"], ["url", "http://www.nps.gov/glac/index.htm"]]
5091
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5092
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5093
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5094
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5095
+  (0.0ms) SAVEPOINT active_record_1
5096
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
5097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5098
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5099
+  (0.0ms) SAVEPOINT active_record_1
5100
+ NationalPark Exists (0.3ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
5101
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5102
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5103
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5104
+  (15.2ms) rollback transaction
5105
+  (0.1ms) begin transaction
5106
+ -----------------------------------------------
5107
+ BuiltInDataTest: test_should_load_yaml_defaults
5108
+ -----------------------------------------------
5109
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5110
+  (0.0ms) SAVEPOINT active_record_1
5111
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5112
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:36:07.764277"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.764277"], ["url", "http://www.nps.gov/yell/index.htm"]]
5113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5114
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5115
+  (0.0ms) SAVEPOINT active_record_1
5116
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5117
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:36:07.766299"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:36:07.766299"], ["url", "http://www.nps.gov/glac/index.htm"]]
5118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5119
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5120
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
5121
+  (27.9ms) rollback transaction
5122
+  (0.1ms) begin transaction
5123
+ -----------------------------------------------------------------------
5124
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
5125
+ -----------------------------------------------------------------------
5126
+  (0.1ms) SAVEPOINT active_record_1
5127
+ SQL (0.3ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 23:36:07.797375"], ["name", "Testing"], ["updated_at", "2014-11-13 23:36:07.797375"]]
5128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5129
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5130
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5131
+  (0.0ms) SAVEPOINT active_record_1
5132
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5133
+ SQL (0.3ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:36:07.799907"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.799907"], ["url", "http://www.nps.gov/yell/index.htm"]]
5134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5135
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5136
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5137
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
5138
+  (11.6ms) rollback transaction
5139
+  (0.1ms) begin transaction
5140
+ -----------------------------------------------------
5141
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
5142
+ -----------------------------------------------------
5143
+  (0.0ms) rollback transaction
5144
+  (0.0ms) begin transaction
5145
+ -------------------------------------------------
5146
+ BuiltInDataTest: test_should_remove_built_in_data
5147
+ -------------------------------------------------
5148
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5149
+  (0.0ms) SAVEPOINT active_record_1
5150
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5151
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:36:07.816652"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.816652"], ["url", "http://www.nps.gov/yell/index.htm"]]
5152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5153
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5154
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5155
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5156
+  (0.0ms) SAVEPOINT active_record_1
5157
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
5158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5159
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5160
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5161
+  (43.2ms) rollback transaction
5162
+  (0.1ms) begin transaction
5163
+ -------------------------------------------------------------------
5164
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
5165
+ -------------------------------------------------------------------
5166
+ NationalPark Load (0.2ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5167
+  (0.0ms) SAVEPOINT active_record_1
5168
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5169
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:36:07.866300"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.866300"], ["url", "http://www.nps.gov/yell/index.htm"]]
5170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5171
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5172
+  (0.0ms) SAVEPOINT active_record_1
5173
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5174
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:36:07.868256"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:36:07.868256"], ["url", "http://www.nps.gov/glac/index.htm"]]
5175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5176
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5177
+  (45.4ms) rollback transaction
5178
+  (0.1ms) begin transaction
5179
+ -------------------------------------------------------
5180
+ BuiltInDataTest: test_should_return_false_for_built_in?
5181
+ -------------------------------------------------------
5182
+  (0.0ms) rollback transaction
5183
+  (0.0ms) begin transaction
5184
+ ------------------------------------------------------
5185
+ BuiltInDataTest: test_should_return_true_for_built_in?
5186
+ ------------------------------------------------------
5187
+  (0.0ms) rollback transaction
5188
+  (0.0ms) begin transaction
5189
+ ----------------------------------------------------------
5190
+ BuiltInDataTest: test_should_update_existing_built_in_data
5191
+ ----------------------------------------------------------
5192
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5193
+  (0.0ms) SAVEPOINT active_record_1
5194
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5195
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:36:07.917857"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:36:07.917857"], ["url", "http://www.nps.gov/yell/index.htm"]]
5196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5197
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5198
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5199
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5200
+  (0.0ms) SAVEPOINT active_record_1
5201
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
5202
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 23:36:07.920473"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
5203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5204
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5205
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5206
+  (0.5ms) rollback transaction
5207
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5208
+  (0.1ms) begin transaction
5209
+ -----------------------------------------------
5210
+ BuiltInDataTest: test_should_load_built_in_data
5211
+ -----------------------------------------------
5212
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5213
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5214
+  (0.0ms) SAVEPOINT active_record_1
5215
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5216
+ SQL (0.4ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:40:33.243211"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.243211"], ["url", "http://www.nps.gov/yell/index.htm"]]
5217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5218
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5219
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5220
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5221
+  (0.4ms) rollback transaction
5222
+  (0.1ms) begin transaction
5223
+ --------------------------------------------------------------
5224
+ BuiltInDataTest: test_should_load_built_in_data_from_yaml_file
5225
+ --------------------------------------------------------------
5226
+  (0.1ms) SELECT COUNT(*) FROM "national_parks"
5227
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5228
+  (0.0ms) SAVEPOINT active_record_1
5229
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5230
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:40:33.251224"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.251224"], ["url", "http://www.nps.gov/yell/index.htm"]]
5231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5232
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5233
+  (0.0ms) SAVEPOINT active_record_1
5234
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5235
+ SQL (0.7ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:40:33.253368"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:40:33.253368"], ["url", "http://www.nps.gov/glac/index.htm"]]
5236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5237
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5238
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5239
+  (0.8ms) rollback transaction
5240
+  (0.0ms) begin transaction
5241
+ --------------------------------------------------------------
5242
+ BuiltInDataTest: test_should_load_elements_from_file_only_once
5243
+ --------------------------------------------------------------
5244
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5245
+  (0.0ms) SAVEPOINT active_record_1
5246
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5247
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:40:33.258290"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.258290"], ["url", "http://www.nps.gov/yell/index.htm"]]
5248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5249
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5250
+  (0.0ms) SAVEPOINT active_record_1
5251
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5252
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:40:33.260059"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:40:33.260059"], ["url", "http://www.nps.gov/glac/index.htm"]]
5253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5254
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5255
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5256
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5257
+  (0.0ms) SAVEPOINT active_record_1
5258
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'yellowstone' AND "national_parks"."id" != 1) LIMIT 1
5259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5260
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5261
+  (0.0ms) SAVEPOINT active_record_1
5262
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'glacier' AND "national_parks"."id" != 2) LIMIT 1
5263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5264
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5265
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5266
+  (0.5ms) rollback transaction
5267
+  (0.0ms) begin transaction
5268
+ -----------------------------------------------
5269
+ BuiltInDataTest: test_should_load_yaml_defaults
5270
+ -----------------------------------------------
5271
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5272
+  (0.0ms) SAVEPOINT active_record_1
5273
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5274
+ SQL (0.6ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:40:33.268023"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.268023"], ["url", "http://www.nps.gov/yell/index.htm"]]
5275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5276
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5277
+  (0.0ms) SAVEPOINT active_record_1
5278
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5279
+ SQL (0.3ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:40:33.270167"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:40:33.270167"], ["url", "http://www.nps.gov/glac/index.htm"]]
5280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5281
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5282
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."name" = 'Yellowstone National Park' LIMIT 1
5283
+  (0.4ms) rollback transaction
5284
+  (0.1ms) begin transaction
5285
+ -----------------------------------------------------------------------
5286
+ BuiltInDataTest: test_should_not_remove_a_record_without_a_built_in_key
5287
+ -----------------------------------------------------------------------
5288
+  (0.0ms) SAVEPOINT active_record_1
5289
+ SQL (0.2ms) INSERT INTO "national_parks" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-11-13 23:40:33.272713"], ["name", "Testing"], ["updated_at", "2014-11-13 23:40:33.272713"]]
5290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5291
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5292
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5293
+  (0.0ms) SAVEPOINT active_record_1
5294
+ NationalPark Exists (0.1ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5295
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:40:33.274548"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.274548"], ["url", "http://www.nps.gov/yell/index.htm"]]
5296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5297
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5298
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5299
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."id" = ? LIMIT 1 [["id", 1]]
5300
+  (0.5ms) rollback transaction
5301
+  (0.0ms) begin transaction
5302
+ -----------------------------------------------------
5303
+ BuiltInDataTest: test_should_process_erb_in_yaml_file
5304
+ -----------------------------------------------------
5305
+  (0.0ms) rollback transaction
5306
+  (0.0ms) begin transaction
5307
+ -------------------------------------------------
5308
+ BuiltInDataTest: test_should_remove_built_in_data
5309
+ -------------------------------------------------
5310
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5311
+  (0.0ms) SAVEPOINT active_record_1
5312
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5313
+ SQL (0.6ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:40:33.279056"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.279056"], ["url", "http://www.nps.gov/yell/index.htm"]]
5314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5315
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5316
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5317
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5318
+  (0.0ms) SAVEPOINT active_record_1
5319
+ SQL (0.2ms) DELETE FROM "national_parks" WHERE "national_parks"."id" = ? [["id", 1]]
5320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5321
+  (0.0ms) SELECT COUNT(*) FROM "national_parks"
5322
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5323
+  (0.4ms) rollback transaction
5324
+  (0.1ms) begin transaction
5325
+ -------------------------------------------------------------------
5326
+ BuiltInDataTest: test_should_return_active_record_objects_from_load
5327
+ -------------------------------------------------------------------
5328
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5329
+  (0.0ms) SAVEPOINT active_record_1
5330
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'yellowstone' LIMIT 1
5331
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "yellowstone"], ["created_at", "2014-11-13 23:40:33.284628"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.284628"], ["url", "http://www.nps.gov/yell/index.htm"]]
5332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5333
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5334
+  (0.0ms) SAVEPOINT active_record_1
5335
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'glacier' LIMIT 1
5336
+ SQL (0.2ms) INSERT INTO "national_parks" ("active", "built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?, ?) [["active", "t"], ["built_in_key", "glacier"], ["created_at", "2014-11-13 23:40:33.286150"], ["established", "1910-05-11"], ["name", "Glacier National Park"], ["updated_at", "2014-11-13 23:40:33.286150"], ["url", "http://www.nps.gov/glac/index.htm"]]
5337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5338
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5339
+  (0.4ms) rollback transaction
5340
+  (0.1ms) begin transaction
5341
+ -------------------------------------------------------
5342
+ BuiltInDataTest: test_should_return_false_for_built_in?
5343
+ -------------------------------------------------------
5344
+  (0.0ms) rollback transaction
5345
+  (0.0ms) begin transaction
5346
+ ------------------------------------------------------
5347
+ BuiltInDataTest: test_should_return_true_for_built_in?
5348
+ ------------------------------------------------------
5349
+  (0.0ms) rollback transaction
5350
+  (0.0ms) begin transaction
5351
+ ----------------------------------------------------------
5352
+ BuiltInDataTest: test_should_update_existing_built_in_data
5353
+ ----------------------------------------------------------
5354
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5355
+  (0.0ms) SAVEPOINT active_record_1
5356
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5357
+ SQL (0.2ms) INSERT INTO "national_parks" ("built_in_key", "created_at", "established", "name", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["built_in_key", "test"], ["created_at", "2014-11-13 23:40:33.289838"], ["established", "1872-03-01"], ["name", "Yellowstone National Park"], ["updated_at", "2014-11-13 23:40:33.289838"], ["url", "http://www.nps.gov/yell/index.htm"]]
5358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5359
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5360
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5361
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5362
+  (0.0ms) SAVEPOINT active_record_1
5363
+ NationalPark Exists (0.0ms) SELECT 1 AS one FROM "national_parks" WHERE ("national_parks"."built_in_key" = 'test' AND "national_parks"."id" != 1) LIMIT 1
5364
+ SQL (0.3ms) UPDATE "national_parks" SET "updated_at" = ?, "url" = ? WHERE "national_parks"."id" = 1 [["updated_at", "2014-11-13 23:40:33.291892"], ["url", "http://en.wikipedia.org/wiki/Yellowstone_National_Park"]]
5365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5366
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE (national_parks.built_in_key IS NOT NULL)
5367
+ NationalPark Load (0.1ms) SELECT "national_parks".* FROM "national_parks" WHERE "national_parks"."built_in_key" = 'test' LIMIT 1
5368
+  (0.5ms) rollback transaction