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.
@@ -15941,3 +15941,2092 @@ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
15941
15941
  SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-03 09:16:14.888196"], ["id", 1247]]
15942
15942
   (0.1ms) RELEASE SAVEPOINT active_record_1
15943
15943
   (0.1ms) ROLLBACK
15944
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
15945
+  (0.1ms) BEGIN
15946
+ -------------------------------
15947
+ GovUkDateFieldsTest: test_truth
15948
+ -------------------------------
15949
+  (0.1ms) ROLLBACK
15950
+  (0.1ms) BEGIN
15951
+ -----------------------------------------------------------------------------------------------
15952
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
15953
+ -----------------------------------------------------------------------------------------------
15954
+  (0.1ms) ROLLBACK
15955
+  (0.1ms) BEGIN
15956
+ ---------------------------------------------------------------------------------
15957
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
15958
+ ---------------------------------------------------------------------------------
15959
+  (0.1ms) ROLLBACK
15960
+  (0.1ms) BEGIN
15961
+ ----------------------------------------------------------------------------------------------------------------------------------
15962
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
15963
+ ----------------------------------------------------------------------------------------------------------------------------------
15964
+  (0.4ms) ROLLBACK
15965
+  (0.1ms) BEGIN
15966
+ ------------------------------------------------------------------------------------------
15967
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
15968
+ ------------------------------------------------------------------------------------------
15969
+  (0.1ms) ROLLBACK
15970
+  (0.1ms) BEGIN
15971
+ -----------------------------------------------------------------------------------------
15972
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
15973
+ -----------------------------------------------------------------------------------------
15974
+  (0.1ms) ROLLBACK
15975
+  (0.1ms) BEGIN
15976
+ ---------------------------------------------------------------------------------
15977
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
15978
+ ---------------------------------------------------------------------------------
15979
+  (0.1ms) ROLLBACK
15980
+  (0.1ms) BEGIN
15981
+ -------------------------------------------------------------------------------
15982
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
15983
+ -------------------------------------------------------------------------------
15984
+  (0.1ms) ROLLBACK
15985
+  (0.1ms) BEGIN
15986
+ ----------------------------------------------------
15987
+ EmployeesControllerTest: test_should_create_employee
15988
+ ----------------------------------------------------
15989
+  (0.1ms) SAVEPOINT active_record_1
15990
+ SQL (1.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15992
+  (0.1ms) SAVEPOINT active_record_1
15993
+ SQL (0.2ms) 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.106184"], ["updated_at", "2015-09-07 08:40:13.106184"]]
15994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15995
+  (0.3ms) SELECT COUNT(*) FROM "employees"
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
+  (0.1ms) SAVEPOINT active_record_1
15999
+ SQL (0.1ms) 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:40:13.111182"], ["updated_at", "2015-09-07 08:40:13.111182"]]
16000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16001
+ Redirected to http://test.host/employees/1250
16002
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
16003
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16004
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16005
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
16006
+  (0.1ms) ROLLBACK
16007
+  (0.1ms) BEGIN
16008
+ ----------------------------------------------------
16009
+ EmployeesControllerTest: test_should_update_employee
16010
+ ----------------------------------------------------
16011
+  (0.1ms) SAVEPOINT active_record_1
16012
+ SQL (0.1ms) 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.116132"], ["updated_at", "2015-09-07 08:40:13.116132"]]
16013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16014
+  (0.1ms) SAVEPOINT active_record_1
16015
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1251]]
16020
+  (0.1ms) SAVEPOINT active_record_1
16021
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16023
+ Redirected to http://test.host/employees/1251
16024
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
16025
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1251]]
16026
+  (0.1ms) ROLLBACK
16027
+  (0.1ms) BEGIN
16028
+ ----------------------------------------------
16029
+ EmployeesControllerTest: test_should_get_index
16030
+ ----------------------------------------------
16031
+  (0.1ms) SAVEPOINT active_record_1
16032
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16034
+  (0.1ms) SAVEPOINT active_record_1
16035
+ SQL (0.1ms) 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.128683"], ["updated_at", "2015-09-07 08:40:13.128683"]]
16036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16037
+ Processing by EmployeesController#index as HTML
16038
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees"
16039
+ Rendered employees/index.html.erb within layouts/application (3.9ms)
16040
+ Completed 200 OK in 96ms (Views: 95.6ms | ActiveRecord: 0.3ms)
16041
+  (0.2ms) ROLLBACK
16042
+  (0.1ms) BEGIN
16043
+ ---------------------------------------------
16044
+ EmployeesControllerTest: test_should_get_edit
16045
+ ---------------------------------------------
16046
+  (0.1ms) SAVEPOINT active_record_1
16047
+ SQL (0.2ms) 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.227501"], ["updated_at", "2015-09-07 08:40:13.227501"]]
16048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16049
+  (0.1ms) SAVEPOINT active_record_1
16050
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16052
+ Processing by EmployeesController#edit as HTML
16053
+ Parameters: {"id"=>"1255"}
16054
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
16059
+  (0.1ms) BEGIN
16060
+ --------------------------------------------
16061
+ EmployeesControllerTest: test_should_get_new
16062
+ --------------------------------------------
16063
+  (0.1ms) SAVEPOINT active_record_1
16064
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16066
+  (0.1ms) SAVEPOINT active_record_1
16067
+ SQL (0.1ms) 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.255442"], ["updated_at", "2015-09-07 08:40:13.255442"]]
16068
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
16074
+  (0.0ms) BEGIN
16075
+ -----------------------------------------------------
16076
+ EmployeesControllerTest: test_should_destroy_employee
16077
+ -----------------------------------------------------
16078
+  (0.1ms) SAVEPOINT active_record_1
16079
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16081
+  (0.1ms) SAVEPOINT active_record_1
16082
+ SQL (0.1ms) 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.262144"], ["updated_at", "2015-09-07 08:40:13.262144"]]
16083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16084
+  (0.2ms) SELECT COUNT(*) FROM "employees"
16085
+ Processing by EmployeesController#destroy as HTML
16086
+ Parameters: {"id"=>"1259"}
16087
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1259]]
16088
+  (0.1ms) SAVEPOINT active_record_1
16089
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1259]]
16090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16091
+ Redirected to http://test.host/employees
16092
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
16093
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16094
+  (0.1ms) ROLLBACK
16095
+  (0.0ms) BEGIN
16096
+ --------------------------------------------------
16097
+ EmployeesControllerTest: test_should_show_employee
16098
+ --------------------------------------------------
16099
+  (0.0ms) SAVEPOINT active_record_1
16100
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16102
+  (0.1ms) SAVEPOINT active_record_1
16103
+ SQL (0.1ms) 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.268221"], ["updated_at", "2015-09-07 08:40:13.268221"]]
16104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16105
+ Processing by EmployeesController#show as HTML
16106
+ Parameters: {"id"=>"1261"}
16107
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
16111
+  (0.1ms) BEGIN
16112
+ --------------------------------------------------------------------------
16113
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
16114
+ --------------------------------------------------------------------------
16115
+  (0.1ms) ROLLBACK
16116
+  (0.1ms) BEGIN
16117
+ -------------------------------------------------------------------------
16118
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
16119
+ -------------------------------------------------------------------------
16120
+  (0.1ms) SAVEPOINT active_record_1
16121
+ SQL (0.1ms) 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.273973"], ["updated_at", "2015-09-07 08:40:13.273973"]]
16122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16123
+  (0.1ms) SAVEPOINT active_record_1
16124
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16125
+  (0.1ms) ROLLBACK
16126
+  (0.1ms) BEGIN
16127
+ -----------------------------------------------------------------------
16128
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
16129
+ -----------------------------------------------------------------------
16130
+  (0.1ms) ROLLBACK
16131
+  (0.1ms) BEGIN
16132
+ ---------------------------------------------------------------------
16133
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
16134
+ ---------------------------------------------------------------------
16135
+  (0.1ms) ROLLBACK
16136
+  (0.1ms) BEGIN
16137
+ -----------------------------------------------------------------
16138
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
16139
+ -----------------------------------------------------------------
16140
+  (0.1ms) ROLLBACK
16141
+  (0.1ms) BEGIN
16142
+ -----------------------------------------------------------
16143
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
16144
+ -----------------------------------------------------------
16145
+  (0.1ms) ROLLBACK
16146
+  (0.1ms) BEGIN
16147
+ --------------------------------------------
16148
+ EmployeeTest: test_nil_dates_raise_no_errors
16149
+ --------------------------------------------
16150
+  (0.1ms) ROLLBACK
16151
+  (0.0ms) BEGIN
16152
+ --------------------------------------------------------------------------------------------------
16153
+ EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
16154
+ --------------------------------------------------------------------------------------------------
16155
+  (0.1ms) ROLLBACK
16156
+  (0.1ms) BEGIN
16157
+ ------------------------------------------------------------------------------------------
16158
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
16159
+ ------------------------------------------------------------------------------------------
16160
+  (0.1ms) ROLLBACK
16161
+  (0.1ms) BEGIN
16162
+ ---------------------------------------------------------------------
16163
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
16164
+ ---------------------------------------------------------------------
16165
+  (0.1ms) SAVEPOINT active_record_1
16166
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16168
+  (0.1ms) SAVEPOINT active_record_1
16169
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:40:13.281657"], ["id", 1264]]
16170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16171
+  (0.1ms) ROLLBACK
16172
+  (0.0ms) BEGIN
16173
+ -----------------------------------------------------------
16174
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
16175
+ -----------------------------------------------------------
16176
+  (0.1ms) ROLLBACK
16177
+  (0.1ms) BEGIN
16178
+ ----------------------------------------------
16179
+ EmployeeTest: test_valid_dates_raise_no_errors
16180
+ ----------------------------------------------
16181
+  (0.1ms) ROLLBACK
16182
+  (0.0ms) BEGIN
16183
+ -------------------------------------------
16184
+ EmployeeTest: test_invalid_day_raises_error
16185
+ -------------------------------------------
16186
+  (0.1ms) ROLLBACK
16187
+  (0.1ms) BEGIN
16188
+ -----------------------------------------------------------------------------------
16189
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
16190
+ -----------------------------------------------------------------------------------
16191
+  (0.1ms) ROLLBACK
16192
+  (0.0ms) BEGIN
16193
+ ------------------------------------------------------------------------
16194
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
16195
+ ------------------------------------------------------------------------
16196
+  (0.1ms) ROLLBACK
16197
+  (0.1ms) 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
+  (0.0ms) ROLLBACK
16202
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16203
+  (0.1ms) BEGIN
16204
+ -------------------------------
16205
+ GovUkDateFieldsTest: test_truth
16206
+ -------------------------------
16207
+  (0.1ms) ROLLBACK
16208
+  (0.1ms) BEGIN
16209
+ ---------------------------------------------------------------------
16210
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
16211
+ ---------------------------------------------------------------------
16212
+  (0.1ms) ROLLBACK
16213
+  (0.1ms) BEGIN
16214
+ -----------------------------------------------------------------------------------
16215
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
16216
+ -----------------------------------------------------------------------------------
16217
+  (0.1ms) ROLLBACK
16218
+  (0.1ms) BEGIN
16219
+ -----------------------------------------------------------------
16220
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
16221
+ -----------------------------------------------------------------
16222
+  (0.1ms) ROLLBACK
16223
+  (0.1ms) BEGIN
16224
+ --------------------------------------------------------------------------
16225
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
16226
+ --------------------------------------------------------------------------
16227
+  (0.1ms) ROLLBACK
16228
+  (0.1ms) BEGIN
16229
+ -------------------------------------------------------------------------
16230
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
16231
+ -------------------------------------------------------------------------
16232
+  (0.1ms) SAVEPOINT active_record_1
16233
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16235
+  (0.1ms) SAVEPOINT active_record_1
16236
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16237
+  (0.1ms) ROLLBACK
16238
+  (0.1ms) BEGIN
16239
+ ------------------------------------------------------------------------------------------
16240
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
16241
+ ------------------------------------------------------------------------------------------
16242
+  (0.1ms) ROLLBACK
16243
+  (0.1ms) BEGIN
16244
+ ----------------------------------------------------------------------------------------------------------------
16245
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
16246
+ ----------------------------------------------------------------------------------------------------------------
16247
+  (0.1ms) ROLLBACK
16248
+  (0.0ms) BEGIN
16249
+ --------------------------------------------
16250
+ EmployeeTest: test_nil_dates_raise_no_errors
16251
+ --------------------------------------------
16252
+  (0.1ms) ROLLBACK
16253
+  (0.1ms) BEGIN
16254
+ -----------------------------------------------------------
16255
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
16256
+ -----------------------------------------------------------
16257
+  (0.1ms) ROLLBACK
16258
+  (0.0ms) BEGIN
16259
+ -----------------------------------------------------------------------
16260
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
16261
+ -----------------------------------------------------------------------
16262
+  (0.1ms) ROLLBACK
16263
+  (0.1ms) BEGIN
16264
+ -----------------------------------------------------------
16265
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
16266
+ -----------------------------------------------------------
16267
+  (0.1ms) ROLLBACK
16268
+  (0.1ms) BEGIN
16269
+ -------------------------------------------
16270
+ EmployeeTest: test_invalid_day_raises_error
16271
+ -------------------------------------------
16272
+  (0.1ms) ROLLBACK
16273
+  (0.1ms) BEGIN
16274
+ ------------------------------------------------------------------------
16275
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
16276
+ ------------------------------------------------------------------------
16277
+  (0.1ms) ROLLBACK
16278
+  (0.1ms) BEGIN
16279
+ ---------------------------------------------------------------------
16280
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
16281
+ ---------------------------------------------------------------------
16282
+  (0.1ms) SAVEPOINT active_record_1
16283
+ SQL (0.1ms) 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.697803"], ["updated_at", "2015-09-07 08:41:52.697803"]]
16284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16285
+  (0.1ms) SAVEPOINT active_record_1
16286
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16288
+  (0.1ms) ROLLBACK
16289
+  (0.1ms) BEGIN
16290
+ --------------------------------------------------------------------------------------------------
16291
+ EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
16292
+ --------------------------------------------------------------------------------------------------
16293
+  (0.1ms) ROLLBACK
16294
+  (0.1ms) BEGIN
16295
+ ----------------------------------------------
16296
+ EmployeeTest: test_valid_dates_raise_no_errors
16297
+ ----------------------------------------------
16298
+  (0.1ms) ROLLBACK
16299
+  (0.0ms) BEGIN
16300
+ --------------------------------------------
16301
+ EmployeesControllerTest: test_should_get_new
16302
+ --------------------------------------------
16303
+  (0.1ms) SAVEPOINT active_record_1
16304
+ SQL (0.2ms) 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.734439"], ["updated_at", "2015-09-07 08:41:52.734439"]]
16305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16306
+  (0.1ms) SAVEPOINT active_record_1
16307
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.2ms) ROLLBACK
16314
+  (0.1ms) BEGIN
16315
+ --------------------------------------------------
16316
+ EmployeesControllerTest: test_should_show_employee
16317
+ --------------------------------------------------
16318
+  (0.1ms) SAVEPOINT active_record_1
16319
+ SQL (0.2ms) 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.833001"], ["updated_at", "2015-09-07 08:41:52.833001"]]
16320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16321
+  (0.0ms) SAVEPOINT active_record_1
16322
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16324
+ Processing by EmployeesController#show as HTML
16325
+ Parameters: {"id"=>"1269"}
16326
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
16330
+  (0.1ms) BEGIN
16331
+ ----------------------------------------------
16332
+ EmployeesControllerTest: test_should_get_index
16333
+ ----------------------------------------------
16334
+  (0.1ms) SAVEPOINT active_record_1
16335
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16337
+  (0.1ms) SAVEPOINT active_record_1
16338
+ SQL (0.1ms) 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.842845"], ["updated_at", "2015-09-07 08:41:52.842845"]]
16339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16340
+ Processing by EmployeesController#index as HTML
16341
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
16342
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
16343
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
16344
+  (0.1ms) ROLLBACK
16345
+  (0.1ms) BEGIN
16346
+ -----------------------------------------------------
16347
+ EmployeesControllerTest: test_should_destroy_employee
16348
+ -----------------------------------------------------
16349
+  (0.1ms) SAVEPOINT active_record_1
16350
+ SQL (0.1ms) 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.847969"], ["updated_at", "2015-09-07 08:41:52.847969"]]
16351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16352
+  (0.1ms) SAVEPOINT active_record_1
16353
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16355
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16356
+ Processing by EmployeesController#destroy as HTML
16357
+ Parameters: {"id"=>"1273"}
16358
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1273]]
16359
+  (0.1ms) SAVEPOINT active_record_1
16360
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1273]]
16361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16362
+ Redirected to http://test.host/employees
16363
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
16364
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16365
+  (0.1ms) ROLLBACK
16366
+  (0.1ms) BEGIN
16367
+ ----------------------------------------------------
16368
+ EmployeesControllerTest: test_should_create_employee
16369
+ ----------------------------------------------------
16370
+  (0.1ms) SAVEPOINT active_record_1
16371
+ SQL (0.1ms) 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.853815"], ["updated_at", "2015-09-07 08:41:52.853815"]]
16372
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16373
+  (0.1ms) SAVEPOINT active_record_1
16374
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16376
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
16380
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16382
+ Redirected to http://test.host/employees/1277
16383
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
16384
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16385
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16386
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
16387
+  (0.1ms) ROLLBACK
16388
+  (0.1ms) BEGIN
16389
+ ----------------------------------------------------
16390
+ EmployeesControllerTest: test_should_update_employee
16391
+ ----------------------------------------------------
16392
+  (0.1ms) SAVEPOINT active_record_1
16393
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16395
+  (0.1ms) SAVEPOINT active_record_1
16396
+ SQL (0.1ms) 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.861907"], ["updated_at", "2015-09-07 08:41:52.861907"]]
16397
+  (0.1ms) 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
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1278]]
16401
+  (0.1ms) SAVEPOINT active_record_1
16402
+ SQL (0.1ms) 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:41:52.864413"], ["id", 1278]]
16403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16404
+ Redirected to http://test.host/employees/1278
16405
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
16406
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1278]]
16407
+  (0.1ms) ROLLBACK
16408
+  (0.0ms) BEGIN
16409
+ ---------------------------------------------
16410
+ EmployeesControllerTest: test_should_get_edit
16411
+ ---------------------------------------------
16412
+  (0.1ms) SAVEPOINT active_record_1
16413
+ SQL (0.1ms) 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.867079"], ["updated_at", "2015-09-07 08:41:52.867079"]]
16414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16415
+  (0.1ms) SAVEPOINT active_record_1
16416
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16418
+ Processing by EmployeesController#edit as HTML
16419
+ Parameters: {"id"=>"1280"}
16420
+ Employee Load (0.1ms) 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
+  (0.1ms) ROLLBACK
16425
+  (0.1ms) BEGIN
16426
+ -----------------------------------------------------------------------------------------
16427
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
16428
+ -----------------------------------------------------------------------------------------
16429
+  (0.1ms) ROLLBACK
16430
+  (0.0ms) BEGIN
16431
+ ---------------------------------------------------------------------------------
16432
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
16433
+ ---------------------------------------------------------------------------------
16434
+  (0.1ms) ROLLBACK
16435
+  (0.0ms) BEGIN
16436
+ -----------------------------------------------------------------------------------------------
16437
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
16438
+ -----------------------------------------------------------------------------------------------
16439
+  (0.1ms) ROLLBACK
16440
+  (0.1ms) BEGIN
16441
+ -------------------------------------------------------------------------------
16442
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
16443
+ -------------------------------------------------------------------------------
16444
+  (0.1ms) ROLLBACK
16445
+  (0.1ms) BEGIN
16446
+ ---------------------------------------------------------------------------------
16447
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
16448
+ ---------------------------------------------------------------------------------
16449
+  (0.1ms) ROLLBACK
16450
+  (0.1ms) BEGIN
16451
+ ------------------------------------------------------------------------------------------
16452
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
16453
+ ------------------------------------------------------------------------------------------
16454
+  (0.1ms) ROLLBACK
16455
+  (0.1ms) BEGIN
16456
+ ----------------------------------------------------------------------------------------------------------------------------------
16457
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
16458
+ ----------------------------------------------------------------------------------------------------------------------------------
16459
+  (0.1ms) ROLLBACK
16460
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16461
+  (0.1ms) BEGIN
16462
+ -------------------------------
16463
+ GovUkDateFieldsTest: test_truth
16464
+ -------------------------------
16465
+  (0.1ms) ROLLBACK
16466
+  (0.1ms) BEGIN
16467
+ ------------------------------------------------------------------------------------------
16468
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
16469
+ ------------------------------------------------------------------------------------------
16470
+  (0.1ms) ROLLBACK
16471
+  (0.0ms) BEGIN
16472
+ --------------------------------------------------------------------------
16473
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
16474
+ --------------------------------------------------------------------------
16475
+  (0.1ms) ROLLBACK
16476
+  (0.1ms) BEGIN
16477
+ -----------------------------------------------------------
16478
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
16479
+ -----------------------------------------------------------
16480
+  (0.1ms) ROLLBACK
16481
+  (0.1ms) BEGIN
16482
+ --------------------------------------------------------------------------------------------------
16483
+ EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
16484
+ --------------------------------------------------------------------------------------------------
16485
+  (0.1ms) ROLLBACK
16486
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
16491
+  (0.1ms) BEGIN
16492
+ -----------------------------------------------------------------------------------
16493
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
16494
+ -----------------------------------------------------------------------------------
16495
+  (0.1ms) ROLLBACK
16496
+  (0.1ms) BEGIN
16497
+ --------------------------------------------
16498
+ EmployeeTest: test_nil_dates_raise_no_errors
16499
+ --------------------------------------------
16500
+  (0.1ms) ROLLBACK
16501
+  (0.1ms) BEGIN
16502
+ ----------------------------------------------
16503
+ EmployeeTest: test_valid_dates_raise_no_errors
16504
+ ----------------------------------------------
16505
+  (0.1ms) ROLLBACK
16506
+  (0.1ms) BEGIN
16507
+ -----------------------------------------------------------------------
16508
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
16509
+ -----------------------------------------------------------------------
16510
+  (0.1ms) ROLLBACK
16511
+  (0.1ms) BEGIN
16512
+ -----------------------------------------------------------
16513
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
16514
+ -----------------------------------------------------------
16515
+  (0.1ms) ROLLBACK
16516
+  (0.1ms) BEGIN
16517
+ ---------------------------------------------------------------------
16518
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
16519
+ ---------------------------------------------------------------------
16520
+  (0.1ms) SAVEPOINT active_record_1
16521
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16523
+  (0.1ms) SAVEPOINT active_record_1
16524
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:43:53.037209"], ["id", 1282]]
16525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16526
+  (0.1ms) ROLLBACK
16527
+  (0.1ms) BEGIN
16528
+ ------------------------------------------------------------------------
16529
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
16530
+ ------------------------------------------------------------------------
16531
+  (0.1ms) ROLLBACK
16532
+  (0.1ms) BEGIN
16533
+ -------------------------------------------------------------------------
16534
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
16535
+ -------------------------------------------------------------------------
16536
+  (0.1ms) SAVEPOINT active_record_1
16537
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16539
+  (0.0ms) SAVEPOINT active_record_1
16540
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16541
+  (0.1ms) ROLLBACK
16542
+  (0.1ms) BEGIN
16543
+ -------------------------------------------
16544
+ EmployeeTest: test_invalid_day_raises_error
16545
+ -------------------------------------------
16546
+  (0.1ms) ROLLBACK
16547
+  (0.0ms) BEGIN
16548
+ -----------------------------------------------------------------
16549
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
16550
+ -----------------------------------------------------------------
16551
+  (0.1ms) ROLLBACK
16552
+  (0.1ms) BEGIN
16553
+ ---------------------------------------------------------------------
16554
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
16555
+ ---------------------------------------------------------------------
16556
+  (0.1ms) ROLLBACK
16557
+  (0.1ms) BEGIN
16558
+ ----------------------------------------------
16559
+ EmployeesControllerTest: test_should_get_index
16560
+ ----------------------------------------------
16561
+  (0.1ms) SAVEPOINT active_record_1
16562
+ SQL (0.1ms) 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.074851"], ["updated_at", "2015-09-07 08:43:53.074851"]]
16563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16564
+  (0.0ms) SAVEPOINT active_record_1
16565
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16567
+ Processing by EmployeesController#index as HTML
16568
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
16572
+  (0.1ms) BEGIN
16573
+ -----------------------------------------------------
16574
+ EmployeesControllerTest: test_should_destroy_employee
16575
+ -----------------------------------------------------
16576
+  (0.1ms) SAVEPOINT active_record_1
16577
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16579
+  (0.1ms) SAVEPOINT active_record_1
16580
+ SQL (0.1ms) 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.163614"], ["updated_at", "2015-09-07 08:43:53.163614"]]
16581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16582
+  (0.2ms) SELECT COUNT(*) FROM "employees"
16583
+ Processing by EmployeesController#destroy as HTML
16584
+ Parameters: {"id"=>"1286"}
16585
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1286]]
16586
+  (0.1ms) SAVEPOINT active_record_1
16587
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1286]]
16588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16589
+ Redirected to http://test.host/employees
16590
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
16591
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16592
+  (0.1ms) ROLLBACK
16593
+  (0.0ms) BEGIN
16594
+ --------------------------------------------
16595
+ EmployeesControllerTest: test_should_get_new
16596
+ --------------------------------------------
16597
+  (0.1ms) SAVEPOINT active_record_1
16598
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16600
+  (0.1ms) SAVEPOINT active_record_1
16601
+ SQL (0.2ms) 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.171282"], ["updated_at", "2015-09-07 08:43:53.171282"]]
16602
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
16608
+  (0.1ms) BEGIN
16609
+ ----------------------------------------------------
16610
+ EmployeesControllerTest: test_should_update_employee
16611
+ ----------------------------------------------------
16612
+  (0.1ms) SAVEPOINT active_record_1
16613
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16615
+  (0.1ms) SAVEPOINT active_record_1
16616
+ SQL (0.1ms) 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.187245"], ["updated_at", "2015-09-07 08:43:53.187245"]]
16617
+  (0.1ms) 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
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1290]]
16621
+  (0.1ms) SAVEPOINT active_record_1
16622
+ SQL (0.2ms) 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:43:53.190312"], ["id", 1290]]
16623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16624
+ Redirected to http://test.host/employees/1290
16625
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
16626
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1290]]
16627
+  (0.1ms) ROLLBACK
16628
+  (0.1ms) BEGIN
16629
+ ---------------------------------------------
16630
+ EmployeesControllerTest: test_should_get_edit
16631
+ ---------------------------------------------
16632
+  (0.1ms) SAVEPOINT active_record_1
16633
+ SQL (0.2ms) 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.194113"], ["updated_at", "2015-09-07 08:43:53.194113"]]
16634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16635
+  (0.1ms) SAVEPOINT active_record_1
16636
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16638
+ Processing by EmployeesController#edit as HTML
16639
+ Parameters: {"id"=>"1292"}
16640
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
16645
+  (0.1ms) BEGIN
16646
+ --------------------------------------------------
16647
+ EmployeesControllerTest: test_should_show_employee
16648
+ --------------------------------------------------
16649
+  (0.1ms) SAVEPOINT active_record_1
16650
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16652
+  (0.0ms) SAVEPOINT active_record_1
16653
+ SQL (0.1ms) 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.203914"], ["updated_at", "2015-09-07 08:43:53.203914"]]
16654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16655
+ Processing by EmployeesController#show as HTML
16656
+ Parameters: {"id"=>"1294"}
16657
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
16661
+  (0.0ms) BEGIN
16662
+ ----------------------------------------------------
16663
+ EmployeesControllerTest: test_should_create_employee
16664
+ ----------------------------------------------------
16665
+  (0.0ms) SAVEPOINT active_record_1
16666
+ SQL (0.1ms) 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.208766"], ["updated_at", "2015-09-07 08:43:53.208766"]]
16667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16668
+  (0.0ms) SAVEPOINT active_record_1
16669
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16671
+  (0.1ms) 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
+  (0.1ms) SAVEPOINT active_record_1
16675
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16677
+ Redirected to http://test.host/employees/1298
16678
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
16679
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16680
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16681
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
16682
+  (0.1ms) ROLLBACK
16683
+  (0.1ms) BEGIN
16684
+ ---------------------------------------------------------------------------------
16685
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
16686
+ ---------------------------------------------------------------------------------
16687
+  (0.1ms) ROLLBACK
16688
+  (0.0ms) BEGIN
16689
+ -----------------------------------------------------------------------------------------------
16690
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
16691
+ -----------------------------------------------------------------------------------------------
16692
+  (0.1ms) ROLLBACK
16693
+  (0.1ms) BEGIN
16694
+ ---------------------------------------------------------------------------------
16695
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
16696
+ ---------------------------------------------------------------------------------
16697
+  (0.1ms) ROLLBACK
16698
+  (0.1ms) BEGIN
16699
+ -----------------------------------------------------------------------------------------
16700
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
16701
+ -----------------------------------------------------------------------------------------
16702
+  (0.1ms) ROLLBACK
16703
+  (0.1ms) BEGIN
16704
+ ------------------------------------------------------------------------------------------
16705
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
16706
+ ------------------------------------------------------------------------------------------
16707
+  (0.1ms) ROLLBACK
16708
+  (0.1ms) BEGIN
16709
+ -------------------------------------------------------------------------------
16710
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
16711
+ -------------------------------------------------------------------------------
16712
+  (0.1ms) ROLLBACK
16713
+  (0.1ms) BEGIN
16714
+ ----------------------------------------------------------------------------------------------------------------------------------
16715
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
16716
+ ----------------------------------------------------------------------------------------------------------------------------------
16717
+  (0.1ms) ROLLBACK
16718
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16719
+  (0.1ms) BEGIN
16720
+ -----------------------------------------------------------
16721
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
16722
+ -----------------------------------------------------------
16723
+  (0.1ms) ROLLBACK
16724
+  (0.1ms) BEGIN
16725
+ -------------------------------------------------------------------------
16726
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
16727
+ -------------------------------------------------------------------------
16728
+  (0.1ms) SAVEPOINT active_record_1
16729
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16731
+  (0.1ms) SAVEPOINT active_record_1
16732
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16733
+  (0.1ms) ROLLBACK
16734
+  (0.1ms) BEGIN
16735
+ ----------------------------------------------
16736
+ EmployeeTest: test_valid_dates_raise_no_errors
16737
+ ----------------------------------------------
16738
+  (0.1ms) ROLLBACK
16739
+  (0.1ms) BEGIN
16740
+ -------------------------------------------
16741
+ EmployeeTest: test_invalid_day_raises_error
16742
+ -------------------------------------------
16743
+  (0.1ms) ROLLBACK
16744
+  (0.1ms) BEGIN
16745
+ -----------------------------------------------------------------------------------
16746
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
16747
+ -----------------------------------------------------------------------------------
16748
+  (0.1ms) ROLLBACK
16749
+  (0.1ms) BEGIN
16750
+ ----------------------------------------------------------------------------------------------------------------
16751
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
16752
+ ----------------------------------------------------------------------------------------------------------------
16753
+  (0.1ms) ROLLBACK
16754
+  (0.1ms) BEGIN
16755
+ ---------------------------------------------------------------------
16756
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
16757
+ ---------------------------------------------------------------------
16758
+  (0.1ms) SAVEPOINT active_record_1
16759
+ SQL (0.1ms) 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.103906"], ["updated_at", "2015-09-07 08:44:58.103906"]]
16760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16761
+  (0.0ms) SAVEPOINT active_record_1
16762
+ SQL (0.2ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
16764
+  (0.1ms) ROLLBACK
16765
+  (0.1ms) BEGIN
16766
+ ------------------------------------------------------------------------------------------
16767
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
16768
+ ------------------------------------------------------------------------------------------
16769
+  (0.1ms) ROLLBACK
16770
+  (0.1ms) BEGIN
16771
+ ---------------------------------------------------------------------
16772
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
16773
+ ---------------------------------------------------------------------
16774
+  (0.1ms) ROLLBACK
16775
+  (0.1ms) BEGIN
16776
+ -----------------------------------------------------------------
16777
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
16778
+ -----------------------------------------------------------------
16779
+  (0.1ms) ROLLBACK
16780
+  (0.1ms) BEGIN
16781
+ --------------------------------------------------------------------------
16782
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
16783
+ --------------------------------------------------------------------------
16784
+  (0.1ms) ROLLBACK
16785
+  (0.1ms) BEGIN
16786
+ --------------------------------------------------------------------------------------------------
16787
+ EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
16788
+ --------------------------------------------------------------------------------------------------
16789
+  (0.1ms) ROLLBACK
16790
+  (0.0ms) BEGIN
16791
+ ------------------------------------------------------------------------
16792
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
16793
+ ------------------------------------------------------------------------
16794
+  (0.1ms) ROLLBACK
16795
+  (0.1ms) BEGIN
16796
+ --------------------------------------------
16797
+ EmployeeTest: test_nil_dates_raise_no_errors
16798
+ --------------------------------------------
16799
+  (0.1ms) ROLLBACK
16800
+  (0.1ms) BEGIN
16801
+ -----------------------------------------------------------------------
16802
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
16803
+ -----------------------------------------------------------------------
16804
+  (0.1ms) ROLLBACK
16805
+  (0.1ms) BEGIN
16806
+ -----------------------------------------------------------
16807
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
16808
+ -----------------------------------------------------------
16809
+  (0.1ms) ROLLBACK
16810
+  (0.0ms) BEGIN
16811
+ ----------------------------------------------------
16812
+ EmployeesControllerTest: test_should_update_employee
16813
+ ----------------------------------------------------
16814
+  (0.1ms) SAVEPOINT active_record_1
16815
+ SQL (0.2ms) 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.160638"], ["updated_at", "2015-09-07 08:44:58.160638"]]
16816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16817
+  (0.0ms) SAVEPOINT active_record_1
16818
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1301]]
16823
+  (0.1ms) SAVEPOINT active_record_1
16824
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16826
+ Redirected to http://test.host/employees/1301
16827
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
16828
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1301]]
16829
+  (0.1ms) ROLLBACK
16830
+  (0.1ms) BEGIN
16831
+ --------------------------------------------
16832
+ EmployeesControllerTest: test_should_get_new
16833
+ --------------------------------------------
16834
+  (0.1ms) SAVEPOINT active_record_1
16835
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16837
+  (0.1ms) SAVEPOINT active_record_1
16838
+ SQL (0.2ms) 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.175686"], ["updated_at", "2015-09-07 08:44:58.175686"]]
16839
+  (0.1ms) 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
+  (0.2ms) ROLLBACK
16845
+  (0.1ms) BEGIN
16846
+ --------------------------------------------------
16847
+ EmployeesControllerTest: test_should_show_employee
16848
+ --------------------------------------------------
16849
+  (0.1ms) SAVEPOINT active_record_1
16850
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16852
+  (0.0ms) SAVEPOINT active_record_1
16853
+ SQL (0.1ms) 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.276065"], ["updated_at", "2015-09-07 08:44:58.276065"]]
16854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16855
+ Processing by EmployeesController#show as HTML
16856
+ Parameters: {"id"=>"1305"}
16857
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
16861
+  (0.1ms) BEGIN
16862
+ -----------------------------------------------------
16863
+ EmployeesControllerTest: test_should_destroy_employee
16864
+ -----------------------------------------------------
16865
+  (0.1ms) SAVEPOINT active_record_1
16866
+ SQL (0.1ms) 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.280812"], ["updated_at", "2015-09-07 08:44:58.280812"]]
16867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16868
+  (0.1ms) SAVEPOINT active_record_1
16869
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16871
+  (0.2ms) SELECT COUNT(*) FROM "employees"
16872
+ Processing by EmployeesController#destroy as HTML
16873
+ Parameters: {"id"=>"1307"}
16874
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1307]]
16875
+  (0.1ms) SAVEPOINT active_record_1
16876
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1307]]
16877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16878
+ Redirected to http://test.host/employees
16879
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
16880
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16881
+  (0.1ms) ROLLBACK
16882
+  (0.1ms) BEGIN
16883
+ ----------------------------------------------------
16884
+ EmployeesControllerTest: test_should_create_employee
16885
+ ----------------------------------------------------
16886
+  (0.1ms) SAVEPOINT active_record_1
16887
+ SQL (0.1ms) 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.287367"], ["updated_at", "2015-09-07 08:44:58.287367"]]
16888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16889
+  (0.1ms) SAVEPOINT active_record_1
16890
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16892
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
16896
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16898
+ Redirected to http://test.host/employees/1311
16899
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
16900
+  (0.2ms) SELECT COUNT(*) FROM "employees"
16901
+  (0.1ms) SELECT COUNT(*) FROM "employees"
16902
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
16903
+  (0.1ms) ROLLBACK
16904
+  (0.1ms) BEGIN
16905
+ ---------------------------------------------
16906
+ EmployeesControllerTest: test_should_get_edit
16907
+ ---------------------------------------------
16908
+  (0.1ms) SAVEPOINT active_record_1
16909
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16911
+  (0.1ms) SAVEPOINT active_record_1
16912
+ SQL (0.1ms) 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.296363"], ["updated_at", "2015-09-07 08:44:58.296363"]]
16913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16914
+ Processing by EmployeesController#edit as HTML
16915
+ Parameters: {"id"=>"1312"}
16916
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
16921
+  (0.1ms) BEGIN
16922
+ ----------------------------------------------
16923
+ EmployeesControllerTest: test_should_get_index
16924
+ ----------------------------------------------
16925
+  (0.1ms) SAVEPOINT active_record_1
16926
+ SQL (0.1ms) 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.302508"], ["updated_at", "2015-09-07 08:44:58.302508"]]
16927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16928
+  (0.1ms) SAVEPOINT active_record_1
16929
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
16931
+ Processing by EmployeesController#index as HTML
16932
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
16936
+  (0.1ms) BEGIN
16937
+ -------------------------------
16938
+ GovUkDateFieldsTest: test_truth
16939
+ -------------------------------
16940
+  (0.1ms) ROLLBACK
16941
+  (0.1ms) BEGIN
16942
+ ---------------------------------------------------------------------------------
16943
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
16944
+ ---------------------------------------------------------------------------------
16945
+  (0.1ms) ROLLBACK
16946
+  (0.1ms) BEGIN
16947
+ ------------------------------------------------------------------------------------------
16948
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
16949
+ ------------------------------------------------------------------------------------------
16950
+  (0.1ms) ROLLBACK
16951
+  (0.0ms) BEGIN
16952
+ ---------------------------------------------------------------------------------
16953
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
16954
+ ---------------------------------------------------------------------------------
16955
+  (0.1ms) ROLLBACK
16956
+  (0.0ms) BEGIN
16957
+ -----------------------------------------------------------------------------------------------
16958
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
16959
+ -----------------------------------------------------------------------------------------------
16960
+  (0.1ms) ROLLBACK
16961
+  (0.1ms) BEGIN
16962
+ -------------------------------------------------------------------------------
16963
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
16964
+ -------------------------------------------------------------------------------
16965
+  (0.1ms) ROLLBACK
16966
+  (0.1ms) BEGIN
16967
+ ----------------------------------------------------------------------------------------------------------------------------------
16968
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
16969
+ ----------------------------------------------------------------------------------------------------------------------------------
16970
+  (0.1ms) ROLLBACK
16971
+  (0.1ms) BEGIN
16972
+ -----------------------------------------------------------------------------------------
16973
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
16974
+ -----------------------------------------------------------------------------------------
16975
+  (0.1ms) ROLLBACK
16976
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
16977
+  (0.4ms) BEGIN
16978
+ ---------------------------------------------------------------------------------
16979
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
16980
+ ---------------------------------------------------------------------------------
16981
+  (0.1ms) ROLLBACK
16982
+  (0.1ms) BEGIN
16983
+ ------------------------------------------------------------------------------------------
16984
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
16985
+ ------------------------------------------------------------------------------------------
16986
+  (0.1ms) ROLLBACK
16987
+  (0.1ms) BEGIN
16988
+ -----------------------------------------------------------------------------------------------
16989
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
16990
+ -----------------------------------------------------------------------------------------------
16991
+  (0.1ms) ROLLBACK
16992
+  (0.1ms) BEGIN
16993
+ -------------------------------------------------------------------------------
16994
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
16995
+ -------------------------------------------------------------------------------
16996
+  (0.1ms) ROLLBACK
16997
+  (0.1ms) BEGIN
16998
+ ----------------------------------------------------------------------------------------------------------------------------------
16999
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
17000
+ ----------------------------------------------------------------------------------------------------------------------------------
17001
+  (0.1ms) ROLLBACK
17002
+  (0.1ms) BEGIN
17003
+ ---------------------------------------------------------------------------------
17004
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
17005
+ ---------------------------------------------------------------------------------
17006
+  (0.1ms) ROLLBACK
17007
+  (0.1ms) BEGIN
17008
+ -----------------------------------------------------------------------------------------
17009
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
17010
+ -----------------------------------------------------------------------------------------
17011
+  (0.1ms) ROLLBACK
17012
+  (0.1ms) BEGIN
17013
+ -------------------------------
17014
+ GovUkDateFieldsTest: test_truth
17015
+ -------------------------------
17016
+  (0.1ms) ROLLBACK
17017
+  (0.1ms) BEGIN
17018
+ -----------------------------------------------------------------------------------
17019
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
17020
+ -----------------------------------------------------------------------------------
17021
+  (0.1ms) ROLLBACK
17022
+  (0.1ms) BEGIN
17023
+ ------------------------------------------------------------------------
17024
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
17025
+ ------------------------------------------------------------------------
17026
+  (0.1ms) ROLLBACK
17027
+  (0.1ms) BEGIN
17028
+ ---------------------------------------------------------------------
17029
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
17030
+ ---------------------------------------------------------------------
17031
+  (0.1ms) ROLLBACK
17032
+  (0.1ms) BEGIN
17033
+ -----------------------------------------------------------------------
17034
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
17035
+ -----------------------------------------------------------------------
17036
+  (0.1ms) ROLLBACK
17037
+  (0.1ms) BEGIN
17038
+ ------------------------------------------------------------------------------------------
17039
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
17040
+ ------------------------------------------------------------------------------------------
17041
+  (0.1ms) ROLLBACK
17042
+  (0.1ms) BEGIN
17043
+ --------------------------------------------------------------------------------------------------
17044
+ EmployeeTest: test_that_argument_error_is_raised_if_non_date_non_nil_object_assigned_to_date_field
17045
+ --------------------------------------------------------------------------------------------------
17046
+  (0.1ms) ROLLBACK
17047
+  (0.1ms) BEGIN
17048
+ -----------------------------------------------------------
17049
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
17050
+ -----------------------------------------------------------
17051
+  (0.1ms) ROLLBACK
17052
+  (0.1ms) BEGIN
17053
+ --------------------------------------------------------------------------
17054
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
17055
+ --------------------------------------------------------------------------
17056
+  (0.1ms) ROLLBACK
17057
+  (0.1ms) BEGIN
17058
+ -----------------------------------------------------------
17059
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
17060
+ -----------------------------------------------------------
17061
+  (0.1ms) ROLLBACK
17062
+  (0.1ms) BEGIN
17063
+ ---------------------------------------------------------------------
17064
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
17065
+ ---------------------------------------------------------------------
17066
+  (0.1ms) SAVEPOINT active_record_1
17067
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17069
+  (0.1ms) SAVEPOINT active_record_1
17070
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 08:56:18.245046"], ["id", 1316]]
17071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17072
+  (0.1ms) ROLLBACK
17073
+  (0.1ms) BEGIN
17074
+ -----------------------------------------------------------------
17075
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
17076
+ -----------------------------------------------------------------
17077
+  (0.1ms) ROLLBACK
17078
+  (0.1ms) BEGIN
17079
+ -------------------------------------------
17080
+ EmployeeTest: test_invalid_day_raises_error
17081
+ -------------------------------------------
17082
+  (0.1ms) ROLLBACK
17083
+  (0.0ms) BEGIN
17084
+ --------------------------------------------
17085
+ EmployeeTest: test_nil_dates_raise_no_errors
17086
+ --------------------------------------------
17087
+  (0.1ms) ROLLBACK
17088
+  (0.1ms) BEGIN
17089
+ -------------------------------------------------------------------------
17090
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
17091
+ -------------------------------------------------------------------------
17092
+  (0.0ms) SAVEPOINT active_record_1
17093
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17095
+  (0.1ms) SAVEPOINT active_record_1
17096
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
17097
+  (0.1ms) ROLLBACK
17098
+  (0.1ms) BEGIN
17099
+ ----------------------------------------------------------------------------------------------------------------
17100
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
17101
+ ----------------------------------------------------------------------------------------------------------------
17102
+  (0.1ms) ROLLBACK
17103
+  (0.0ms) BEGIN
17104
+ ----------------------------------------------
17105
+ EmployeeTest: test_valid_dates_raise_no_errors
17106
+ ----------------------------------------------
17107
+  (0.1ms) ROLLBACK
17108
+  (0.1ms) BEGIN
17109
+ ----------------------------------------------------
17110
+ EmployeesControllerTest: test_should_update_employee
17111
+ ----------------------------------------------------
17112
+  (0.1ms) SAVEPOINT active_record_1
17113
+ SQL (0.2ms) 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.284206"], ["updated_at", "2015-09-07 08:56:18.284206"]]
17114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17115
+  (0.1ms) SAVEPOINT active_record_1
17116
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1318]]
17121
+  (0.1ms) SAVEPOINT active_record_1
17122
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17124
+ Redirected to http://test.host/employees/1318
17125
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
17126
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1318]]
17127
+  (0.1ms) ROLLBACK
17128
+  (0.0ms) BEGIN
17129
+ ---------------------------------------------
17130
+ EmployeesControllerTest: test_should_get_edit
17131
+ ---------------------------------------------
17132
+  (0.1ms) SAVEPOINT active_record_1
17133
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17135
+  (0.1ms) SAVEPOINT active_record_1
17136
+ SQL (0.1ms) 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.295529"], ["updated_at", "2015-09-07 08:56:18.295529"]]
17137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17138
+ Processing by EmployeesController#edit as HTML
17139
+ Parameters: {"id"=>"1320"}
17140
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.2ms) ROLLBACK
17145
+  (0.1ms) BEGIN
17146
+ --------------------------------------------
17147
+ EmployeesControllerTest: test_should_get_new
17148
+ --------------------------------------------
17149
+  (0.1ms) SAVEPOINT active_record_1
17150
+ SQL (0.1ms) 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.394078"], ["updated_at", "2015-09-07 08:56:18.394078"]]
17151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17152
+  (0.1ms) SAVEPOINT active_record_1
17153
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.1ms) ROLLBACK
17160
+  (0.1ms) BEGIN
17161
+ ----------------------------------------------------
17162
+ EmployeesControllerTest: test_should_create_employee
17163
+ ----------------------------------------------------
17164
+  (0.1ms) SAVEPOINT active_record_1
17165
+ SQL (0.1ms) 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.401086"], ["updated_at", "2015-09-07 08:56:18.401086"]]
17166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17167
+  (0.1ms) SAVEPOINT active_record_1
17168
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17170
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
17174
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17176
+ Redirected to http://test.host/employees/1326
17177
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
17178
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17179
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17180
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
17181
+  (0.1ms) ROLLBACK
17182
+  (0.1ms) BEGIN
17183
+ --------------------------------------------------
17184
+ EmployeesControllerTest: test_should_show_employee
17185
+ --------------------------------------------------
17186
+  (0.1ms) SAVEPOINT active_record_1
17187
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17189
+  (0.1ms) SAVEPOINT active_record_1
17190
+ SQL (0.1ms) 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.409670"], ["updated_at", "2015-09-07 08:56:18.409670"]]
17191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17192
+ Processing by EmployeesController#show as HTML
17193
+ Parameters: {"id"=>"1327"}
17194
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
17198
+  (0.1ms) BEGIN
17199
+ -----------------------------------------------------
17200
+ EmployeesControllerTest: test_should_destroy_employee
17201
+ -----------------------------------------------------
17202
+  (0.1ms) SAVEPOINT active_record_1
17203
+ SQL (0.1ms) 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.415044"], ["updated_at", "2015-09-07 08:56:18.415044"]]
17204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17205
+  (0.1ms) SAVEPOINT active_record_1
17206
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17208
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17209
+ Processing by EmployeesController#destroy as HTML
17210
+ Parameters: {"id"=>"1329"}
17211
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1329]]
17212
+  (0.1ms) SAVEPOINT active_record_1
17213
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1329]]
17214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17215
+ Redirected to http://test.host/employees
17216
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
17217
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17218
+  (0.1ms) ROLLBACK
17219
+  (0.1ms) BEGIN
17220
+ ----------------------------------------------
17221
+ EmployeesControllerTest: test_should_get_index
17222
+ ----------------------------------------------
17223
+  (0.1ms) SAVEPOINT active_record_1
17224
+ SQL (0.1ms) 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.420692"], ["updated_at", "2015-09-07 08:56:18.420692"]]
17225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17226
+  (0.1ms) SAVEPOINT active_record_1
17227
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17229
+ Processing by EmployeesController#index as HTML
17230
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
17234
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
17235
+  (0.1ms) BEGIN
17236
+ ---------------------------------------------------------------------------------
17237
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
17238
+ ---------------------------------------------------------------------------------
17239
+  (0.1ms) ROLLBACK
17240
+  (0.1ms) BEGIN
17241
+ -----------------------------------------------------------------------------------------------
17242
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
17243
+ -----------------------------------------------------------------------------------------------
17244
+  (0.1ms) ROLLBACK
17245
+  (0.1ms) BEGIN
17246
+ -------------------------------------------------------------------------------
17247
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
17248
+ -------------------------------------------------------------------------------
17249
+  (0.1ms) ROLLBACK
17250
+  (0.1ms) BEGIN
17251
+ ---------------------------------------------------------------------------------
17252
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
17253
+ ---------------------------------------------------------------------------------
17254
+  (0.1ms) ROLLBACK
17255
+  (0.1ms) BEGIN
17256
+ ------------------------------------------------------------------------------------------
17257
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
17258
+ ------------------------------------------------------------------------------------------
17259
+  (0.1ms) ROLLBACK
17260
+  (0.1ms) BEGIN
17261
+ ----------------------------------------------------------------------------------------------------------------------------------
17262
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
17263
+ ----------------------------------------------------------------------------------------------------------------------------------
17264
+  (0.1ms) ROLLBACK
17265
+  (0.1ms) BEGIN
17266
+ -----------------------------------------------------------------------------------------
17267
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
17268
+ -----------------------------------------------------------------------------------------
17269
+  (0.1ms) ROLLBACK
17270
+  (0.1ms) BEGIN
17271
+ ----------------------------------------------------
17272
+ EmployeesControllerTest: test_should_create_employee
17273
+ ----------------------------------------------------
17274
+  (0.1ms) SAVEPOINT active_record_1
17275
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17277
+  (0.1ms) SAVEPOINT active_record_1
17278
+ SQL (0.1ms) 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.630503"], ["updated_at", "2015-09-07 09:03:28.630503"]]
17279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17280
+  (0.2ms) SELECT COUNT(*) FROM "employees"
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
+  (0.1ms) SAVEPOINT active_record_1
17284
+ SQL (0.2ms) 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:03:28.635096"], ["updated_at", "2015-09-07 09:03:28.635096"]]
17285
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17286
+ Redirected to http://test.host/employees/1335
17287
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
17288
+  (0.2ms) SELECT COUNT(*) FROM "employees"
17289
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17290
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
17291
+  (0.1ms) ROLLBACK
17292
+  (0.0ms) BEGIN
17293
+ --------------------------------------------
17294
+ EmployeesControllerTest: test_should_get_new
17295
+ --------------------------------------------
17296
+  (0.1ms) SAVEPOINT active_record_1
17297
+ SQL (0.1ms) 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.640062"], ["updated_at", "2015-09-07 09:03:28.640062"]]
17298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17299
+  (0.1ms) SAVEPOINT active_record_1
17300
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+  (0.2ms) ROLLBACK
17307
+  (0.1ms) BEGIN
17308
+ ----------------------------------------------------
17309
+ EmployeesControllerTest: test_should_update_employee
17310
+ ----------------------------------------------------
17311
+  (0.1ms) SAVEPOINT active_record_1
17312
+ SQL (0.2ms) 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.767839"], ["updated_at", "2015-09-07 09:03:28.767839"]]
17313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17314
+  (0.0ms) SAVEPOINT active_record_1
17315
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1338]]
17320
+  (0.1ms) SAVEPOINT active_record_1
17321
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17323
+ Redirected to http://test.host/employees/1338
17324
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
17325
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1338]]
17326
+  (0.1ms) ROLLBACK
17327
+  (0.0ms) BEGIN
17328
+ ---------------------------------------------
17329
+ EmployeesControllerTest: test_should_get_edit
17330
+ ---------------------------------------------
17331
+  (0.1ms) SAVEPOINT active_record_1
17332
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17334
+  (0.1ms) SAVEPOINT active_record_1
17335
+ SQL (0.1ms) 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.778840"], ["updated_at", "2015-09-07 09:03:28.778840"]]
17336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17337
+ Processing by EmployeesController#edit as HTML
17338
+ Parameters: {"id"=>"1340"}
17339
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
17344
+  (0.1ms) BEGIN
17345
+ --------------------------------------------------
17346
+ EmployeesControllerTest: test_should_show_employee
17347
+ --------------------------------------------------
17348
+  (0.0ms) SAVEPOINT active_record_1
17349
+ SQL (0.1ms) 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.785126"], ["updated_at", "2015-09-07 09:03:28.785126"]]
17350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17351
+  (0.0ms) SAVEPOINT active_record_1
17352
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
17354
+ Processing by EmployeesController#show as HTML
17355
+ Parameters: {"id"=>"1342"}
17356
+ Employee Load (0.1ms) 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
+  (0.1ms) ROLLBACK
17360
+  (0.1ms) BEGIN
17361
+ ----------------------------------------------
17362
+ EmployeesControllerTest: test_should_get_index
17363
+ ----------------------------------------------
17364
+  (0.1ms) SAVEPOINT active_record_1
17365
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17367
+  (0.1ms) SAVEPOINT active_record_1
17368
+ SQL (0.1ms) 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.792672"], ["updated_at", "2015-09-07 09:03:28.792672"]]
17369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17370
+ Processing by EmployeesController#index as HTML
17371
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
17372
+ Rendered employees/index.html.erb within layouts/application (1.7ms)
17373
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.2ms)
17374
+  (0.1ms) ROLLBACK
17375
+  (0.1ms) BEGIN
17376
+ -----------------------------------------------------
17377
+ EmployeesControllerTest: test_should_destroy_employee
17378
+ -----------------------------------------------------
17379
+  (0.1ms) SAVEPOINT active_record_1
17380
+ SQL (0.1ms) 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.798670"], ["updated_at", "2015-09-07 09:03:28.798670"]]
17381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17382
+  (0.1ms) SAVEPOINT active_record_1
17383
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17385
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17386
+ Processing by EmployeesController#destroy as HTML
17387
+ Parameters: {"id"=>"1346"}
17388
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1346]]
17389
+  (0.1ms) SAVEPOINT active_record_1
17390
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1346]]
17391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17392
+ Redirected to http://test.host/employees
17393
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
17394
+  (0.2ms) SELECT COUNT(*) FROM "employees"
17395
+  (0.1ms) ROLLBACK
17396
+  (0.1ms) BEGIN
17397
+ -----------------------------------------------------------
17398
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
17399
+ -----------------------------------------------------------
17400
+  (0.1ms) ROLLBACK
17401
+  (0.1ms) BEGIN
17402
+ -----------------------------------------------------------------------------------
17403
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
17404
+ -----------------------------------------------------------------------------------
17405
+  (0.1ms) ROLLBACK
17406
+  (0.1ms) BEGIN
17407
+ ---------------------------------------------------------------------------------------------------------
17408
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
17409
+ ---------------------------------------------------------------------------------------------------------
17410
+  (0.1ms) ROLLBACK
17411
+  (0.1ms) BEGIN
17412
+ ------------------------------------------------------------------------
17413
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
17414
+ ------------------------------------------------------------------------
17415
+  (0.1ms) ROLLBACK
17416
+  (0.1ms) BEGIN
17417
+ -----------------------------------------------------------------
17418
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
17419
+ -----------------------------------------------------------------
17420
+  (0.1ms) ROLLBACK
17421
+  (0.1ms) BEGIN
17422
+ -------------------------------------------
17423
+ EmployeeTest: test_invalid_day_raises_error
17424
+ -------------------------------------------
17425
+  (0.1ms) ROLLBACK
17426
+  (0.1ms) BEGIN
17427
+ ---------------------------------------------------------------------
17428
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
17429
+ ---------------------------------------------------------------------
17430
+  (0.1ms) SAVEPOINT active_record_1
17431
+ SQL (0.1ms) 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:03:28.809943"], ["updated_at", "2015-09-07 09:03:28.809943"]]
17432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17433
+  (0.0ms) SAVEPOINT active_record_1
17434
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17436
+  (0.1ms) ROLLBACK
17437
+  (0.0ms) BEGIN
17438
+ --------------------------------------------------------------------------
17439
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
17440
+ --------------------------------------------------------------------------
17441
+  (0.1ms) ROLLBACK
17442
+  (0.1ms) BEGIN
17443
+ ----------------------------------------------------------------------------------------------------------------
17444
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
17445
+ ----------------------------------------------------------------------------------------------------------------
17446
+  (0.1ms) ROLLBACK
17447
+  (0.0ms) BEGIN
17448
+ ----------------------------------------------------------------------------------------------
17449
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
17450
+ ----------------------------------------------------------------------------------------------
17451
+  (0.1ms) ROLLBACK
17452
+  (0.0ms) BEGIN
17453
+ ----------------------------------------------
17454
+ EmployeeTest: test_valid_dates_raise_no_errors
17455
+ ----------------------------------------------
17456
+  (0.0ms) ROLLBACK
17457
+  (0.1ms) BEGIN
17458
+ ------------------------------------------------------------------------------------------
17459
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
17460
+ ------------------------------------------------------------------------------------------
17461
+  (0.1ms) ROLLBACK
17462
+  (0.1ms) BEGIN
17463
+ ---------------------------------------------------------------------
17464
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
17465
+ ---------------------------------------------------------------------
17466
+  (0.1ms) ROLLBACK
17467
+  (0.0ms) BEGIN
17468
+ -----------------------------------------------------------------------
17469
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
17470
+ -----------------------------------------------------------------------
17471
+  (0.0ms) ROLLBACK
17472
+  (0.0ms) BEGIN
17473
+ -------------------------------------------------------------------------
17474
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
17475
+ -------------------------------------------------------------------------
17476
+  (0.0ms) SAVEPOINT active_record_1
17477
+ SQL (0.1ms) 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:03:28.816942"], ["updated_at", "2015-09-07 09:03:28.816942"]]
17478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17479
+  (0.0ms) SAVEPOINT active_record_1
17480
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
17481
+  (0.1ms) ROLLBACK
17482
+  (0.0ms) BEGIN
17483
+ -----------------------------------------------------------
17484
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
17485
+ -----------------------------------------------------------
17486
+  (0.1ms) ROLLBACK
17487
+  (0.0ms) BEGIN
17488
+ --------------------------------------------
17489
+ EmployeeTest: test_nil_dates_raise_no_errors
17490
+ --------------------------------------------
17491
+  (0.0ms) ROLLBACK
17492
+  (0.0ms) BEGIN
17493
+ -------------------------------
17494
+ GovUkDateFieldsTest: test_truth
17495
+ -------------------------------
17496
+  (0.1ms) ROLLBACK
17497
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
17498
+  (0.2ms) BEGIN
17499
+ ----------------------------------------------------
17500
+ EmployeesControllerTest: test_should_update_employee
17501
+ ----------------------------------------------------
17502
+  (0.1ms) SAVEPOINT active_record_1
17503
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17505
+  (0.1ms) SAVEPOINT active_record_1
17506
+ SQL (0.1ms) 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.528668"], ["updated_at", "2015-09-07 09:05:23.528668"]]
17507
+  (0.1ms) 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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1350]]
17511
+  (0.1ms) SAVEPOINT active_record_1
17512
+ SQL (0.3ms) 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:23.535571"], ["id", 1350]]
17513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17514
+ Redirected to http://test.host/employees/1350
17515
+ Completed 302 Found in 8ms (ActiveRecord: 0.6ms)
17516
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1350]]
17517
+  (0.1ms) ROLLBACK
17518
+  (0.1ms) BEGIN
17519
+ -----------------------------------------------------
17520
+ EmployeesControllerTest: test_should_destroy_employee
17521
+ -----------------------------------------------------
17522
+  (0.1ms) SAVEPOINT active_record_1
17523
+ SQL (0.2ms) 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.541645"], ["updated_at", "2015-09-07 09:05:23.541645"]]
17524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17525
+  (0.1ms) SAVEPOINT active_record_1
17526
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17528
+  (0.2ms) SELECT COUNT(*) FROM "employees"
17529
+ Processing by EmployeesController#destroy as HTML
17530
+ Parameters: {"id"=>"1352"}
17531
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1352]]
17532
+  (0.1ms) SAVEPOINT active_record_1
17533
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1352]]
17534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17535
+ Redirected to http://test.host/employees
17536
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
17537
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17538
+  (0.1ms) ROLLBACK
17539
+  (0.1ms) BEGIN
17540
+ --------------------------------------------------
17541
+ EmployeesControllerTest: test_should_show_employee
17542
+ --------------------------------------------------
17543
+  (0.1ms) SAVEPOINT active_record_1
17544
+ SQL (0.1ms) 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.548338"], ["updated_at", "2015-09-07 09:05:23.548338"]]
17545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17546
+  (0.1ms) SAVEPOINT active_record_1
17547
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17549
+ Processing by EmployeesController#show as HTML
17550
+ Parameters: {"id"=>"1354"}
17551
+ Employee Load (0.1ms) 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
+  (0.2ms) ROLLBACK
17555
+  (0.1ms) BEGIN
17556
+ --------------------------------------------
17557
+ EmployeesControllerTest: test_should_get_new
17558
+ --------------------------------------------
17559
+  (0.1ms) SAVEPOINT active_record_1
17560
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17562
+  (0.1ms) SAVEPOINT active_record_1
17563
+ SQL (0.1ms) 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.641938"], ["updated_at", "2015-09-07 09:05:23.641938"]]
17564
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
17570
+  (0.1ms) BEGIN
17571
+ ----------------------------------------------------
17572
+ EmployeesControllerTest: test_should_create_employee
17573
+ ----------------------------------------------------
17574
+  (0.1ms) SAVEPOINT active_record_1
17575
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17577
+  (0.1ms) SAVEPOINT active_record_1
17578
+ SQL (0.1ms) 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.656715"], ["updated_at", "2015-09-07 09:05:23.656715"]]
17579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17580
+  (0.2ms) SELECT COUNT(*) FROM "employees"
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
+  (0.1ms) SAVEPOINT active_record_1
17584
+ SQL (0.1ms) 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:23.659364"], ["updated_at", "2015-09-07 09:05:23.659364"]]
17585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17586
+ Redirected to http://test.host/employees/1360
17587
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
17588
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17589
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17590
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
17591
+  (0.1ms) ROLLBACK
17592
+  (0.0ms) BEGIN
17593
+ ----------------------------------------------
17594
+ EmployeesControllerTest: test_should_get_index
17595
+ ----------------------------------------------
17596
+  (0.1ms) SAVEPOINT active_record_1
17597
+ SQL (0.1ms) 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.662666"], ["updated_at", "2015-09-07 09:05:23.662666"]]
17598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17599
+  (0.1ms) SAVEPOINT active_record_1
17600
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17602
+ Processing by EmployeesController#index as HTML
17603
+ Employee Load (0.2ms) 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
+  (0.1ms) ROLLBACK
17607
+  (0.1ms) BEGIN
17608
+ ---------------------------------------------
17609
+ EmployeesControllerTest: test_should_get_edit
17610
+ ---------------------------------------------
17611
+  (0.1ms) SAVEPOINT active_record_1
17612
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17614
+  (0.1ms) SAVEPOINT active_record_1
17615
+ SQL (0.1ms) 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.669508"], ["updated_at", "2015-09-07 09:05:23.669508"]]
17616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17617
+ Processing by EmployeesController#edit as HTML
17618
+ Parameters: {"id"=>"1363"}
17619
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
17624
+  (0.1ms) BEGIN
17625
+ -------------------------------
17626
+ GovUkDateFieldsTest: test_truth
17627
+ -------------------------------
17628
+  (0.1ms) ROLLBACK
17629
+  (0.1ms) BEGIN
17630
+ -------------------------------------------------------------------------------
17631
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
17632
+ -------------------------------------------------------------------------------
17633
+  (0.1ms) ROLLBACK
17634
+  (0.1ms) BEGIN
17635
+ -----------------------------------------------------------------------------------------
17636
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
17637
+ -----------------------------------------------------------------------------------------
17638
+  (0.1ms) ROLLBACK
17639
+  (0.1ms) BEGIN
17640
+ ---------------------------------------------------------------------------------
17641
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
17642
+ ---------------------------------------------------------------------------------
17643
+  (0.1ms) ROLLBACK
17644
+  (0.1ms) BEGIN
17645
+ ----------------------------------------------------------------------------------------------------------------------------------
17646
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
17647
+ ----------------------------------------------------------------------------------------------------------------------------------
17648
+  (0.1ms) ROLLBACK
17649
+  (0.1ms) BEGIN
17650
+ ---------------------------------------------------------------------------------
17651
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
17652
+ ---------------------------------------------------------------------------------
17653
+  (0.1ms) ROLLBACK
17654
+  (0.0ms) BEGIN
17655
+ -----------------------------------------------------------------------------------------------
17656
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
17657
+ -----------------------------------------------------------------------------------------------
17658
+  (0.0ms) ROLLBACK
17659
+  (0.0ms) BEGIN
17660
+ ------------------------------------------------------------------------------------------
17661
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
17662
+ ------------------------------------------------------------------------------------------
17663
+  (0.0ms) ROLLBACK
17664
+  (0.0ms) BEGIN
17665
+ -----------------------------------------------------------
17666
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
17667
+ -----------------------------------------------------------
17668
+  (0.0ms) ROLLBACK
17669
+  (0.1ms) BEGIN
17670
+ ----------------------------------------------------------------------------------------------------------------
17671
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
17672
+ ----------------------------------------------------------------------------------------------------------------
17673
+  (0.0ms) ROLLBACK
17674
+  (0.0ms) BEGIN
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
+  (0.1ms) ROLLBACK
17679
+  (0.1ms) BEGIN
17680
+ -------------------------------------------------------------------------
17681
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
17682
+ -------------------------------------------------------------------------
17683
+  (0.1ms) SAVEPOINT active_record_1
17684
+ SQL (0.1ms) 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.690288"], ["updated_at", "2015-09-07 09:05:23.690288"]]
17685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17686
+  (0.1ms) SAVEPOINT active_record_1
17687
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
17688
+  (0.1ms) ROLLBACK
17689
+  (0.1ms) BEGIN
17690
+ -----------------------------------------------------------------------
17691
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
17692
+ -----------------------------------------------------------------------
17693
+  (0.1ms) ROLLBACK
17694
+  (0.1ms) BEGIN
17695
+ ----------------------------------------------------------------------------------------------
17696
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
17697
+ ----------------------------------------------------------------------------------------------
17698
+  (0.1ms) ROLLBACK
17699
+  (0.1ms) BEGIN
17700
+ ---------------------------------------------------------------------
17701
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
17702
+ ---------------------------------------------------------------------
17703
+  (0.1ms) ROLLBACK
17704
+  (0.1ms) BEGIN
17705
+ ------------------------------------------------------------------------
17706
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
17707
+ ------------------------------------------------------------------------
17708
+  (0.1ms) ROLLBACK
17709
+  (0.1ms) BEGIN
17710
+ --------------------------------------------
17711
+ EmployeeTest: test_nil_dates_raise_no_errors
17712
+ --------------------------------------------
17713
+  (0.1ms) ROLLBACK
17714
+  (0.1ms) BEGIN
17715
+ -----------------------------------------------------------------
17716
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
17717
+ -----------------------------------------------------------------
17718
+  (0.1ms) ROLLBACK
17719
+  (0.1ms) BEGIN
17720
+ -----------------------------------------------------------------------------------
17721
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
17722
+ -----------------------------------------------------------------------------------
17723
+  (0.1ms) ROLLBACK
17724
+  (0.0ms) BEGIN
17725
+ ---------------------------------------------------------------------
17726
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
17727
+ ---------------------------------------------------------------------
17728
+  (0.1ms) SAVEPOINT active_record_1
17729
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17731
+  (0.0ms) SAVEPOINT active_record_1
17732
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2015-09-07 09:05:23.699296"], ["id", 1366]]
17733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17734
+  (0.1ms) ROLLBACK
17735
+  (0.1ms) BEGIN
17736
+ ---------------------------------------------------------------------------------------------------------
17737
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
17738
+ ---------------------------------------------------------------------------------------------------------
17739
+  (0.1ms) ROLLBACK
17740
+  (0.0ms) BEGIN
17741
+ ------------------------------------------------------------------------------------------
17742
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
17743
+ ------------------------------------------------------------------------------------------
17744
+  (0.0ms) ROLLBACK
17745
+  (0.0ms) BEGIN
17746
+ -----------------------------------------------------------
17747
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
17748
+ -----------------------------------------------------------
17749
+  (0.0ms) ROLLBACK
17750
+  (0.0ms) BEGIN
17751
+ ----------------------------------------------
17752
+ EmployeeTest: test_valid_dates_raise_no_errors
17753
+ ----------------------------------------------
17754
+  (0.0ms) ROLLBACK
17755
+  (0.0ms) BEGIN
17756
+ --------------------------------------------------------------------------
17757
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
17758
+ --------------------------------------------------------------------------
17759
+  (0.0ms) ROLLBACK
17760
+  (0.0ms) BEGIN
17761
+ -------------------------------------------
17762
+ EmployeeTest: test_invalid_day_raises_error
17763
+ -------------------------------------------
17764
+  (0.1ms) ROLLBACK
17765
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
17766
+  (0.1ms) BEGIN
17767
+ ----------------------------------------------------------------------------------------------------------------------------------
17768
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
17769
+ ----------------------------------------------------------------------------------------------------------------------------------
17770
+  (0.1ms) ROLLBACK
17771
+  (0.1ms) BEGIN
17772
+ ------------------------------------------------------------------------------------------
17773
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
17774
+ ------------------------------------------------------------------------------------------
17775
+  (0.1ms) ROLLBACK
17776
+  (0.1ms) BEGIN
17777
+ -----------------------------------------------------------------------------------------
17778
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
17779
+ -----------------------------------------------------------------------------------------
17780
+  (0.1ms) ROLLBACK
17781
+  (0.1ms) BEGIN
17782
+ -----------------------------------------------------------------------------------------------
17783
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
17784
+ -----------------------------------------------------------------------------------------------
17785
+  (0.1ms) ROLLBACK
17786
+  (0.1ms) BEGIN
17787
+ -------------------------------------------------------------------------------
17788
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
17789
+ -------------------------------------------------------------------------------
17790
+  (0.1ms) ROLLBACK
17791
+  (0.1ms) BEGIN
17792
+ ---------------------------------------------------------------------------------
17793
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
17794
+ ---------------------------------------------------------------------------------
17795
+  (0.1ms) ROLLBACK
17796
+  (0.1ms) BEGIN
17797
+ ---------------------------------------------------------------------------------
17798
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
17799
+ ---------------------------------------------------------------------------------
17800
+  (0.1ms) ROLLBACK
17801
+  (0.1ms) BEGIN
17802
+ --------------------------------------------------
17803
+ EmployeesControllerTest: test_should_show_employee
17804
+ --------------------------------------------------
17805
+  (0.1ms) SAVEPOINT active_record_1
17806
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17808
+  (0.1ms) SAVEPOINT active_record_1
17809
+ SQL (0.1ms) 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.716410"], ["updated_at", "2015-09-07 09:05:50.716410"]]
17810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17811
+ Processing by EmployeesController#show as HTML
17812
+ Parameters: {"id"=>"1367"}
17813
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.2ms) ROLLBACK
17817
+  (0.1ms) BEGIN
17818
+ ----------------------------------------------------
17819
+ EmployeesControllerTest: test_should_update_employee
17820
+ ----------------------------------------------------
17821
+  (0.1ms) SAVEPOINT active_record_1
17822
+ SQL (0.2ms) 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.809756"], ["updated_at", "2015-09-07 09:05:50.809756"]]
17823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17824
+  (0.0ms) SAVEPOINT active_record_1
17825
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
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
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1369]]
17830
+  (0.1ms) SAVEPOINT active_record_1
17831
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17833
+ Redirected to http://test.host/employees/1369
17834
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
17835
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1369]]
17836
+  (0.1ms) ROLLBACK
17837
+  (0.1ms) BEGIN
17838
+ ----------------------------------------------
17839
+ EmployeesControllerTest: test_should_get_index
17840
+ ----------------------------------------------
17841
+  (0.1ms) SAVEPOINT active_record_1
17842
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17844
+  (0.1ms) SAVEPOINT active_record_1
17845
+ SQL (0.1ms) 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.818622"], ["updated_at", "2015-09-07 09:05:50.818622"]]
17846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17847
+ Processing by EmployeesController#index as HTML
17848
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
17849
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
17850
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
17851
+  (0.1ms) ROLLBACK
17852
+  (0.1ms) BEGIN
17853
+ ----------------------------------------------------
17854
+ EmployeesControllerTest: test_should_create_employee
17855
+ ----------------------------------------------------
17856
+  (0.1ms) SAVEPOINT active_record_1
17857
+ SQL (0.1ms) 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.823764"], ["updated_at", "2015-09-07 09:05:50.823764"]]
17858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17859
+  (0.1ms) SAVEPOINT active_record_1
17860
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17862
+  (0.2ms) 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
+  (0.1ms) SAVEPOINT active_record_1
17866
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17868
+ Redirected to http://test.host/employees/1375
17869
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
17870
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17871
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17872
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
17873
+  (0.1ms) ROLLBACK
17874
+  (0.1ms) BEGIN
17875
+ --------------------------------------------
17876
+ EmployeesControllerTest: test_should_get_new
17877
+ --------------------------------------------
17878
+  (0.1ms) SAVEPOINT active_record_1
17879
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17881
+  (0.1ms) SAVEPOINT active_record_1
17882
+ SQL (0.1ms) 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.832080"], ["updated_at", "2015-09-07 09:05:50.832080"]]
17883
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
17889
+  (0.0ms) BEGIN
17890
+ ---------------------------------------------
17891
+ EmployeesControllerTest: test_should_get_edit
17892
+ ---------------------------------------------
17893
+  (0.0ms) SAVEPOINT active_record_1
17894
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17896
+  (0.1ms) SAVEPOINT active_record_1
17897
+ SQL (0.1ms) 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.846690"], ["updated_at", "2015-09-07 09:05:50.846690"]]
17898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17899
+ Processing by EmployeesController#edit as HTML
17900
+ Parameters: {"id"=>"1378"}
17901
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["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
+  (0.1ms) ROLLBACK
17906
+  (0.1ms) BEGIN
17907
+ -----------------------------------------------------
17908
+ EmployeesControllerTest: test_should_destroy_employee
17909
+ -----------------------------------------------------
17910
+  (0.1ms) SAVEPOINT active_record_1
17911
+ SQL (0.1ms) 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.852947"], ["updated_at", "2015-09-07 09:05:50.852947"]]
17912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17913
+  (0.0ms) SAVEPOINT active_record_1
17914
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17916
+  (0.2ms) SELECT COUNT(*) FROM "employees"
17917
+ Processing by EmployeesController#destroy as HTML
17918
+ Parameters: {"id"=>"1380"}
17919
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1380]]
17920
+  (0.1ms) SAVEPOINT active_record_1
17921
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 1380]]
17922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17923
+ Redirected to http://test.host/employees
17924
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
17925
+  (0.1ms) SELECT COUNT(*) FROM "employees"
17926
+  (0.1ms) ROLLBACK
17927
+  (0.0ms) BEGIN
17928
+ -----------------------------------------------------------------------------------
17929
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
17930
+ -----------------------------------------------------------------------------------
17931
+  (0.0ms) ROLLBACK
17932
+  (0.1ms) BEGIN
17933
+ -------------------------------------------
17934
+ EmployeeTest: test_invalid_day_raises_error
17935
+ -------------------------------------------
17936
+  (0.1ms) ROLLBACK
17937
+  (0.0ms) BEGIN
17938
+ ----------------------------------------------
17939
+ EmployeeTest: test_valid_dates_raise_no_errors
17940
+ ----------------------------------------------
17941
+  (0.1ms) ROLLBACK
17942
+  (0.0ms) BEGIN
17943
+ ------------------------------------------------------------------------------------------
17944
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
17945
+ ------------------------------------------------------------------------------------------
17946
+  (0.0ms) ROLLBACK
17947
+  (0.1ms) BEGIN
17948
+ --------------------------------------------------------------------------
17949
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
17950
+ --------------------------------------------------------------------------
17951
+  (0.1ms) ROLLBACK
17952
+  (0.1ms) BEGIN
17953
+ -----------------------------------------------------------
17954
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
17955
+ -----------------------------------------------------------
17956
+  (0.1ms) ROLLBACK
17957
+  (0.1ms) BEGIN
17958
+ ---------------------------------------------------------------------
17959
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
17960
+ ---------------------------------------------------------------------
17961
+  (0.0ms) SAVEPOINT active_record_1
17962
+ SQL (0.1ms) 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:50.862100"], ["updated_at", "2015-09-07 09:05:50.862100"]]
17963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17964
+  (0.0ms) SAVEPOINT active_record_1
17965
+ SQL (0.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17967
+  (0.1ms) ROLLBACK
17968
+  (0.1ms) BEGIN
17969
+ -----------------------------------------------------------------
17970
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
17971
+ -----------------------------------------------------------------
17972
+  (0.1ms) ROLLBACK
17973
+  (0.0ms) BEGIN
17974
+ -----------------------------------------------------------------------
17975
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
17976
+ -----------------------------------------------------------------------
17977
+  (0.0ms) ROLLBACK
17978
+  (0.1ms) BEGIN
17979
+ ----------------------------------------------------------------------------------------------
17980
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
17981
+ ----------------------------------------------------------------------------------------------
17982
+  (0.1ms) ROLLBACK
17983
+  (0.0ms) BEGIN
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
+  (0.0ms) ROLLBACK
17988
+  (0.1ms) BEGIN
17989
+ -------------------------------------------------------------------------
17990
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
17991
+ -------------------------------------------------------------------------
17992
+  (0.0ms) SAVEPOINT active_record_1
17993
+ SQL (0.1ms) 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:50.867189"], ["updated_at", "2015-09-07 09:05:50.867189"]]
17994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
17995
+  (0.0ms) SAVEPOINT active_record_1
17996
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
17997
+  (0.1ms) ROLLBACK
17998
+  (0.1ms) BEGIN
17999
+ ---------------------------------------------------------------------------------------------------------
18000
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
18001
+ ---------------------------------------------------------------------------------------------------------
18002
+  (0.1ms) ROLLBACK
18003
+  (0.0ms) BEGIN
18004
+ ------------------------------------------------------------------------
18005
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
18006
+ ------------------------------------------------------------------------
18007
+  (0.0ms) ROLLBACK
18008
+  (0.1ms) BEGIN
18009
+ --------------------------------------------
18010
+ EmployeeTest: test_nil_dates_raise_no_errors
18011
+ --------------------------------------------
18012
+  (0.0ms) ROLLBACK
18013
+  (0.0ms) BEGIN
18014
+ -----------------------------------------------------------
18015
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
18016
+ -----------------------------------------------------------
18017
+  (0.1ms) ROLLBACK
18018
+  (0.1ms) BEGIN
18019
+ ---------------------------------------------------------------------
18020
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
18021
+ ---------------------------------------------------------------------
18022
+  (0.1ms) ROLLBACK
18023
+  (0.0ms) 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
+  (0.0ms) ROLLBACK
18028
+  (0.0ms) BEGIN
18029
+ -------------------------------
18030
+ GovUkDateFieldsTest: test_truth
18031
+ -------------------------------
18032
+  (0.0ms) ROLLBACK