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