ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:39.844501"], ["updated_at", "2017-04-21 09:09:39.844501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:09:39.848814"], ["id", 161]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:39.857917"], ["updated_at", "2017-04-21 09:09:39.857917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:39.911232"], ["updated_at", "2017-04-21 09:09:39.911232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:39.947818"], ["updated_at", "2017-04-21 09:09:39.947818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:39.949386"], ["updated_at", "2017-04-21 09:09:39.949386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (32.5ms) Rendered employees/new.html.erb within layouts/application (35.0ms) Completed 200 OK in 190ms (Views: 189.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.144210"], ["updated_at", "2017-04-21 09:09:40.144210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.145797"], ["updated_at", "2017-04-21 09:09:40.145797"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"166"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 166]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 166]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.154509"], ["updated_at", "2017-04-21 09:09:40.154509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.155826"], ["updated_at", "2017-04-21 09:09:40.155826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"168"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 168]] Rendered employees/_form.html.erb (1.7ms) Rendered employees/edit.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.163667"], ["updated_at", "2017-04-21 09:09:40.163667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.165108"], ["updated_at", "2017-04-21 09:09:40.165108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"170"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 170]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.171214"], ["updated_at", "2017-04-21 09:09:40.171214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.172622"], ["updated_at", "2017-04-21 09:09:40.172622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"172"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 172]] Rendered employees/_form.html.erb (1.9ms) Rendered employees/edit.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.182389"], ["updated_at", "2017-04-21 09:09:40.182389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.184742"], ["updated_at", "2017-04-21 09:09:40.184742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.190681"], ["updated_at", "2017-04-21 09:09:40.190681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.191822"], ["updated_at", "2017-04-21 09:09:40.191822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.194982"], ["updated_at", "2017-04-21 09:09:40.194982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/178 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.199772"], ["updated_at", "2017-04-21 09:09:40.199772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.200857"], ["updated_at", "2017-04-21 09:09:40.200857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"179"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 179]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:09:40.204476"], ["id", 179]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/179 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 179]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.119335"], ["updated_at", "2017-04-21 09:10:29.119335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:10:29.123415"], ["id", 181]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.131226"], ["updated_at", "2017-04-21 09:10:29.131226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.230081"], ["updated_at", "2017-04-21 09:10:29.230081"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.2ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.294490"], ["updated_at", "2017-04-21 09:10:29.294490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.295985"], ["updated_at", "2017-04-21 09:10:29.295985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (3.2ms) Rendered employees/new.html.erb within layouts/application (5.6ms) Completed 200 OK in 177ms (Views: 176.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.477608"], ["updated_at", "2017-04-21 09:10:29.477608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.479495"], ["updated_at", "2017-04-21 09:10:29.479495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"186"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 186]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.530585"], ["updated_at", "2017-04-21 09:10:29.530585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.533032"], ["updated_at", "2017-04-21 09:10:29.533032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"188"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 188]] Rendered employees/_form.html.erb (1.7ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.539992"], ["updated_at", "2017-04-21 09:10:29.539992"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.541323"], ["updated_at", "2017-04-21 09:10:29.541323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"190"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 190]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.544628"], ["id", 190]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/190 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 190]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.548034"], ["updated_at", "2017-04-21 09:10:29.548034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.549240"], ["updated_at", "2017-04-21 09:10:29.549240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"192"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 192]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.555074"], ["updated_at", "2017-04-21 09:10:29.555074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.556509"], ["updated_at", "2017-04-21 09:10:29.556509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.9ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.563087"], ["updated_at", "2017-04-21 09:10:29.563087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.564497"], ["updated_at", "2017-04-21 09:10:29.564497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.568156"], ["updated_at", "2017-04-21 09:10:29.568156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/198 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.572792"], ["updated_at", "2017-04-21 09:10:29.572792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:10:29.574161"], ["updated_at", "2017-04-21 09:10:29.574161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"199"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 199]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 199]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.075697"], ["updated_at", "2017-04-21 09:11:57.075697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:11:57.079210"], ["id", 201]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.089013"], ["updated_at", "2017-04-21 09:11:57.089013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.123151"], ["updated_at", "2017-04-21 09:11:57.123151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.2ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.185073"], ["updated_at", "2017-04-21 09:11:57.185073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.186847"], ["updated_at", "2017-04-21 09:11:57.186847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (37.4ms) Rendered employees/new.html.erb within layouts/application (40.2ms) Completed 200 OK in 197ms (Views: 196.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.388469"], ["updated_at", "2017-04-21 09:11:57.388469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.390149"], ["updated_at", "2017-04-21 09:11:57.390149"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"206"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 206]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 206]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.398959"], ["updated_at", "2017-04-21 09:11:57.398959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.400219"], ["updated_at", "2017-04-21 09:11:57.400219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"208"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 208]] Rendered employees/_form.html.erb (1.8ms) Rendered employees/edit.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.408128"], ["updated_at", "2017-04-21 09:11:57.408128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.409499"], ["updated_at", "2017-04-21 09:11:57.409499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"210"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 210]] Rendered employees/show.html.erb within layouts/application (0.7ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.415376"], ["updated_at", "2017-04-21 09:11:57.415376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.416660"], ["updated_at", "2017-04-21 09:11:57.416660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"212"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 212]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.420120"], ["id", 212]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/212 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 212]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.423881"], ["updated_at", "2017-04-21 09:11:57.423881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.425071"], ["updated_at", "2017-04-21 09:11:57.425071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.428427"], ["updated_at", "2017-04-21 09:11:57.428427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/216 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.433673"], ["updated_at", "2017-04-21 09:11:57.433673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.435198"], ["updated_at", "2017-04-21 09:11:57.435198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.9ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.443088"], ["updated_at", "2017-04-21 09:11:57.443088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:11:57.444565"], ["updated_at", "2017-04-21 09:11:57.444565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"219"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 219]] Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.408247"], ["updated_at", "2017-04-21 09:16:03.408247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.490222"], ["updated_at", "2017-04-21 09:16:03.490222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.492120"], ["updated_at", "2017-04-21 09:16:03.492120"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"222"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 222]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.502976"], ["id", 222]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/222 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 222]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.508671"], ["updated_at", "2017-04-21 09:16:03.508671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.510215"], ["updated_at", "2017-04-21 09:16:03.510215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.514240"], ["updated_at", "2017-04-21 09:16:03.514240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/226 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.519219"], ["updated_at", "2017-04-21 09:16:03.519219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.520354"], ["updated_at", "2017-04-21 09:16:03.520354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"227"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 227]] Rendered employees/show.html.erb within layouts/application (31.7ms) Completed 200 OK in 193ms (Views: 192.5ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.717577"], ["updated_at", "2017-04-21 09:16:03.717577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.719110"], ["updated_at", "2017-04-21 09:16:03.719110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"229"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 229]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 229]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.726047"], ["updated_at", "2017-04-21 09:16:03.726047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.727387"], ["updated_at", "2017-04-21 09:16:03.727387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"231"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 231]] Rendered employees/_form.html.erb (3.4ms) Rendered employees/edit.html.erb within layouts/application (5.5ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.738564"], ["updated_at", "2017-04-21 09:16:03.738564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.740096"], ["updated_at", "2017-04-21 09:16:03.740096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.747479"], ["updated_at", "2017-04-21 09:16:03.747479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.749796"], ["updated_at", "2017-04-21 09:16:03.749796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.6ms) Rendered employees/new.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.756435"], ["updated_at", "2017-04-21 09:16:03.756435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.757638"], ["updated_at", "2017-04-21 09:16:03.757638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"237"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 237]] Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.833470"], ["updated_at", "2017-04-21 09:16:03.833470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:16:03.835121"], ["id", 239]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 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", "2017-04-21 09:16:03.847317"], ["updated_at", "2017-04-21 09:16:03.847317"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.483966"], ["updated_at", "2017-04-21 09:19:27.483966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.488772"], ["updated_at", "2017-04-21 09:19:27.488772"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"241"} Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 241]] Rendered employees/_form.html.erb (6.4ms) Rendered employees/edit.html.erb within layouts/application (9.4ms) Completed 200 OK in 201ms (Views: 195.9ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.695112"], ["updated_at", "2017-04-21 09:19:27.695112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.696764"], ["updated_at", "2017-04-21 09:19:27.696764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.700682"], ["updated_at", "2017-04-21 09:19:27.700682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/245 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.705799"], ["updated_at", "2017-04-21 09:19:27.705799"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.707048"], ["updated_at", "2017-04-21 09:19:27.707048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"246"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 246]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.710584"], ["id", 246]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/246 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 246]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.714669"], ["updated_at", "2017-04-21 09:19:27.714669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.716232"], ["updated_at", "2017-04-21 09:19:27.716232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.3ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (2.9ms) Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.726087"], ["updated_at", "2017-04-21 09:19:27.726087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.727829"], ["updated_at", "2017-04-21 09:19:27.727829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.7ms) Rendered employees/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.736465"], ["updated_at", "2017-04-21 09:19:27.736465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.737910"], ["updated_at", "2017-04-21 09:19:27.737910"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"252"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 252]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 252]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.743955"], ["updated_at", "2017-04-21 09:19:27.743955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.745234"], ["updated_at", "2017-04-21 09:19:27.745234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"254"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 254]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.751510"], ["updated_at", "2017-04-21 09:19:27.751510"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.753025"], ["updated_at", "2017-04-21 09:19:27.753025"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"256"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 256]] Rendered employees/_form.html.erb (2.0ms) Rendered employees/edit.html.erb within layouts/application (2.3ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.767428"], ["updated_at", "2017-04-21 09:19:27.767428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.771457"], ["updated_at", "2017-04-21 09:19:27.771457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:19:27.772669"], ["id", 259]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:19:27.789197"], ["updated_at", "2017-04-21 09:19:27.789197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.078212"], ["updated_at", "2017-04-21 09:21:51.078212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.086646"], ["updated_at", "2017-04-21 09:21:51.086646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2017-04-21 09:21:51.087958"], ["id", 262]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.139768"], ["updated_at", "2017-04-21 09:21:51.139768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.233903"], ["updated_at", "2017-04-21 09:21:51.233903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.235386"], ["updated_at", "2017-04-21 09:21:51.235386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.240290"], ["updated_at", "2017-04-21 09:21:51.240290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/266 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.245735"], ["updated_at", "2017-04-21 09:21:51.245735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.247092"], ["updated_at", "2017-04-21 09:21:51.247092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"267"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 267]] Rendered employees/_form.html.erb (3.6ms) Rendered employees/edit.html.erb within layouts/application (6.3ms) Completed 200 OK in 206ms (Views: 203.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.498552"], ["updated_at", "2017-04-21 09:21:51.498552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.499997"], ["updated_at", "2017-04-21 09:21:51.499997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"269"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 269]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.507134"], ["updated_at", "2017-04-21 09:21:51.507134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.508556"], ["updated_at", "2017-04-21 09:21:51.508556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.7ms) Rendered employees/new.html.erb within layouts/application (2.2ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.515820"], ["updated_at", "2017-04-21 09:21:51.515820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.517278"], ["updated_at", "2017-04-21 09:21:51.517278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.524271"], ["updated_at", "2017-04-21 09:21:51.524271"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.525874"], ["updated_at", "2017-04-21 09:21:51.525874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"275"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 275]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 275]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.532373"], ["updated_at", "2017-04-21 09:21:51.532373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.533680"], ["updated_at", "2017-04-21 09:21:51.533680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"277"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 277]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.539801"], ["updated_at", "2017-04-21 09:21:51.539801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.541174"], ["updated_at", "2017-04-21 09:21:51.541174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"279"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 279]]  (0.1ms) SAVEPOINT active_record_1 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", "2017-04-21 09:21:51.544853"], ["id", 279]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/279 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 279]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (2.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 09:50:51 UTC], ["id", 282]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"283"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 283], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 247ms (Views: 243.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.3ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (2.4ms) Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (3.5ms) Rendered employees/new.html.erb within layouts/application (5.2ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"289"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 289], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"291"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 291], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"293"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 293], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 293]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"295"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 295], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:50:51 UTC], ["id", 295]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/295 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/299 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:50:51 UTC], ["updated_at", 2017-04-25 09:50:51 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.4ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/303 Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (5.2ms) Rendered employees/new.html.erb within layouts/application (6.9ms) Completed 200 OK in 198ms (Views: 196.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"306"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 306], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"308"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 308], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"312"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 312], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 312]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"314"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 314], ["LIMIT", 1]]  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:55:44 UTC], ["id", 314]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/314 Completed 302 Found in 7ms (ActiveRecord: 2.2ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"316"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 316], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.7ms) Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 09:55:44 UTC], ["id", 319]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:44 UTC], ["updated_at", 2017-04-25 09:55:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.0ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.4ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (3.5ms) Completed 200 OK in 210ms (Views: 208.1ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"323"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 323], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:53 UTC], ["updated_at", 2017-04-25 09:55:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (3.0ms) Rendered employees/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"327"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 327], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:55:54 UTC], ["id", 327]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/327 Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"329"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 329], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 329]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"331"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 331], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/335 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"336"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 336], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/edit.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.7ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:55:54 UTC], ["updated_at", 2017-04-25 09:55:54 UTC]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 09:55:54 UTC], ["id", 340]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"342"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 342], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 342]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"344"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 344], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (6.5ms) Rendered employees/edit.html.erb within layouts/application (8.3ms) Completed 200 OK in 200ms (Views: 197.5ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"346"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 346], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.7ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/354 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"355"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 355], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"357"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 357], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:57:38 UTC], ["id", 357]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/357 Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 09:57:38 UTC], ["updated_at", 2017-04-25 09:57:38 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 09:57:38 UTC], ["id", 360]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/363 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"364"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 364], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (9.1ms) Rendered employees/edit.html.erb within layouts/application (10.9ms) Completed 200 OK in 151ms (Views: 146.6ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"366"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 366], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.8ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"372"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 372], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"374"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 374], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 374]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:12 UTC], ["updated_at", 2017-04-25 09:59:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"376"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 376], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:59:12 UTC], ["id", 376]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/376 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:28 UTC], ["updated_at", 2017-04-25 09:59:28 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:28 UTC], ["updated_at", 2017-04-25 09:59:28 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 09:59:28 UTC], ["updated_at", 2017-04-25 09:59:28 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/380 Completed 302 Found in 6ms (ActiveRecord: 0.4ms)  (0.3ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:28 UTC], ["updated_at", 2017-04-25 09:59:28 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:28 UTC], ["updated_at", 2017-04-25 09:59:28 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"381"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 381], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (10.2ms) Rendered employees/edit.html.erb within layouts/application (12.0ms) Completed 200 OK in 169ms (Views: 165.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"383"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 383], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"385"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 385], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 385]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"389"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 389], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/edit.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"391"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 391], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 09:59:29 UTC], ["id", 391]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/391 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 391], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 09:59:29 UTC], ["updated_at", 2017-04-25 09:59:29 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"395"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 395], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (11.8ms) Rendered employees/edit.html.erb within layouts/application (13.9ms) Completed 200 OK in 183ms (Views: 179.1ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/399 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"400"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 400], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"406"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 406], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 406]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"408"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 408], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.7ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:01:17 UTC], ["updated_at", 2017-04-25 10:01:17 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"410"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 410], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"412"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 412], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (12.9ms) Rendered employees/edit.html.erb within layouts/application (15.1ms) Completed 200 OK in 173ms (Views: 169.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.9ms) Rendered employees/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"416"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 416], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/420 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"421"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 421], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.8ms) Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"423"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 423], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"425"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 425], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 425]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:02:53 UTC], ["updated_at", 2017-04-25 10:02:53 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (4.6ms) Completed 200 OK in 167ms (Views: 165.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"431"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 431], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (8.2ms) Rendered employees/edit.html.erb within layouts/application (9.4ms) Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"433"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 433], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"437"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 437], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/edit.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/441 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.4ms) SELECT COUNT(*) FROM "employees" Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"442"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 442], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:24 UTC], ["updated_at", 2017-04-25 10:03:24 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"444"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 444], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 444]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"446"} Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 446], ["LIMIT", 1]] Completed 400 Bad Request in 4ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (11.8ms) Rendered employees/new.html.erb within layouts/application (13.7ms) Completed 200 OK in 153ms (Views: 152.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"450"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 450], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"452"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 452], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (2.3ms) Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"454"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 454], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 454]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"456"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 456], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/edit.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:03:44 UTC], ["updated_at", 2017-04-25 10:03:44 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/462 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/465 Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.9ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 145ms (Views: 143.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"468"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 468], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 468]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"470"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 470], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (8.2ms) Rendered employees/edit.html.erb within layouts/application (9.7ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"472"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 472], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"474"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 474], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"476"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 476], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:03 UTC], ["updated_at", 2017-04-25 10:04:03 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:22 UTC], ["updated_at", 2017-04-25 10:04:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:22 UTC], ["updated_at", 2017-04-25 10:04:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/482 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"483"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 483], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 483]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"485"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 485], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"487"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 487], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (1.2ms) Completed 200 OK in 137ms (Views: 135.0ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"489"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 489], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (8.5ms) Rendered employees/edit.html.erb within layouts/application (9.7ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"493"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 493], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:23 UTC], ["updated_at", 2017-04-25 10:04:23 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/499 Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"500"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 500], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 500]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"502"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 502], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (11.7ms) Rendered employees/edit.html.erb within layouts/application (13.6ms) Completed 200 OK in 149ms (Views: 147.1ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"id"=>"504"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 504], ["LIMIT", 1]] Completed 400 Bad Request in 1ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"508"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 508], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/edit.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:04:37 UTC], ["updated_at", 2017-04-25 10:04:37 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"512"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 512], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 2ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"514"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 514], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (14.1ms) Rendered employees/edit.html.erb within layouts/application (16.3ms) Completed 200 OK in 156ms (Views: 152.2ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"516"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 516], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:05:08 UTC], ["id", 516]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/516 Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 516], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"518"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 518], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"522"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 522], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"526"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 526], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 526]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:05:08 UTC], ["updated_at", 2017-04-25 10:05:08 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/530 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"531"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 531], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (12.0ms) Rendered employees/edit.html.erb within layouts/application (13.9ms) Completed 200 OK in 192ms (Views: 187.2ms | ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/535 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"536"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 536], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"540"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 540], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:06:30 UTC], ["id", 540]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/540 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 540], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"542"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 542], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 542]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"544"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 544], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:06:30 UTC], ["updated_at", 2017-04-25 10:06:30 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.1ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"548"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 548], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (3.5ms) Completed 200 OK in 171ms (Views: 167.3ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"550"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 550], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (9.4ms) Rendered employees/edit.html.erb within layouts/application (10.7ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/554 Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"555"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 555], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:11 UTC], ["updated_at", 2017-04-25 10:08:11 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"561"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 561], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 561]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:08:12 UTC], ["updated_at", 2017-04-25 10:08:12 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"563"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 563], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:08:12 UTC], ["id", 563]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/563 Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 563], ["LIMIT", 1]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/567 Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.2ms) SELECT COUNT(*) FROM "employees" Employee Load (0.2ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"568"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 568], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:09:56 UTC], ["id", 568]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/568 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 568], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:56 UTC], ["updated_at", 2017-04-25 10:09:56 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (12.1ms) Rendered employees/new.html.erb within layouts/application (14.0ms) Completed 200 OK in 154ms (Views: 152.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"572"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 572], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.9ms) Rendered employees/edit.html.erb within layouts/application (2.6ms) Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"574"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 574], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 574]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"576"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 576], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/edit.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:09:57 UTC], ["updated_at", 2017-04-25 10:09:57 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"580"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 580], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 10:10:00 UTC], ["id", 582]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.0ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"584"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 584], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (1.1ms) Completed 200 OK in 201ms (Views: 197.7ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.2ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/590 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"591"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 591], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 591]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"593"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 593], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (2.9ms) Rendered employees/edit.html.erb within layouts/application (4.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"595"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 595], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:10:00 UTC], ["id", 595]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/595 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 595], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:00 UTC], ["updated_at", 2017-04-25 10:10:00 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"597"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 597], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.2ms) Rendered employees/edit.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:10:01 UTC], ["updated_at", 2017-04-25 10:10:01 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:10:01 UTC], ["updated_at", 2017-04-25 10:10:01 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:10:01 UTC], ["updated_at", 2017-04-25 10:10:01 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"603"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 603], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (10.6ms) Rendered employees/edit.html.erb within layouts/application (12.8ms) Completed 200 OK in 199ms (Views: 195.5ms | ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"605"} Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 605], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 605]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"609"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 609], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/613 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/new.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"616"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 616], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"618"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 618], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:26:33 UTC], ["id", 618]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/618 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 618], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:26:33 UTC], ["updated_at", 2017-04-25 10:26:33 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 10:26:33 UTC], ["id", 621]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message --------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_presence_error_messages_generated ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all -------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#update as HTML Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"622"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 622], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2017-04-25 10:50:22 UTC], ["id", 622]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/622 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 622], ["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"624"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 624], ["LIMIT", 1]] Rendering employees/show.html.erb within layouts/application Rendered employees/show.html.erb within layouts/application (1.2ms) Completed 200 OK in 201ms (Views: 199.1ms | ActiveRecord: 0.1ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"626"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 626], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (10.9ms) Rendered employees/edit.html.erb within layouts/application (12.2ms) Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeesControllerTest: test_should_get_index ----------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Rendering employees/index.html.erb within layouts/application Employee Load (0.2ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#create as HTML Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}  (0.1ms) SAVEPOINT active_record_1 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", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/632 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1 [["LIMIT", 1]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"633"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 633], ["LIMIT", 1]] Rendering employees/edit.html.erb within layouts/application Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendering employees/new.html.erb within layouts/application Rendered employees/_form.html.erb (1.1ms) Rendered employees/new.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_employee -----------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"637"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2 [["id", 637], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------ OmitErrorClashEmployeeTest: test_presence_error_messages_generated ------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------------------- OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message -------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------------------- DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_no_css_class_specified ---------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_today_button_with_css_class_applied ----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message --------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_presence_error_messages_generated ----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------------------------------------------------------------------- EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object ----------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------------------------------- EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2017-04-25 10:50:22 UTC], ["updated_at", 2017-04-25 10:50:22 UTC]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", Mon, 17 May 1965], ["updated_at", 2017-04-25 10:50:22 UTC], ["id", 641]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK