gov_uk_date_fields 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/dummy/log/test.log
CHANGED
@@ -15941,3 +15941,2092 @@ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
|
15941
15941
|
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2015-09-03 09:16:14.888196"], ["id", 1247]]
|
15942
15942
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15943
15943
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15944
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15945
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15946
|
+
-------------------------------
|
15947
|
+
GovUkDateFieldsTest: test_truth
|
15948
|
+
-------------------------------
|
15949
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15950
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15951
|
+
-----------------------------------------------------------------------------------------------
|
15952
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
15953
|
+
-----------------------------------------------------------------------------------------------
|
15954
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15955
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15956
|
+
---------------------------------------------------------------------------------
|
15957
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
15958
|
+
---------------------------------------------------------------------------------
|
15959
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15960
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15961
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
15962
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
15963
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
15964
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
15965
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15966
|
+
------------------------------------------------------------------------------------------
|
15967
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
15968
|
+
------------------------------------------------------------------------------------------
|
15969
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15970
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15971
|
+
-----------------------------------------------------------------------------------------
|
15972
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
15973
|
+
-----------------------------------------------------------------------------------------
|
15974
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15975
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15976
|
+
---------------------------------------------------------------------------------
|
15977
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
15978
|
+
---------------------------------------------------------------------------------
|
15979
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15980
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15981
|
+
-------------------------------------------------------------------------------
|
15982
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
15983
|
+
-------------------------------------------------------------------------------
|
15984
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15985
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15986
|
+
----------------------------------------------------
|
15987
|
+
EmployeesControllerTest: test_should_create_employee
|
15988
|
+
----------------------------------------------------
|
15989
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15990
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.099728"], ["updated_at", "2015-09-07 08:40:13.099728"]]
|
15991
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15992
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15993
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.106184"], ["updated_at", "2015-09-07 08:40:13.106184"]]
|
15994
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15995
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
15996
|
+
Processing by EmployeesController#create as HTML
|
15997
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
15998
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15999
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 08:40:13.111182"], ["updated_at", "2015-09-07 08:40:13.111182"]]
|
16000
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16001
|
+
Redirected to http://test.host/employees/1250
|
16002
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
16003
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16004
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16005
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
16006
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16007
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16008
|
+
----------------------------------------------------
|
16009
|
+
EmployeesControllerTest: test_should_update_employee
|
16010
|
+
----------------------------------------------------
|
16011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16012
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.116132"], ["updated_at", "2015-09-07 08:40:13.116132"]]
|
16013
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16014
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16015
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.117205"], ["updated_at", "2015-09-07 08:40:13.117205"]]
|
16016
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16017
|
+
Processing by EmployeesController#update as HTML
|
16018
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1251"}
|
16019
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1251]]
|
16020
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16021
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 08:40:13.124156"], ["id", 1251]]
|
16022
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16023
|
+
Redirected to http://test.host/employees/1251
|
16024
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
16025
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1251]]
|
16026
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16027
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16028
|
+
----------------------------------------------
|
16029
|
+
EmployeesControllerTest: test_should_get_index
|
16030
|
+
----------------------------------------------
|
16031
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16032
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.127647"], ["updated_at", "2015-09-07 08:40:13.127647"]]
|
16033
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16035
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.128683"], ["updated_at", "2015-09-07 08:40:13.128683"]]
|
16036
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16037
|
+
Processing by EmployeesController#index as HTML
|
16038
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
16039
|
+
Rendered employees/index.html.erb within layouts/application (3.9ms)
|
16040
|
+
Completed 200 OK in 96ms (Views: 95.6ms | ActiveRecord: 0.3ms)
|
16041
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16042
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16043
|
+
---------------------------------------------
|
16044
|
+
EmployeesControllerTest: test_should_get_edit
|
16045
|
+
---------------------------------------------
|
16046
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16047
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.227501"], ["updated_at", "2015-09-07 08:40:13.227501"]]
|
16048
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16050
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.228691"], ["updated_at", "2015-09-07 08:40:13.228691"]]
|
16051
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16052
|
+
Processing by EmployeesController#edit as HTML
|
16053
|
+
Parameters: {"id"=>"1255"}
|
16054
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1255]]
|
16055
|
+
Rendered employees/_form.html.erb (15.8ms)
|
16056
|
+
Rendered employees/edit.html.erb within layouts/application (20.7ms)
|
16057
|
+
Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.2ms)
|
16058
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16059
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16060
|
+
--------------------------------------------
|
16061
|
+
EmployeesControllerTest: test_should_get_new
|
16062
|
+
--------------------------------------------
|
16063
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16064
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.254174"], ["updated_at", "2015-09-07 08:40:13.254174"]]
|
16065
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16066
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16067
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.255442"], ["updated_at", "2015-09-07 08:40:13.255442"]]
|
16068
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16069
|
+
Processing by EmployeesController#new as HTML
|
16070
|
+
Rendered employees/_form.html.erb (1.2ms)
|
16071
|
+
Rendered employees/new.html.erb within layouts/application (1.6ms)
|
16072
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
16073
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16074
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16075
|
+
-----------------------------------------------------
|
16076
|
+
EmployeesControllerTest: test_should_destroy_employee
|
16077
|
+
-----------------------------------------------------
|
16078
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16079
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.260946"], ["updated_at", "2015-09-07 08:40:13.260946"]]
|
16080
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16081
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16082
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.262144"], ["updated_at", "2015-09-07 08:40:13.262144"]]
|
16083
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16084
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16085
|
+
Processing by EmployeesController#destroy as HTML
|
16086
|
+
Parameters: {"id"=>"1259"}
|
16087
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1259]]
|
16088
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16089
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1259]]
|
16090
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16091
|
+
Redirected to http://test.host/employees
|
16092
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
16093
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16094
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16095
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16096
|
+
--------------------------------------------------
|
16097
|
+
EmployeesControllerTest: test_should_show_employee
|
16098
|
+
--------------------------------------------------
|
16099
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16100
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:40:13.267103"], ["updated_at", "2015-09-07 08:40:13.267103"]]
|
16101
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16102
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16103
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:40:13.268221"], ["updated_at", "2015-09-07 08:40:13.268221"]]
|
16104
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16105
|
+
Processing by EmployeesController#show as HTML
|
16106
|
+
Parameters: {"id"=>"1261"}
|
16107
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1261]]
|
16108
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
16109
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
16110
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16111
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16112
|
+
--------------------------------------------------------------------------
|
16113
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
16114
|
+
--------------------------------------------------------------------------
|
16115
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16116
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16117
|
+
-------------------------------------------------------------------------
|
16118
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
16119
|
+
-------------------------------------------------------------------------
|
16120
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16121
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:40:13.273973"], ["updated_at", "2015-09-07 08:40:13.273973"]]
|
16122
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16123
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16124
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16125
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16126
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16127
|
+
-----------------------------------------------------------------------
|
16128
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
16129
|
+
-----------------------------------------------------------------------
|
16130
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16131
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16132
|
+
---------------------------------------------------------------------
|
16133
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
16134
|
+
---------------------------------------------------------------------
|
16135
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16136
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16137
|
+
-----------------------------------------------------------------
|
16138
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
16139
|
+
-----------------------------------------------------------------
|
16140
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16141
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16142
|
+
-----------------------------------------------------------
|
16143
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
16144
|
+
-----------------------------------------------------------
|
16145
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16146
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16147
|
+
--------------------------------------------
|
16148
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
16149
|
+
--------------------------------------------
|
16150
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16151
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16152
|
+
--------------------------------------------------------------------------------------------------
|
16153
|
+
EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
|
16154
|
+
--------------------------------------------------------------------------------------------------
|
16155
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16156
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16157
|
+
------------------------------------------------------------------------------------------
|
16158
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
16159
|
+
------------------------------------------------------------------------------------------
|
16160
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16161
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16162
|
+
---------------------------------------------------------------------
|
16163
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
16164
|
+
---------------------------------------------------------------------
|
16165
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16166
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:40:13.280537"], ["updated_at", "2015-09-07 08:40:13.280537"]]
|
16167
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16169
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:40:13.281657"], ["id", 1264]]
|
16170
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16171
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16172
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16173
|
+
-----------------------------------------------------------
|
16174
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
16175
|
+
-----------------------------------------------------------
|
16176
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16177
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16178
|
+
----------------------------------------------
|
16179
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
16180
|
+
----------------------------------------------
|
16181
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16182
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16183
|
+
-------------------------------------------
|
16184
|
+
EmployeeTest: test_invalid_day_raises_error
|
16185
|
+
-------------------------------------------
|
16186
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16187
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16188
|
+
-----------------------------------------------------------------------------------
|
16189
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
16190
|
+
-----------------------------------------------------------------------------------
|
16191
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16192
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16193
|
+
------------------------------------------------------------------------
|
16194
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
16195
|
+
------------------------------------------------------------------------
|
16196
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16197
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16198
|
+
----------------------------------------------------------------------------------------------------------------
|
16199
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
16200
|
+
----------------------------------------------------------------------------------------------------------------
|
16201
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
16202
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16203
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16204
|
+
-------------------------------
|
16205
|
+
GovUkDateFieldsTest: test_truth
|
16206
|
+
-------------------------------
|
16207
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16208
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16209
|
+
---------------------------------------------------------------------
|
16210
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
16211
|
+
---------------------------------------------------------------------
|
16212
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16213
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16214
|
+
-----------------------------------------------------------------------------------
|
16215
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
16216
|
+
-----------------------------------------------------------------------------------
|
16217
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16218
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16219
|
+
-----------------------------------------------------------------
|
16220
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
16221
|
+
-----------------------------------------------------------------
|
16222
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16223
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16224
|
+
--------------------------------------------------------------------------
|
16225
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
16226
|
+
--------------------------------------------------------------------------
|
16227
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16228
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16229
|
+
-------------------------------------------------------------------------
|
16230
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
16231
|
+
-------------------------------------------------------------------------
|
16232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16233
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:41:52.687999"], ["updated_at", "2015-09-07 08:41:52.687999"]]
|
16234
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16236
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16237
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16238
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16239
|
+
------------------------------------------------------------------------------------------
|
16240
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
16241
|
+
------------------------------------------------------------------------------------------
|
16242
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16243
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16244
|
+
----------------------------------------------------------------------------------------------------------------
|
16245
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
16246
|
+
----------------------------------------------------------------------------------------------------------------
|
16247
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16248
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16249
|
+
--------------------------------------------
|
16250
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
16251
|
+
--------------------------------------------
|
16252
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16253
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16254
|
+
-----------------------------------------------------------
|
16255
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
16256
|
+
-----------------------------------------------------------
|
16257
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16258
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16259
|
+
-----------------------------------------------------------------------
|
16260
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
16261
|
+
-----------------------------------------------------------------------
|
16262
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16263
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16264
|
+
-----------------------------------------------------------
|
16265
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
16266
|
+
-----------------------------------------------------------
|
16267
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16269
|
+
-------------------------------------------
|
16270
|
+
EmployeeTest: test_invalid_day_raises_error
|
16271
|
+
-------------------------------------------
|
16272
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16273
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16274
|
+
------------------------------------------------------------------------
|
16275
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
16276
|
+
------------------------------------------------------------------------
|
16277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16279
|
+
---------------------------------------------------------------------
|
16280
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
16281
|
+
---------------------------------------------------------------------
|
16282
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16283
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:41:52.697803"], ["updated_at", "2015-09-07 08:41:52.697803"]]
|
16284
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16285
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16286
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:41:52.699073"], ["id", 1266]]
|
16287
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16288
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16289
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16290
|
+
--------------------------------------------------------------------------------------------------
|
16291
|
+
EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
|
16292
|
+
--------------------------------------------------------------------------------------------------
|
16293
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16294
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16295
|
+
----------------------------------------------
|
16296
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
16297
|
+
----------------------------------------------
|
16298
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16299
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16300
|
+
--------------------------------------------
|
16301
|
+
EmployeesControllerTest: test_should_get_new
|
16302
|
+
--------------------------------------------
|
16303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16304
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.734439"], ["updated_at", "2015-09-07 08:41:52.734439"]]
|
16305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16307
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.735725"], ["updated_at", "2015-09-07 08:41:52.735725"]]
|
16308
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16309
|
+
Processing by EmployeesController#new as HTML
|
16310
|
+
Rendered employees/_form.html.erb (7.6ms)
|
16311
|
+
Rendered employees/new.html.erb within layouts/application (10.2ms)
|
16312
|
+
Completed 200 OK in 93ms (Views: 93.1ms | ActiveRecord: 0.0ms)
|
16313
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16314
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16315
|
+
--------------------------------------------------
|
16316
|
+
EmployeesControllerTest: test_should_show_employee
|
16317
|
+
--------------------------------------------------
|
16318
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16319
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.833001"], ["updated_at", "2015-09-07 08:41:52.833001"]]
|
16320
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16321
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16322
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.834265"], ["updated_at", "2015-09-07 08:41:52.834265"]]
|
16323
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16324
|
+
Processing by EmployeesController#show as HTML
|
16325
|
+
Parameters: {"id"=>"1269"}
|
16326
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1269]]
|
16327
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
16328
|
+
Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
16329
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16330
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16331
|
+
----------------------------------------------
|
16332
|
+
EmployeesControllerTest: test_should_get_index
|
16333
|
+
----------------------------------------------
|
16334
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16335
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.841711"], ["updated_at", "2015-09-07 08:41:52.841711"]]
|
16336
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16337
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16338
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.842845"], ["updated_at", "2015-09-07 08:41:52.842845"]]
|
16339
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16340
|
+
Processing by EmployeesController#index as HTML
|
16341
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
16342
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
16343
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
16344
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16345
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16346
|
+
-----------------------------------------------------
|
16347
|
+
EmployeesControllerTest: test_should_destroy_employee
|
16348
|
+
-----------------------------------------------------
|
16349
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16350
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.847969"], ["updated_at", "2015-09-07 08:41:52.847969"]]
|
16351
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16352
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16353
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.848984"], ["updated_at", "2015-09-07 08:41:52.848984"]]
|
16354
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16356
|
+
Processing by EmployeesController#destroy as HTML
|
16357
|
+
Parameters: {"id"=>"1273"}
|
16358
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1273]]
|
16359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16360
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1273]]
|
16361
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16362
|
+
Redirected to http://test.host/employees
|
16363
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
16364
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16365
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16366
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16367
|
+
----------------------------------------------------
|
16368
|
+
EmployeesControllerTest: test_should_create_employee
|
16369
|
+
----------------------------------------------------
|
16370
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16371
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.853815"], ["updated_at", "2015-09-07 08:41:52.853815"]]
|
16372
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16373
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16374
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.854836"], ["updated_at", "2015-09-07 08:41:52.854836"]]
|
16375
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16376
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16377
|
+
Processing by EmployeesController#create as HTML
|
16378
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
16379
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16380
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 08:41:52.857468"], ["updated_at", "2015-09-07 08:41:52.857468"]]
|
16381
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16382
|
+
Redirected to http://test.host/employees/1277
|
16383
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
16384
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16385
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16386
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
16387
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16388
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16389
|
+
----------------------------------------------------
|
16390
|
+
EmployeesControllerTest: test_should_update_employee
|
16391
|
+
----------------------------------------------------
|
16392
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16393
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.860859"], ["updated_at", "2015-09-07 08:41:52.860859"]]
|
16394
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16395
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16396
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.861907"], ["updated_at", "2015-09-07 08:41:52.861907"]]
|
16397
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16398
|
+
Processing by EmployeesController#update as HTML
|
16399
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1278"}
|
16400
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1278]]
|
16401
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16402
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 08:41:52.864413"], ["id", 1278]]
|
16403
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16404
|
+
Redirected to http://test.host/employees/1278
|
16405
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
16406
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1278]]
|
16407
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16408
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16409
|
+
---------------------------------------------
|
16410
|
+
EmployeesControllerTest: test_should_get_edit
|
16411
|
+
---------------------------------------------
|
16412
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16413
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:41:52.867079"], ["updated_at", "2015-09-07 08:41:52.867079"]]
|
16414
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16415
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16416
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:41:52.868211"], ["updated_at", "2015-09-07 08:41:52.868211"]]
|
16417
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16418
|
+
Processing by EmployeesController#edit as HTML
|
16419
|
+
Parameters: {"id"=>"1280"}
|
16420
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1280]]
|
16421
|
+
Rendered employees/_form.html.erb (1.4ms)
|
16422
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
16423
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
16424
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16425
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16426
|
+
-----------------------------------------------------------------------------------------
|
16427
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
16428
|
+
-----------------------------------------------------------------------------------------
|
16429
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16430
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16431
|
+
---------------------------------------------------------------------------------
|
16432
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
16433
|
+
---------------------------------------------------------------------------------
|
16434
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16435
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16436
|
+
-----------------------------------------------------------------------------------------------
|
16437
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
16438
|
+
-----------------------------------------------------------------------------------------------
|
16439
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16440
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16441
|
+
-------------------------------------------------------------------------------
|
16442
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
16443
|
+
-------------------------------------------------------------------------------
|
16444
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16445
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16446
|
+
---------------------------------------------------------------------------------
|
16447
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
16448
|
+
---------------------------------------------------------------------------------
|
16449
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16450
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16451
|
+
------------------------------------------------------------------------------------------
|
16452
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
16453
|
+
------------------------------------------------------------------------------------------
|
16454
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16455
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16456
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16457
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
16458
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16459
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16460
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16461
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16462
|
+
-------------------------------
|
16463
|
+
GovUkDateFieldsTest: test_truth
|
16464
|
+
-------------------------------
|
16465
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16466
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16467
|
+
------------------------------------------------------------------------------------------
|
16468
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
16469
|
+
------------------------------------------------------------------------------------------
|
16470
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16471
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16472
|
+
--------------------------------------------------------------------------
|
16473
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
16474
|
+
--------------------------------------------------------------------------
|
16475
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16476
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16477
|
+
-----------------------------------------------------------
|
16478
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
16479
|
+
-----------------------------------------------------------
|
16480
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16481
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16482
|
+
--------------------------------------------------------------------------------------------------
|
16483
|
+
EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
|
16484
|
+
--------------------------------------------------------------------------------------------------
|
16485
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16486
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16487
|
+
----------------------------------------------------------------------------------------------------------------
|
16488
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
16489
|
+
----------------------------------------------------------------------------------------------------------------
|
16490
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16491
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16492
|
+
-----------------------------------------------------------------------------------
|
16493
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
16494
|
+
-----------------------------------------------------------------------------------
|
16495
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16496
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16497
|
+
--------------------------------------------
|
16498
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
16499
|
+
--------------------------------------------
|
16500
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16501
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16502
|
+
----------------------------------------------
|
16503
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
16504
|
+
----------------------------------------------
|
16505
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16506
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16507
|
+
-----------------------------------------------------------------------
|
16508
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
16509
|
+
-----------------------------------------------------------------------
|
16510
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16511
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16512
|
+
-----------------------------------------------------------
|
16513
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
16514
|
+
-----------------------------------------------------------
|
16515
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16516
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16517
|
+
---------------------------------------------------------------------
|
16518
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
16519
|
+
---------------------------------------------------------------------
|
16520
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16521
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:43:53.033792"], ["updated_at", "2015-09-07 08:43:53.033792"]]
|
16522
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16524
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:43:53.037209"], ["id", 1282]]
|
16525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16526
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16527
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16528
|
+
------------------------------------------------------------------------
|
16529
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
16530
|
+
------------------------------------------------------------------------
|
16531
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16532
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16533
|
+
-------------------------------------------------------------------------
|
16534
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
16535
|
+
-------------------------------------------------------------------------
|
16536
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16537
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:43:53.042147"], ["updated_at", "2015-09-07 08:43:53.042147"]]
|
16538
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16540
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16541
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16542
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16543
|
+
-------------------------------------------
|
16544
|
+
EmployeeTest: test_invalid_day_raises_error
|
16545
|
+
-------------------------------------------
|
16546
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16547
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16548
|
+
-----------------------------------------------------------------
|
16549
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
16550
|
+
-----------------------------------------------------------------
|
16551
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16552
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16553
|
+
---------------------------------------------------------------------
|
16554
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
16555
|
+
---------------------------------------------------------------------
|
16556
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16557
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16558
|
+
----------------------------------------------
|
16559
|
+
EmployeesControllerTest: test_should_get_index
|
16560
|
+
----------------------------------------------
|
16561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16562
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.074851"], ["updated_at", "2015-09-07 08:43:53.074851"]]
|
16563
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16564
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16565
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.075991"], ["updated_at", "2015-09-07 08:43:53.075991"]]
|
16566
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16567
|
+
Processing by EmployeesController#index as HTML
|
16568
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
16569
|
+
Rendered employees/index.html.erb within layouts/application (2.3ms)
|
16570
|
+
Completed 200 OK in 82ms (Views: 81.8ms | ActiveRecord: 0.2ms)
|
16571
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16572
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16573
|
+
-----------------------------------------------------
|
16574
|
+
EmployeesControllerTest: test_should_destroy_employee
|
16575
|
+
-----------------------------------------------------
|
16576
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16577
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.162359"], ["updated_at", "2015-09-07 08:43:53.162359"]]
|
16578
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16579
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16580
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.163614"], ["updated_at", "2015-09-07 08:43:53.163614"]]
|
16581
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16582
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16583
|
+
Processing by EmployeesController#destroy as HTML
|
16584
|
+
Parameters: {"id"=>"1286"}
|
16585
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1286]]
|
16586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16587
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1286]]
|
16588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16589
|
+
Redirected to http://test.host/employees
|
16590
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
16591
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16592
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16593
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16594
|
+
--------------------------------------------
|
16595
|
+
EmployeesControllerTest: test_should_get_new
|
16596
|
+
--------------------------------------------
|
16597
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16598
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.170041"], ["updated_at", "2015-09-07 08:43:53.170041"]]
|
16599
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16600
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16601
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.171282"], ["updated_at", "2015-09-07 08:43:53.171282"]]
|
16602
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16603
|
+
Processing by EmployeesController#new as HTML
|
16604
|
+
Rendered employees/_form.html.erb (7.7ms)
|
16605
|
+
Rendered employees/new.html.erb within layouts/application (10.0ms)
|
16606
|
+
Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
|
16607
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16608
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16609
|
+
----------------------------------------------------
|
16610
|
+
EmployeesControllerTest: test_should_update_employee
|
16611
|
+
----------------------------------------------------
|
16612
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16613
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.186001"], ["updated_at", "2015-09-07 08:43:53.186001"]]
|
16614
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16615
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16616
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.187245"], ["updated_at", "2015-09-07 08:43:53.187245"]]
|
16617
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16618
|
+
Processing by EmployeesController#update as HTML
|
16619
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1290"}
|
16620
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1290]]
|
16621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16622
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 08:43:53.190312"], ["id", 1290]]
|
16623
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16624
|
+
Redirected to http://test.host/employees/1290
|
16625
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
16626
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1290]]
|
16627
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16628
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16629
|
+
---------------------------------------------
|
16630
|
+
EmployeesControllerTest: test_should_get_edit
|
16631
|
+
---------------------------------------------
|
16632
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16633
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.194113"], ["updated_at", "2015-09-07 08:43:53.194113"]]
|
16634
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16635
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16636
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.195347"], ["updated_at", "2015-09-07 08:43:53.195347"]]
|
16637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16638
|
+
Processing by EmployeesController#edit as HTML
|
16639
|
+
Parameters: {"id"=>"1292"}
|
16640
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1292]]
|
16641
|
+
Rendered employees/_form.html.erb (1.4ms)
|
16642
|
+
Rendered employees/edit.html.erb within layouts/application (2.0ms)
|
16643
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
16644
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16645
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16646
|
+
--------------------------------------------------
|
16647
|
+
EmployeesControllerTest: test_should_show_employee
|
16648
|
+
--------------------------------------------------
|
16649
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16650
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.202586"], ["updated_at", "2015-09-07 08:43:53.202586"]]
|
16651
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16652
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16653
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.203914"], ["updated_at", "2015-09-07 08:43:53.203914"]]
|
16654
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16655
|
+
Processing by EmployeesController#show as HTML
|
16656
|
+
Parameters: {"id"=>"1294"}
|
16657
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1294]]
|
16658
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
16659
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
|
16660
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16661
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16662
|
+
----------------------------------------------------
|
16663
|
+
EmployeesControllerTest: test_should_create_employee
|
16664
|
+
----------------------------------------------------
|
16665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16666
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:43:53.208766"], ["updated_at", "2015-09-07 08:43:53.208766"]]
|
16667
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16668
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16669
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:43:53.209678"], ["updated_at", "2015-09-07 08:43:53.209678"]]
|
16670
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16671
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16672
|
+
Processing by EmployeesController#create as HTML
|
16673
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
16674
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16675
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 08:43:53.212146"], ["updated_at", "2015-09-07 08:43:53.212146"]]
|
16676
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16677
|
+
Redirected to http://test.host/employees/1298
|
16678
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
16679
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
16680
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16681
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
16682
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16683
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16684
|
+
---------------------------------------------------------------------------------
|
16685
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
16686
|
+
---------------------------------------------------------------------------------
|
16687
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16688
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16689
|
+
-----------------------------------------------------------------------------------------------
|
16690
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
16691
|
+
-----------------------------------------------------------------------------------------------
|
16692
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16693
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16694
|
+
---------------------------------------------------------------------------------
|
16695
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
16696
|
+
---------------------------------------------------------------------------------
|
16697
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16698
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16699
|
+
-----------------------------------------------------------------------------------------
|
16700
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
16701
|
+
-----------------------------------------------------------------------------------------
|
16702
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16703
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16704
|
+
------------------------------------------------------------------------------------------
|
16705
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
16706
|
+
------------------------------------------------------------------------------------------
|
16707
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16708
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16709
|
+
-------------------------------------------------------------------------------
|
16710
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
16711
|
+
-------------------------------------------------------------------------------
|
16712
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16713
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16714
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16715
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
16716
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16717
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16718
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16719
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16720
|
+
-----------------------------------------------------------
|
16721
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
16722
|
+
-----------------------------------------------------------
|
16723
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16724
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16725
|
+
-------------------------------------------------------------------------
|
16726
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
16727
|
+
-------------------------------------------------------------------------
|
16728
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16729
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:44:58.096009"], ["updated_at", "2015-09-07 08:44:58.096009"]]
|
16730
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16731
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16732
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16733
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16734
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16735
|
+
----------------------------------------------
|
16736
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
16737
|
+
----------------------------------------------
|
16738
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16739
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16740
|
+
-------------------------------------------
|
16741
|
+
EmployeeTest: test_invalid_day_raises_error
|
16742
|
+
-------------------------------------------
|
16743
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16744
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16745
|
+
-----------------------------------------------------------------------------------
|
16746
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
16747
|
+
-----------------------------------------------------------------------------------
|
16748
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16749
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16750
|
+
----------------------------------------------------------------------------------------------------------------
|
16751
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
16752
|
+
----------------------------------------------------------------------------------------------------------------
|
16753
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16754
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16755
|
+
---------------------------------------------------------------------
|
16756
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
16757
|
+
---------------------------------------------------------------------
|
16758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16759
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:44:58.103906"], ["updated_at", "2015-09-07 08:44:58.103906"]]
|
16760
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16761
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16762
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:44:58.105121"], ["id", 1300]]
|
16763
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16764
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16765
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16766
|
+
------------------------------------------------------------------------------------------
|
16767
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
16768
|
+
------------------------------------------------------------------------------------------
|
16769
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16770
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16771
|
+
---------------------------------------------------------------------
|
16772
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
16773
|
+
---------------------------------------------------------------------
|
16774
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16775
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16776
|
+
-----------------------------------------------------------------
|
16777
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
16778
|
+
-----------------------------------------------------------------
|
16779
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16780
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16781
|
+
--------------------------------------------------------------------------
|
16782
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
16783
|
+
--------------------------------------------------------------------------
|
16784
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16785
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16786
|
+
--------------------------------------------------------------------------------------------------
|
16787
|
+
EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
|
16788
|
+
--------------------------------------------------------------------------------------------------
|
16789
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16790
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16791
|
+
------------------------------------------------------------------------
|
16792
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
16793
|
+
------------------------------------------------------------------------
|
16794
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16795
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16796
|
+
--------------------------------------------
|
16797
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
16798
|
+
--------------------------------------------
|
16799
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16800
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16801
|
+
-----------------------------------------------------------------------
|
16802
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
16803
|
+
-----------------------------------------------------------------------
|
16804
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16805
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16806
|
+
-----------------------------------------------------------
|
16807
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
16808
|
+
-----------------------------------------------------------
|
16809
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16810
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16811
|
+
----------------------------------------------------
|
16812
|
+
EmployeesControllerTest: test_should_update_employee
|
16813
|
+
----------------------------------------------------
|
16814
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16815
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.160638"], ["updated_at", "2015-09-07 08:44:58.160638"]]
|
16816
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16817
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16818
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.162158"], ["updated_at", "2015-09-07 08:44:58.162158"]]
|
16819
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16820
|
+
Processing by EmployeesController#update as HTML
|
16821
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1301"}
|
16822
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1301]]
|
16823
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16824
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 08:44:58.168718"], ["id", 1301]]
|
16825
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16826
|
+
Redirected to http://test.host/employees/1301
|
16827
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
16828
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1301]]
|
16829
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16830
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16831
|
+
--------------------------------------------
|
16832
|
+
EmployeesControllerTest: test_should_get_new
|
16833
|
+
--------------------------------------------
|
16834
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16835
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.174324"], ["updated_at", "2015-09-07 08:44:58.174324"]]
|
16836
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16837
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16838
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.175686"], ["updated_at", "2015-09-07 08:44:58.175686"]]
|
16839
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16840
|
+
Processing by EmployeesController#new as HTML
|
16841
|
+
Rendered employees/_form.html.erb (8.0ms)
|
16842
|
+
Rendered employees/new.html.erb within layouts/application (10.9ms)
|
16843
|
+
Completed 200 OK in 96ms (Views: 95.9ms | ActiveRecord: 0.0ms)
|
16844
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16845
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16846
|
+
--------------------------------------------------
|
16847
|
+
EmployeesControllerTest: test_should_show_employee
|
16848
|
+
--------------------------------------------------
|
16849
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16850
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.274989"], ["updated_at", "2015-09-07 08:44:58.274989"]]
|
16851
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16852
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16853
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.276065"], ["updated_at", "2015-09-07 08:44:58.276065"]]
|
16854
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16855
|
+
Processing by EmployeesController#show as HTML
|
16856
|
+
Parameters: {"id"=>"1305"}
|
16857
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1305]]
|
16858
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
16859
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
16860
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16861
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16862
|
+
-----------------------------------------------------
|
16863
|
+
EmployeesControllerTest: test_should_destroy_employee
|
16864
|
+
-----------------------------------------------------
|
16865
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16866
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.280812"], ["updated_at", "2015-09-07 08:44:58.280812"]]
|
16867
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16868
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16869
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.281868"], ["updated_at", "2015-09-07 08:44:58.281868"]]
|
16870
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16871
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
16872
|
+
Processing by EmployeesController#destroy as HTML
|
16873
|
+
Parameters: {"id"=>"1307"}
|
16874
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1307]]
|
16875
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16876
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1307]]
|
16877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16878
|
+
Redirected to http://test.host/employees
|
16879
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
16880
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16881
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16882
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16883
|
+
----------------------------------------------------
|
16884
|
+
EmployeesControllerTest: test_should_create_employee
|
16885
|
+
----------------------------------------------------
|
16886
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.287367"], ["updated_at", "2015-09-07 08:44:58.287367"]]
|
16888
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16889
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16890
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.288396"], ["updated_at", "2015-09-07 08:44:58.288396"]]
|
16891
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16892
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
16893
|
+
Processing by EmployeesController#create as HTML
|
16894
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
16895
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16896
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 08:44:58.291572"], ["updated_at", "2015-09-07 08:44:58.291572"]]
|
16897
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16898
|
+
Redirected to http://test.host/employees/1311
|
16899
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
16900
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
16901
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
16902
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
16903
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16904
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16905
|
+
---------------------------------------------
|
16906
|
+
EmployeesControllerTest: test_should_get_edit
|
16907
|
+
---------------------------------------------
|
16908
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16909
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.295396"], ["updated_at", "2015-09-07 08:44:58.295396"]]
|
16910
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16911
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16912
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.296363"], ["updated_at", "2015-09-07 08:44:58.296363"]]
|
16913
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16914
|
+
Processing by EmployeesController#edit as HTML
|
16915
|
+
Parameters: {"id"=>"1312"}
|
16916
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1312]]
|
16917
|
+
Rendered employees/_form.html.erb (1.4ms)
|
16918
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
16919
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
16920
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16921
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16922
|
+
----------------------------------------------
|
16923
|
+
EmployeesControllerTest: test_should_get_index
|
16924
|
+
----------------------------------------------
|
16925
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16926
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:44:58.302508"], ["updated_at", "2015-09-07 08:44:58.302508"]]
|
16927
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16928
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16929
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:44:58.303541"], ["updated_at", "2015-09-07 08:44:58.303541"]]
|
16930
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16931
|
+
Processing by EmployeesController#index as HTML
|
16932
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
16933
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
16934
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
16935
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16936
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16937
|
+
-------------------------------
|
16938
|
+
GovUkDateFieldsTest: test_truth
|
16939
|
+
-------------------------------
|
16940
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16941
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16942
|
+
---------------------------------------------------------------------------------
|
16943
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
16944
|
+
---------------------------------------------------------------------------------
|
16945
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16946
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16947
|
+
------------------------------------------------------------------------------------------
|
16948
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
16949
|
+
------------------------------------------------------------------------------------------
|
16950
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16951
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16952
|
+
---------------------------------------------------------------------------------
|
16953
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
16954
|
+
---------------------------------------------------------------------------------
|
16955
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16956
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16957
|
+
-----------------------------------------------------------------------------------------------
|
16958
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
16959
|
+
-----------------------------------------------------------------------------------------------
|
16960
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16961
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16962
|
+
-------------------------------------------------------------------------------
|
16963
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
16964
|
+
-------------------------------------------------------------------------------
|
16965
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16966
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16967
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16968
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
16969
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16970
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16971
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16972
|
+
-----------------------------------------------------------------------------------------
|
16973
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
16974
|
+
-----------------------------------------------------------------------------------------
|
16975
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16976
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16977
|
+
[1m[35m (0.4ms)[0m BEGIN
|
16978
|
+
---------------------------------------------------------------------------------
|
16979
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
16980
|
+
---------------------------------------------------------------------------------
|
16981
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16982
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16983
|
+
------------------------------------------------------------------------------------------
|
16984
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
16985
|
+
------------------------------------------------------------------------------------------
|
16986
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16987
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16988
|
+
-----------------------------------------------------------------------------------------------
|
16989
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
16990
|
+
-----------------------------------------------------------------------------------------------
|
16991
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16992
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16993
|
+
-------------------------------------------------------------------------------
|
16994
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
16995
|
+
-------------------------------------------------------------------------------
|
16996
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16997
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16998
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
16999
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
17000
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17001
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17002
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17003
|
+
---------------------------------------------------------------------------------
|
17004
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
17005
|
+
---------------------------------------------------------------------------------
|
17006
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17007
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17008
|
+
-----------------------------------------------------------------------------------------
|
17009
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
17010
|
+
-----------------------------------------------------------------------------------------
|
17011
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17012
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17013
|
+
-------------------------------
|
17014
|
+
GovUkDateFieldsTest: test_truth
|
17015
|
+
-------------------------------
|
17016
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17017
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17018
|
+
-----------------------------------------------------------------------------------
|
17019
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
17020
|
+
-----------------------------------------------------------------------------------
|
17021
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17022
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17023
|
+
------------------------------------------------------------------------
|
17024
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
17025
|
+
------------------------------------------------------------------------
|
17026
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17027
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17028
|
+
---------------------------------------------------------------------
|
17029
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
17030
|
+
---------------------------------------------------------------------
|
17031
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17032
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17033
|
+
-----------------------------------------------------------------------
|
17034
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
17035
|
+
-----------------------------------------------------------------------
|
17036
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17037
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17038
|
+
------------------------------------------------------------------------------------------
|
17039
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
17040
|
+
------------------------------------------------------------------------------------------
|
17041
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17042
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17043
|
+
--------------------------------------------------------------------------------------------------
|
17044
|
+
EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
|
17045
|
+
--------------------------------------------------------------------------------------------------
|
17046
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17047
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17048
|
+
-----------------------------------------------------------
|
17049
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
17050
|
+
-----------------------------------------------------------
|
17051
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17052
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17053
|
+
--------------------------------------------------------------------------
|
17054
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
17055
|
+
--------------------------------------------------------------------------
|
17056
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17057
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17058
|
+
-----------------------------------------------------------
|
17059
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
17060
|
+
-----------------------------------------------------------
|
17061
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17062
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17063
|
+
---------------------------------------------------------------------
|
17064
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
17065
|
+
---------------------------------------------------------------------
|
17066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17067
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:56:18.241671"], ["updated_at", "2015-09-07 08:56:18.241671"]]
|
17068
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17069
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17070
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:56:18.245046"], ["id", 1316]]
|
17071
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17072
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17073
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17074
|
+
-----------------------------------------------------------------
|
17075
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
17076
|
+
-----------------------------------------------------------------
|
17077
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17078
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17079
|
+
-------------------------------------------
|
17080
|
+
EmployeeTest: test_invalid_day_raises_error
|
17081
|
+
-------------------------------------------
|
17082
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17083
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17084
|
+
--------------------------------------------
|
17085
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
17086
|
+
--------------------------------------------
|
17087
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17088
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17089
|
+
-------------------------------------------------------------------------
|
17090
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
17091
|
+
-------------------------------------------------------------------------
|
17092
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17093
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 08:56:18.250652"], ["updated_at", "2015-09-07 08:56:18.250652"]]
|
17094
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17095
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17096
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17097
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17098
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17099
|
+
----------------------------------------------------------------------------------------------------------------
|
17100
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
17101
|
+
----------------------------------------------------------------------------------------------------------------
|
17102
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17103
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17104
|
+
----------------------------------------------
|
17105
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
17106
|
+
----------------------------------------------
|
17107
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17108
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17109
|
+
----------------------------------------------------
|
17110
|
+
EmployeesControllerTest: test_should_update_employee
|
17111
|
+
----------------------------------------------------
|
17112
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17113
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.284206"], ["updated_at", "2015-09-07 08:56:18.284206"]]
|
17114
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17115
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17116
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.285518"], ["updated_at", "2015-09-07 08:56:18.285518"]]
|
17117
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17118
|
+
Processing by EmployeesController#update as HTML
|
17119
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1318"}
|
17120
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1318]]
|
17121
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17122
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 08:56:18.290982"], ["id", 1318]]
|
17123
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17124
|
+
Redirected to http://test.host/employees/1318
|
17125
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
17126
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1318]]
|
17127
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17128
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17129
|
+
---------------------------------------------
|
17130
|
+
EmployeesControllerTest: test_should_get_edit
|
17131
|
+
---------------------------------------------
|
17132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17133
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.294466"], ["updated_at", "2015-09-07 08:56:18.294466"]]
|
17134
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17135
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17136
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.295529"], ["updated_at", "2015-09-07 08:56:18.295529"]]
|
17137
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17138
|
+
Processing by EmployeesController#edit as HTML
|
17139
|
+
Parameters: {"id"=>"1320"}
|
17140
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1320]]
|
17141
|
+
Rendered employees/_form.html.erb (7.8ms)
|
17142
|
+
Rendered employees/edit.html.erb within layouts/application (10.6ms)
|
17143
|
+
Completed 200 OK in 96ms (Views: 95.2ms | ActiveRecord: 0.1ms)
|
17144
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17145
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17146
|
+
--------------------------------------------
|
17147
|
+
EmployeesControllerTest: test_should_get_new
|
17148
|
+
--------------------------------------------
|
17149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17150
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.394078"], ["updated_at", "2015-09-07 08:56:18.394078"]]
|
17151
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17152
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17153
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.395347"], ["updated_at", "2015-09-07 08:56:18.395347"]]
|
17154
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17155
|
+
Processing by EmployeesController#new as HTML
|
17156
|
+
Rendered employees/_form.html.erb (1.3ms)
|
17157
|
+
Rendered employees/new.html.erb within layouts/application (1.7ms)
|
17158
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
17159
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17160
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17161
|
+
----------------------------------------------------
|
17162
|
+
EmployeesControllerTest: test_should_create_employee
|
17163
|
+
----------------------------------------------------
|
17164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17165
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.401086"], ["updated_at", "2015-09-07 08:56:18.401086"]]
|
17166
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17168
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.402319"], ["updated_at", "2015-09-07 08:56:18.402319"]]
|
17169
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17170
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
17171
|
+
Processing by EmployeesController#create as HTML
|
17172
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
17173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17174
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 08:56:18.405229"], ["updated_at", "2015-09-07 08:56:18.405229"]]
|
17175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17176
|
+
Redirected to http://test.host/employees/1326
|
17177
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
17178
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17179
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17180
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
17181
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17182
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17183
|
+
--------------------------------------------------
|
17184
|
+
EmployeesControllerTest: test_should_show_employee
|
17185
|
+
--------------------------------------------------
|
17186
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17187
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.408677"], ["updated_at", "2015-09-07 08:56:18.408677"]]
|
17188
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17189
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17190
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.409670"], ["updated_at", "2015-09-07 08:56:18.409670"]]
|
17191
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17192
|
+
Processing by EmployeesController#show as HTML
|
17193
|
+
Parameters: {"id"=>"1327"}
|
17194
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1327]]
|
17195
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
17196
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
17197
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17199
|
+
-----------------------------------------------------
|
17200
|
+
EmployeesControllerTest: test_should_destroy_employee
|
17201
|
+
-----------------------------------------------------
|
17202
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17203
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.415044"], ["updated_at", "2015-09-07 08:56:18.415044"]]
|
17204
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17206
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.416143"], ["updated_at", "2015-09-07 08:56:18.416143"]]
|
17207
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17208
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17209
|
+
Processing by EmployeesController#destroy as HTML
|
17210
|
+
Parameters: {"id"=>"1329"}
|
17211
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1329]]
|
17212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17213
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1329]]
|
17214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17215
|
+
Redirected to http://test.host/employees
|
17216
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
|
17217
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17218
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17219
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17220
|
+
----------------------------------------------
|
17221
|
+
EmployeesControllerTest: test_should_get_index
|
17222
|
+
----------------------------------------------
|
17223
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17224
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 08:56:18.420692"], ["updated_at", "2015-09-07 08:56:18.420692"]]
|
17225
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17226
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17227
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 08:56:18.421721"], ["updated_at", "2015-09-07 08:56:18.421721"]]
|
17228
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17229
|
+
Processing by EmployeesController#index as HTML
|
17230
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
17231
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
17232
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
17233
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17236
|
+
---------------------------------------------------------------------------------
|
17237
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
17238
|
+
---------------------------------------------------------------------------------
|
17239
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17240
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17241
|
+
-----------------------------------------------------------------------------------------------
|
17242
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
17243
|
+
-----------------------------------------------------------------------------------------------
|
17244
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17245
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17246
|
+
-------------------------------------------------------------------------------
|
17247
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
17248
|
+
-------------------------------------------------------------------------------
|
17249
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17250
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17251
|
+
---------------------------------------------------------------------------------
|
17252
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
17253
|
+
---------------------------------------------------------------------------------
|
17254
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17255
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17256
|
+
------------------------------------------------------------------------------------------
|
17257
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
17258
|
+
------------------------------------------------------------------------------------------
|
17259
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17261
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17262
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
17263
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17264
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17265
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17266
|
+
-----------------------------------------------------------------------------------------
|
17267
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
17268
|
+
-----------------------------------------------------------------------------------------
|
17269
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17270
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17271
|
+
----------------------------------------------------
|
17272
|
+
EmployeesControllerTest: test_should_create_employee
|
17273
|
+
----------------------------------------------------
|
17274
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17275
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.626984"], ["updated_at", "2015-09-07 09:03:28.626984"]]
|
17276
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17277
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17278
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.630503"], ["updated_at", "2015-09-07 09:03:28.630503"]]
|
17279
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17280
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17281
|
+
Processing by EmployeesController#create as HTML
|
17282
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
17283
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17284
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 09:03:28.635096"], ["updated_at", "2015-09-07 09:03:28.635096"]]
|
17285
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17286
|
+
Redirected to http://test.host/employees/1335
|
17287
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
17288
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17289
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17290
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
17291
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17292
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17293
|
+
--------------------------------------------
|
17294
|
+
EmployeesControllerTest: test_should_get_new
|
17295
|
+
--------------------------------------------
|
17296
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17297
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.640062"], ["updated_at", "2015-09-07 09:03:28.640062"]]
|
17298
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17299
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17300
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.641172"], ["updated_at", "2015-09-07 09:03:28.641172"]]
|
17301
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17302
|
+
Processing by EmployeesController#new as HTML
|
17303
|
+
Rendered employees/_form.html.erb (8.1ms)
|
17304
|
+
Rendered employees/new.html.erb within layouts/application (10.8ms)
|
17305
|
+
Completed 200 OK in 124ms (Views: 123.4ms | ActiveRecord: 0.0ms)
|
17306
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17307
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17308
|
+
----------------------------------------------------
|
17309
|
+
EmployeesControllerTest: test_should_update_employee
|
17310
|
+
----------------------------------------------------
|
17311
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17312
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.767839"], ["updated_at", "2015-09-07 09:03:28.767839"]]
|
17313
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17314
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17315
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.768990"], ["updated_at", "2015-09-07 09:03:28.768990"]]
|
17316
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17317
|
+
Processing by EmployeesController#update as HTML
|
17318
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1338"}
|
17319
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1338]]
|
17320
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17321
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 09:03:28.773948"], ["id", 1338]]
|
17322
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17323
|
+
Redirected to http://test.host/employees/1338
|
17324
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
17325
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1338]]
|
17326
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17327
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17328
|
+
---------------------------------------------
|
17329
|
+
EmployeesControllerTest: test_should_get_edit
|
17330
|
+
---------------------------------------------
|
17331
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17332
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.777697"], ["updated_at", "2015-09-07 09:03:28.777697"]]
|
17333
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17334
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17335
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.778840"], ["updated_at", "2015-09-07 09:03:28.778840"]]
|
17336
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17337
|
+
Processing by EmployeesController#edit as HTML
|
17338
|
+
Parameters: {"id"=>"1340"}
|
17339
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1340]]
|
17340
|
+
Rendered employees/_form.html.erb (1.4ms)
|
17341
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
17342
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
17343
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17344
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17345
|
+
--------------------------------------------------
|
17346
|
+
EmployeesControllerTest: test_should_show_employee
|
17347
|
+
--------------------------------------------------
|
17348
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
17349
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.785126"], ["updated_at", "2015-09-07 09:03:28.785126"]]
|
17350
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17352
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.786043"], ["updated_at", "2015-09-07 09:03:28.786043"]]
|
17353
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17354
|
+
Processing by EmployeesController#show as HTML
|
17355
|
+
Parameters: {"id"=>"1342"}
|
17356
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1342]]
|
17357
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
17358
|
+
Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
17359
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17360
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17361
|
+
----------------------------------------------
|
17362
|
+
EmployeesControllerTest: test_should_get_index
|
17363
|
+
----------------------------------------------
|
17364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17365
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.790861"], ["updated_at", "2015-09-07 09:03:28.790861"]]
|
17366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17367
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17368
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.792672"], ["updated_at", "2015-09-07 09:03:28.792672"]]
|
17369
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17370
|
+
Processing by EmployeesController#index as HTML
|
17371
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
17372
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
17373
|
+
Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
17374
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17375
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17376
|
+
-----------------------------------------------------
|
17377
|
+
EmployeesControllerTest: test_should_destroy_employee
|
17378
|
+
-----------------------------------------------------
|
17379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17380
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:03:28.798670"], ["updated_at", "2015-09-07 09:03:28.798670"]]
|
17381
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17382
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17383
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:03:28.799763"], ["updated_at", "2015-09-07 09:03:28.799763"]]
|
17384
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17385
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17386
|
+
Processing by EmployeesController#destroy as HTML
|
17387
|
+
Parameters: {"id"=>"1346"}
|
17388
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1346]]
|
17389
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17390
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1346]]
|
17391
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17392
|
+
Redirected to http://test.host/employees
|
17393
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
17394
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17395
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17396
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17397
|
+
-----------------------------------------------------------
|
17398
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
17399
|
+
-----------------------------------------------------------
|
17400
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17401
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17402
|
+
-----------------------------------------------------------------------------------
|
17403
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
17404
|
+
-----------------------------------------------------------------------------------
|
17405
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17406
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17407
|
+
---------------------------------------------------------------------------------------------------------
|
17408
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
17409
|
+
---------------------------------------------------------------------------------------------------------
|
17410
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17411
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17412
|
+
------------------------------------------------------------------------
|
17413
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
17414
|
+
------------------------------------------------------------------------
|
17415
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17416
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17417
|
+
-----------------------------------------------------------------
|
17418
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
17419
|
+
-----------------------------------------------------------------
|
17420
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17421
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17422
|
+
-------------------------------------------
|
17423
|
+
EmployeeTest: test_invalid_day_raises_error
|
17424
|
+
-------------------------------------------
|
17425
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17426
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17427
|
+
---------------------------------------------------------------------
|
17428
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
17429
|
+
---------------------------------------------------------------------
|
17430
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17431
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:03:28.809943"], ["updated_at", "2015-09-07 09:03:28.809943"]]
|
17432
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17433
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17434
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 09:03:28.811188"], ["id", 1348]]
|
17435
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17436
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17437
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17438
|
+
--------------------------------------------------------------------------
|
17439
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
17440
|
+
--------------------------------------------------------------------------
|
17441
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17442
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17443
|
+
----------------------------------------------------------------------------------------------------------------
|
17444
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
17445
|
+
----------------------------------------------------------------------------------------------------------------
|
17446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17447
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17448
|
+
----------------------------------------------------------------------------------------------
|
17449
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
17450
|
+
----------------------------------------------------------------------------------------------
|
17451
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17452
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17453
|
+
----------------------------------------------
|
17454
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
17455
|
+
----------------------------------------------
|
17456
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17457
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17458
|
+
------------------------------------------------------------------------------------------
|
17459
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
17460
|
+
------------------------------------------------------------------------------------------
|
17461
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17462
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17463
|
+
---------------------------------------------------------------------
|
17464
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
17465
|
+
---------------------------------------------------------------------
|
17466
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17467
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17468
|
+
-----------------------------------------------------------------------
|
17469
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
17470
|
+
-----------------------------------------------------------------------
|
17471
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17472
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17473
|
+
-------------------------------------------------------------------------
|
17474
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
17475
|
+
-------------------------------------------------------------------------
|
17476
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
17477
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:03:28.816942"], ["updated_at", "2015-09-07 09:03:28.816942"]]
|
17478
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17479
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17480
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17481
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17482
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17483
|
+
-----------------------------------------------------------
|
17484
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
17485
|
+
-----------------------------------------------------------
|
17486
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17487
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17488
|
+
--------------------------------------------
|
17489
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
17490
|
+
--------------------------------------------
|
17491
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
17492
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17493
|
+
-------------------------------
|
17494
|
+
GovUkDateFieldsTest: test_truth
|
17495
|
+
-------------------------------
|
17496
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17497
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17498
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17499
|
+
----------------------------------------------------
|
17500
|
+
EmployeesControllerTest: test_should_update_employee
|
17501
|
+
----------------------------------------------------
|
17502
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17503
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.525731"], ["updated_at", "2015-09-07 09:05:23.525731"]]
|
17504
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17505
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17506
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.528668"], ["updated_at", "2015-09-07 09:05:23.528668"]]
|
17507
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17508
|
+
Processing by EmployeesController#update as HTML
|
17509
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1350"}
|
17510
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1350]]
|
17511
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17512
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 09:05:23.535571"], ["id", 1350]]
|
17513
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17514
|
+
Redirected to http://test.host/employees/1350
|
17515
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
|
17516
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1350]]
|
17517
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17518
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17519
|
+
-----------------------------------------------------
|
17520
|
+
EmployeesControllerTest: test_should_destroy_employee
|
17521
|
+
-----------------------------------------------------
|
17522
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17523
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.541645"], ["updated_at", "2015-09-07 09:05:23.541645"]]
|
17524
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17526
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.543035"], ["updated_at", "2015-09-07 09:05:23.543035"]]
|
17527
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17528
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
17529
|
+
Processing by EmployeesController#destroy as HTML
|
17530
|
+
Parameters: {"id"=>"1352"}
|
17531
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1352]]
|
17532
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17533
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1352]]
|
17534
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17535
|
+
Redirected to http://test.host/employees
|
17536
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
17537
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17538
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17540
|
+
--------------------------------------------------
|
17541
|
+
EmployeesControllerTest: test_should_show_employee
|
17542
|
+
--------------------------------------------------
|
17543
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17544
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.548338"], ["updated_at", "2015-09-07 09:05:23.548338"]]
|
17545
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17546
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17547
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.549438"], ["updated_at", "2015-09-07 09:05:23.549438"]]
|
17548
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17549
|
+
Processing by EmployeesController#show as HTML
|
17550
|
+
Parameters: {"id"=>"1354"}
|
17551
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1354]]
|
17552
|
+
Rendered employees/show.html.erb within layouts/application (1.0ms)
|
17553
|
+
Completed 200 OK in 89ms (Views: 88.1ms | ActiveRecord: 0.1ms)
|
17554
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17555
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17556
|
+
--------------------------------------------
|
17557
|
+
EmployeesControllerTest: test_should_get_new
|
17558
|
+
--------------------------------------------
|
17559
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17560
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.640714"], ["updated_at", "2015-09-07 09:05:23.640714"]]
|
17561
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17562
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17563
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.641938"], ["updated_at", "2015-09-07 09:05:23.641938"]]
|
17564
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17565
|
+
Processing by EmployeesController#new as HTML
|
17566
|
+
Rendered employees/_form.html.erb (7.3ms)
|
17567
|
+
Rendered employees/new.html.erb within layouts/application (9.4ms)
|
17568
|
+
Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.0ms)
|
17569
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17570
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17571
|
+
----------------------------------------------------
|
17572
|
+
EmployeesControllerTest: test_should_create_employee
|
17573
|
+
----------------------------------------------------
|
17574
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17575
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.655466"], ["updated_at", "2015-09-07 09:05:23.655466"]]
|
17576
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17578
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.656715"], ["updated_at", "2015-09-07 09:05:23.656715"]]
|
17579
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17580
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17581
|
+
Processing by EmployeesController#create as HTML
|
17582
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
17583
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17584
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 09:05:23.659364"], ["updated_at", "2015-09-07 09:05:23.659364"]]
|
17585
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17586
|
+
Redirected to http://test.host/employees/1360
|
17587
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
17588
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17589
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17590
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
17591
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17592
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17593
|
+
----------------------------------------------
|
17594
|
+
EmployeesControllerTest: test_should_get_index
|
17595
|
+
----------------------------------------------
|
17596
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17597
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.662666"], ["updated_at", "2015-09-07 09:05:23.662666"]]
|
17598
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17599
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17600
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.663622"], ["updated_at", "2015-09-07 09:05:23.663622"]]
|
17601
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17602
|
+
Processing by EmployeesController#index as HTML
|
17603
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
17604
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
17605
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
17606
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17607
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17608
|
+
---------------------------------------------
|
17609
|
+
EmployeesControllerTest: test_should_get_edit
|
17610
|
+
---------------------------------------------
|
17611
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17612
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:23.668511"], ["updated_at", "2015-09-07 09:05:23.668511"]]
|
17613
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17614
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17615
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:23.669508"], ["updated_at", "2015-09-07 09:05:23.669508"]]
|
17616
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17617
|
+
Processing by EmployeesController#edit as HTML
|
17618
|
+
Parameters: {"id"=>"1363"}
|
17619
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1363]]
|
17620
|
+
Rendered employees/_form.html.erb (1.3ms)
|
17621
|
+
Rendered employees/edit.html.erb within layouts/application (1.7ms)
|
17622
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
17623
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17624
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17625
|
+
-------------------------------
|
17626
|
+
GovUkDateFieldsTest: test_truth
|
17627
|
+
-------------------------------
|
17628
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17629
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17630
|
+
-------------------------------------------------------------------------------
|
17631
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
17632
|
+
-------------------------------------------------------------------------------
|
17633
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17635
|
+
-----------------------------------------------------------------------------------------
|
17636
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
17637
|
+
-----------------------------------------------------------------------------------------
|
17638
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17639
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17640
|
+
---------------------------------------------------------------------------------
|
17641
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
17642
|
+
---------------------------------------------------------------------------------
|
17643
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17645
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17646
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
17647
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17648
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17649
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17650
|
+
---------------------------------------------------------------------------------
|
17651
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
17652
|
+
---------------------------------------------------------------------------------
|
17653
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17654
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17655
|
+
-----------------------------------------------------------------------------------------------
|
17656
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
17657
|
+
-----------------------------------------------------------------------------------------------
|
17658
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17659
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17660
|
+
------------------------------------------------------------------------------------------
|
17661
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
17662
|
+
------------------------------------------------------------------------------------------
|
17663
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17664
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17665
|
+
-----------------------------------------------------------
|
17666
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
17667
|
+
-----------------------------------------------------------
|
17668
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17669
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17670
|
+
----------------------------------------------------------------------------------------------------------------
|
17671
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
17672
|
+
----------------------------------------------------------------------------------------------------------------
|
17673
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17674
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17675
|
+
-------------------------------------------------------------------------------------------------------------------
|
17676
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
17677
|
+
-------------------------------------------------------------------------------------------------------------------
|
17678
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17679
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17680
|
+
-------------------------------------------------------------------------
|
17681
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
17682
|
+
-------------------------------------------------------------------------
|
17683
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17684
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:05:23.690288"], ["updated_at", "2015-09-07 09:05:23.690288"]]
|
17685
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17687
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17688
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17689
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17690
|
+
-----------------------------------------------------------------------
|
17691
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
17692
|
+
-----------------------------------------------------------------------
|
17693
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17694
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17695
|
+
----------------------------------------------------------------------------------------------
|
17696
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
17697
|
+
----------------------------------------------------------------------------------------------
|
17698
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17699
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17700
|
+
---------------------------------------------------------------------
|
17701
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
17702
|
+
---------------------------------------------------------------------
|
17703
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17704
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17705
|
+
------------------------------------------------------------------------
|
17706
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
17707
|
+
------------------------------------------------------------------------
|
17708
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17709
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17710
|
+
--------------------------------------------
|
17711
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
17712
|
+
--------------------------------------------
|
17713
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17714
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17715
|
+
-----------------------------------------------------------------
|
17716
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
17717
|
+
-----------------------------------------------------------------
|
17718
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17719
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17720
|
+
-----------------------------------------------------------------------------------
|
17721
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
17722
|
+
-----------------------------------------------------------------------------------
|
17723
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17724
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17725
|
+
---------------------------------------------------------------------
|
17726
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
17727
|
+
---------------------------------------------------------------------
|
17728
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17729
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:05:23.698163"], ["updated_at", "2015-09-07 09:05:23.698163"]]
|
17730
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17731
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
17732
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2015-09-07 09:05:23.699296"], ["id", 1366]]
|
17733
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17734
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17735
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17736
|
+
---------------------------------------------------------------------------------------------------------
|
17737
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
17738
|
+
---------------------------------------------------------------------------------------------------------
|
17739
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17740
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17741
|
+
------------------------------------------------------------------------------------------
|
17742
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
17743
|
+
------------------------------------------------------------------------------------------
|
17744
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
17745
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17746
|
+
-----------------------------------------------------------
|
17747
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
17748
|
+
-----------------------------------------------------------
|
17749
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
17750
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17751
|
+
----------------------------------------------
|
17752
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
17753
|
+
----------------------------------------------
|
17754
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
17755
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17756
|
+
--------------------------------------------------------------------------
|
17757
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
17758
|
+
--------------------------------------------------------------------------
|
17759
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
17760
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17761
|
+
-------------------------------------------
|
17762
|
+
EmployeeTest: test_invalid_day_raises_error
|
17763
|
+
-------------------------------------------
|
17764
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17765
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17766
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17767
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17768
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
17769
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
17770
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17771
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17772
|
+
------------------------------------------------------------------------------------------
|
17773
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
17774
|
+
------------------------------------------------------------------------------------------
|
17775
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17776
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17777
|
+
-----------------------------------------------------------------------------------------
|
17778
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
17779
|
+
-----------------------------------------------------------------------------------------
|
17780
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17781
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17782
|
+
-----------------------------------------------------------------------------------------------
|
17783
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
17784
|
+
-----------------------------------------------------------------------------------------------
|
17785
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17786
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17787
|
+
-------------------------------------------------------------------------------
|
17788
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
17789
|
+
-------------------------------------------------------------------------------
|
17790
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17791
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17792
|
+
---------------------------------------------------------------------------------
|
17793
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
17794
|
+
---------------------------------------------------------------------------------
|
17795
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17796
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17797
|
+
---------------------------------------------------------------------------------
|
17798
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
17799
|
+
---------------------------------------------------------------------------------
|
17800
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17801
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17802
|
+
--------------------------------------------------
|
17803
|
+
EmployeesControllerTest: test_should_show_employee
|
17804
|
+
--------------------------------------------------
|
17805
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17806
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.713322"], ["updated_at", "2015-09-07 09:05:50.713322"]]
|
17807
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17808
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17809
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.716410"], ["updated_at", "2015-09-07 09:05:50.716410"]]
|
17810
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17811
|
+
Processing by EmployeesController#show as HTML
|
17812
|
+
Parameters: {"id"=>"1367"}
|
17813
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1367]]
|
17814
|
+
Rendered employees/show.html.erb within layouts/application (1.0ms)
|
17815
|
+
Completed 200 OK in 89ms (Views: 85.4ms | ActiveRecord: 0.2ms)
|
17816
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17818
|
+
----------------------------------------------------
|
17819
|
+
EmployeesControllerTest: test_should_update_employee
|
17820
|
+
----------------------------------------------------
|
17821
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17822
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.809756"], ["updated_at", "2015-09-07 09:05:50.809756"]]
|
17823
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17824
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17825
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.810938"], ["updated_at", "2015-09-07 09:05:50.810938"]]
|
17826
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17827
|
+
Processing by EmployeesController#update as HTML
|
17828
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1369"}
|
17829
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1369]]
|
17830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17831
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2015-09-07 09:05:50.813666"], ["id", 1369]]
|
17832
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17833
|
+
Redirected to http://test.host/employees/1369
|
17834
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
17835
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1369]]
|
17836
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17838
|
+
----------------------------------------------
|
17839
|
+
EmployeesControllerTest: test_should_get_index
|
17840
|
+
----------------------------------------------
|
17841
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17842
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.817561"], ["updated_at", "2015-09-07 09:05:50.817561"]]
|
17843
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17844
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17845
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.818622"], ["updated_at", "2015-09-07 09:05:50.818622"]]
|
17846
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17847
|
+
Processing by EmployeesController#index as HTML
|
17848
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
17849
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
17850
|
+
Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
|
17851
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17852
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17853
|
+
----------------------------------------------------
|
17854
|
+
EmployeesControllerTest: test_should_create_employee
|
17855
|
+
----------------------------------------------------
|
17856
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17857
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.823764"], ["updated_at", "2015-09-07 09:05:50.823764"]]
|
17858
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17859
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17860
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.824835"], ["updated_at", "2015-09-07 09:05:50.824835"]]
|
17861
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17862
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
17863
|
+
Processing by EmployeesController#create as HTML
|
17864
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
17865
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17866
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2015-09-07 09:05:50.827642"], ["updated_at", "2015-09-07 09:05:50.827642"]]
|
17867
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17868
|
+
Redirected to http://test.host/employees/1375
|
17869
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
17870
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
17871
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17872
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
17873
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17874
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17875
|
+
--------------------------------------------
|
17876
|
+
EmployeesControllerTest: test_should_get_new
|
17877
|
+
--------------------------------------------
|
17878
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
17879
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.831052"], ["updated_at", "2015-09-07 09:05:50.831052"]]
|
17880
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17881
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17882
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.832080"], ["updated_at", "2015-09-07 09:05:50.832080"]]
|
17883
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17884
|
+
Processing by EmployeesController#new as HTML
|
17885
|
+
Rendered employees/_form.html.erb (7.2ms)
|
17886
|
+
Rendered employees/new.html.erb within layouts/application (9.4ms)
|
17887
|
+
Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
17888
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17889
|
+
[1m[35m (0.0ms)[0m BEGIN
|
17890
|
+
---------------------------------------------
|
17891
|
+
EmployeesControllerTest: test_should_get_edit
|
17892
|
+
---------------------------------------------
|
17893
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17894
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.845542"], ["updated_at", "2015-09-07 09:05:50.845542"]]
|
17895
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17896
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17897
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.846690"], ["updated_at", "2015-09-07 09:05:50.846690"]]
|
17898
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17899
|
+
Processing by EmployeesController#edit as HTML
|
17900
|
+
Parameters: {"id"=>"1378"}
|
17901
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1378]]
|
17902
|
+
Rendered employees/_form.html.erb (1.3ms)
|
17903
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
17904
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
|
17905
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17906
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17907
|
+
-----------------------------------------------------
|
17908
|
+
EmployeesControllerTest: test_should_destroy_employee
|
17909
|
+
-----------------------------------------------------
|
17910
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17911
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2015-09-07 09:05:50.852947"], ["updated_at", "2015-09-07 09:05:50.852947"]]
|
17912
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17913
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17914
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2015-09-07 09:05:50.853949"], ["updated_at", "2015-09-07 09:05:50.853949"]]
|
17915
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17916
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
17917
|
+
Processing by EmployeesController#destroy as HTML
|
17918
|
+
Parameters: {"id"=>"1380"}
|
17919
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 1380]]
|
17920
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17921
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1380]]
|
17922
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17923
|
+
Redirected to http://test.host/employees
|
17924
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
17925
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
17926
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17927
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17928
|
+
-----------------------------------------------------------------------------------
|
17929
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
17930
|
+
-----------------------------------------------------------------------------------
|
17931
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17932
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17933
|
+
-------------------------------------------
|
17934
|
+
EmployeeTest: test_invalid_day_raises_error
|
17935
|
+
-------------------------------------------
|
17936
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17937
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17938
|
+
----------------------------------------------
|
17939
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
17940
|
+
----------------------------------------------
|
17941
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17942
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17943
|
+
------------------------------------------------------------------------------------------
|
17944
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
17945
|
+
------------------------------------------------------------------------------------------
|
17946
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17947
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17948
|
+
--------------------------------------------------------------------------
|
17949
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
17950
|
+
--------------------------------------------------------------------------
|
17951
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17953
|
+
-----------------------------------------------------------
|
17954
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
17955
|
+
-----------------------------------------------------------
|
17956
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17957
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17958
|
+
---------------------------------------------------------------------
|
17959
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
17960
|
+
---------------------------------------------------------------------
|
17961
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
17962
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:05:50.862100"], ["updated_at", "2015-09-07 09:05:50.862100"]]
|
17963
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17964
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17965
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 09:05:50.863115"], ["id", 1382]]
|
17966
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17967
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17968
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17969
|
+
-----------------------------------------------------------------
|
17970
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
17971
|
+
-----------------------------------------------------------------
|
17972
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17973
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17974
|
+
-----------------------------------------------------------------------
|
17975
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
17976
|
+
-----------------------------------------------------------------------
|
17977
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17978
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17979
|
+
----------------------------------------------------------------------------------------------
|
17980
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
17981
|
+
----------------------------------------------------------------------------------------------
|
17982
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
17983
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
17984
|
+
-------------------------------------------------------------------------------------------------------------------
|
17985
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
17986
|
+
-------------------------------------------------------------------------------------------------------------------
|
17987
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
17988
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17989
|
+
-------------------------------------------------------------------------
|
17990
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
17991
|
+
-------------------------------------------------------------------------
|
17992
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
17993
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2015-09-07 09:05:50.867189"], ["updated_at", "2015-09-07 09:05:50.867189"]]
|
17994
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17995
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
17996
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17997
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
17998
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17999
|
+
---------------------------------------------------------------------------------------------------------
|
18000
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
18001
|
+
---------------------------------------------------------------------------------------------------------
|
18002
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
18003
|
+
[1m[35m (0.0ms)[0m BEGIN
|
18004
|
+
------------------------------------------------------------------------
|
18005
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
18006
|
+
------------------------------------------------------------------------
|
18007
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
18008
|
+
[1m[35m (0.1ms)[0m BEGIN
|
18009
|
+
--------------------------------------------
|
18010
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
18011
|
+
--------------------------------------------
|
18012
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
18013
|
+
[1m[35m (0.0ms)[0m BEGIN
|
18014
|
+
-----------------------------------------------------------
|
18015
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
18016
|
+
-----------------------------------------------------------
|
18017
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
18018
|
+
[1m[35m (0.1ms)[0m BEGIN
|
18019
|
+
---------------------------------------------------------------------
|
18020
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
18021
|
+
---------------------------------------------------------------------
|
18022
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
18023
|
+
[1m[35m (0.0ms)[0m BEGIN
|
18024
|
+
----------------------------------------------------------------------------------------------------------------
|
18025
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
18026
|
+
----------------------------------------------------------------------------------------------------------------
|
18027
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
18028
|
+
[1m[35m (0.0ms)[0m BEGIN
|
18029
|
+
-------------------------------
|
18030
|
+
GovUkDateFieldsTest: test_truth
|
18031
|
+
-------------------------------
|
18032
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|