(116.9ms) DROP DATABASE IF EXISTS "dummy_test"  (236.8ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode' SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.2ms) CREATE TABLE "employees" ("id" serial primary key, "name" character varying, "dob" date, "joined" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150901103114') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.3ms) 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.2ms) 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_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 ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_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.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", "2016-03-24 13:52:40.798448"], ["updated_at", "2016-03-24 13:52:40.798448"]]  (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", "2016-03-24 13:52:40.802069"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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_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_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_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 ----------------------------------------------------------- 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 ----------------------------------------------------------------------- EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.0ms) ROLLBACK  (0.1ms) 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", "2016-03-24 13:52:40.816510"], ["updated_at", "2016-03-24 13:52:40.816510"]]  (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 ---------------------------------------------------- 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", "2016-03-24 13:52:40.849117"], ["updated_at", "2016-03-24 13:52:40.849117"]]  (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", "2016-03-24 13:52:40.850533"], ["updated_at", "2016-03-24 13:52:40.850533"]]  (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"=>"3"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 3]]  (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", "2016-03-24 13:52:40.857944"], ["id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/3 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 3]]  (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", "2016-03-24 13:52:40.862871"], ["updated_at", "2016-03-24 13:52:40.862871"]]  (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", "2016-03-24 13:52:40.864100"], ["updated_at", "2016-03-24 13:52:40.864100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"5"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 5]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 5]]  (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_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", "2016-03-24 13:52:40.869837"], ["updated_at", "2016-03-24 13:52:40.869837"]]  (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", "2016-03-24 13:52:40.870971"], ["updated_at", "2016-03-24 13:52:40.870971"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"7"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 7]] Rendered employees/_form.html.erb (9.3ms) Rendered employees/edit.html.erb within layouts/application (12.7ms) Completed 200 OK in 168ms (Views: 167.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-24 13:52:41.049745"], ["updated_at", "2016-03-24 13:52:41.049745"]]  (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", "2016-03-24 13:52:41.051071"], ["updated_at", "2016-03-24 13:52:41.051071"]]  (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.6ms) Completed 200 OK in 3ms (Views: 3.0ms | 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", "2016-03-24 13:52:41.057018"], ["updated_at", "2016-03-24 13:52:41.057018"]]  (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", "2016-03-24 13:52:41.058104"], ["updated_at", "2016-03-24 13:52:41.058104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"11"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 11]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.0ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-24 13:52:41.062925"], ["updated_at", "2016-03-24 13:52:41.062925"]]  (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", "2016-03-24 13:52:41.063858"], ["updated_at", "2016-03-24 13:52:41.063858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)  (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", "2016-03-24 13:52:41.069400"], ["updated_at", "2016-03-24 13:52:41.069400"]]  (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", "2016-03-24 13:52:41.070367"], ["updated_at", "2016-03-24 13:52:41.070367"]]  (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", "2016-03-24 13:52:41.074527"], ["updated_at", "2016-03-24 13:52:41.074527"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/17 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (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_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", "2016-03-24 13:52:41.078136"], ["updated_at", "2016-03-24 13:52:41.078136"]]  (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", "2016-03-24 13:52:41.079027"], ["updated_at", "2016-03-24 13:52:41.079027"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"18"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 18]] 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.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------- GovUkDateFieldsTest: test_truth -------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test__basic_output_without_fieldset --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (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 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) 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_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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 ---------------------------------------------------------------------------------------------------------------------------------- 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_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_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 ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "2016-03-30 10:09:43.475552"], ["updated_at", "2016-03-30 10:09:43.475552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-03-30 10:09:43.480389"], ["id", 20]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-03-30 10:09:43.487201"], ["updated_at", "2016-03-30 10:09:43.487201"]]  (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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_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.0ms) 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_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.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_form_population_values_can_be_extracted_from_the_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.0ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_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_valid_dates_raise_no_errors ----------------------------------------------  (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 -------------------------------------------------- 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:09:43.552368"], ["updated_at", "2016-03-30 10:09:43.552368"]]  (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", "2016-03-30 10:09:43.553611"], ["updated_at", "2016-03-30 10:09:43.553611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"22"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 22]] Rendered employees/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 123ms (Views: 120.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:09:43.681199"], ["updated_at", "2016-03-30 10:09:43.681199"]]  (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", "2016-03-30 10:09:43.682546"], ["updated_at", "2016-03-30 10:09:43.682546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"24"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 24]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 24]]  (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.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", "2016-03-30 10:09:43.688512"], ["updated_at", "2016-03-30 10:09:43.688512"]]  (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", "2016-03-30 10:09:43.689642"], ["updated_at", "2016-03-30 10:09:43.689642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"26"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 26]] Rendered employees/_form.html.erb (16.5ms) Rendered employees/edit.html.erb within layouts/application (21.1ms) Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.2ms)  (0.2ms) 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", "2016-03-30 10:09:43.726897"], ["updated_at", "2016-03-30 10:09:43.726897"]]  (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", "2016-03-30 10:09:43.728028"], ["updated_at", "2016-03-30 10:09:43.728028"]]  (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", "2016-03-30 10:09:43.730713"], ["updated_at", "2016-03-30 10:09:43.730713"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/30 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (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_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", "2016-03-30 10:09:43.734228"], ["updated_at", "2016-03-30 10:09:43.734228"]]  (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", "2016-03-30 10:09:43.735208"], ["updated_at", "2016-03-30 10:09:43.735208"]]  (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"=>"31"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 31]]  (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", "2016-03-30 10:09:43.738173"], ["id", 31]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/31 Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 31]]  (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", "2016-03-30 10:09:43.741086"], ["updated_at", "2016-03-30 10:09:43.741086"]]  (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", "2016-03-30 10:09:43.742077"], ["updated_at", "2016-03-30 10:09:43.742077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"33"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 33]] Rendered employees/_form.html.erb (2.0ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 500 Internal Server Error in 3ms (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:09:43.749051"], ["updated_at", "2016-03-30 10:09:43.749051"]]  (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", "2016-03-30 10:09:43.750199"], ["updated_at", "2016-03-30 10:09:43.750199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.9ms) Rendered employees/new.html.erb within layouts/application (2.3ms) Completed 500 Internal Server Error in 4ms (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:09:43.757895"], ["updated_at", "2016-03-30 10:09:43.757895"]]  (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", "2016-03-30 10:09:43.759058"], ["updated_at", "2016-03-30 10:09:43.759058"]]  (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.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_form_hint --------------------------------------------------------  (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_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.3ms) BEGIN -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:13.499669"], ["updated_at", "2016-03-30 10:11:13.499669"]]  (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", "2016-03-30 10:11:13.503066"], ["updated_at", "2016-03-30 10:11:13.503066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"39"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 39]] Rendered employees/_form.html.erb (9.4ms) Rendered employees/edit.html.erb within layouts/application (12.1ms) Completed 500 Internal Server Error in 31ms (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", "2016-03-30 10:11:13.539450"], ["updated_at", "2016-03-30 10:11:13.539450"]]  (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", "2016-03-30 10:11:13.540673"], ["updated_at", "2016-03-30 10:11:13.540673"]]  (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.5ms) Completed 200 OK in 103ms (Views: 102.6ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:13.646537"], ["updated_at", "2016-03-30 10:11:13.646537"]]  (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", "2016-03-30 10:11:13.647756"], ["updated_at", "2016-03-30 10:11:13.647756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"43"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 43]] Rendered employees/_form.html.erb (2.0ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 500 Internal Server Error in 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:13.654857"], ["updated_at", "2016-03-30 10:11:13.654857"]]  (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", "2016-03-30 10:11:13.656008"], ["updated_at", "2016-03-30 10:11:13.656008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"45"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 45]] Rendered employees/show.html.erb within layouts/application (0.5ms) 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", "2016-03-30 10:11:13.661116"], ["updated_at", "2016-03-30 10:11:13.661116"]]  (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", "2016-03-30 10:11:13.662186"], ["updated_at", "2016-03-30 10:11:13.662186"]]  (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"=>"47"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 47]]  (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", "2016-03-30 10:11:13.664942"], ["id", 47]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/47 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 47]]  (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", "2016-03-30 10:11:13.668682"], ["updated_at", "2016-03-30 10:11:13.668682"]]  (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", "2016-03-30 10:11:13.669742"], ["updated_at", "2016-03-30 10:11:13.669742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"49"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 49]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 49]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (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.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", "2016-03-30 10:11:13.674614"], ["updated_at", "2016-03-30 10:11:13.674614"]]  (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", "2016-03-30 10:11:13.675656"], ["updated_at", "2016-03-30 10:11:13.675656"]]  (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", "2016-03-30 10:11:13.678213"], ["updated_at", "2016-03-30 10:11:13.678213"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/53 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_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", "2016-03-30 10:11:13.681997"], ["updated_at", "2016-03-30 10:11:13.681997"]]  (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", "2016-03-30 10:11:13.683214"], ["updated_at", "2016-03-30 10:11:13.683214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.9ms) Rendered employees/new.html.erb within layouts/application (2.2ms) Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (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_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_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_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (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_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_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", "2016-03-30 10:11:13.698431"], ["updated_at", "2016-03-30 10:11:13.698431"]]  (0.1ms) 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", "1965-05-17"], ["updated_at", "2016-03-30 10:11:13.699411"], ["id", 56]]  (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_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_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.0ms) 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_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (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_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-03-30 10:11:13.707444"], ["updated_at", "2016-03-30 10:11:13.707444"]]  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_that_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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_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 ------------------------------------------------------------------------------------------ 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_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", "2016-03-30 10:11:32.083224"], ["updated_at", "2016-03-30 10:11:32.083224"]]  (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", "2016-03-30 10:11:32.086736"], ["id", 58]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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_invalid_day_raises_error -------------------------------------------  (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_that_we_can_assign_new_dates_to_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.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", "2016-03-30 10:11:32.095592"], ["updated_at", "2016-03-30 10:11:32.095592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) 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_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_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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_valid_dates_raise_no_errors ----------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:32.139115"], ["updated_at", "2016-03-30 10:11:32.139115"]]  (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", "2016-03-30 10:11:32.140447"], ["updated_at", "2016-03-30 10:11:32.140447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"60"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 60]] Rendered employees/show.html.erb within layouts/application (1.0ms) Completed 200 OK in 111ms (Views: 108.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:32.256023"], ["updated_at", "2016-03-30 10:11:32.256023"]]  (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", "2016-03-30 10:11:32.257308"], ["updated_at", "2016-03-30 10:11:32.257308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"62"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 62]] Rendered employees/_form.html.erb (9.3ms) Rendered employees/edit.html.erb within layouts/application (11.5ms) Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.2ms)  (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", "2016-03-30 10:11:32.274975"], ["updated_at", "2016-03-30 10:11:32.274975"]]  (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", "2016-03-30 10:11:32.276162"], ["updated_at", "2016-03-30 10:11:32.276162"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"64"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 64]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 64]]  (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_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", "2016-03-30 10:11:32.281390"], ["updated_at", "2016-03-30 10:11:32.281390"]]  (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", "2016-03-30 10:11:32.282449"], ["updated_at", "2016-03-30 10:11:32.282449"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "2016-03-30 10:11:32.287884"], ["updated_at", "2016-03-30 10:11:32.287884"]]  (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", "2016-03-30 10:11:32.288907"], ["updated_at", "2016-03-30 10:11:32.288907"]]  (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", "2016-03-30 10:11:32.291789"], ["updated_at", "2016-03-30 10:11:32.291789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/70 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_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", "2016-03-30 10:11:32.295938"], ["updated_at", "2016-03-30 10:11:32.295938"]]  (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", "2016-03-30 10:11:32.297053"], ["updated_at", "2016-03-30 10:11:32.297053"]]  (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"=>"71"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 71]]  (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", "2016-03-30 10:11:32.300803"], ["id", 71]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/71 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 71]]  (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", "2016-03-30 10:11:32.303733"], ["updated_at", "2016-03-30 10:11:32.303733"]]  (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", "2016-03-30 10:11:32.304617"], ["updated_at", "2016-03-30 10:11:32.304617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"73"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 73]] Rendered employees/_form.html.erb (2.0ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.2ms) 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", "2016-03-30 10:11:32.311041"], ["updated_at", "2016-03-30 10:11:32.311041"]]  (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", "2016-03-30 10:11:32.312018"], ["updated_at", "2016-03-30 10:11:32.312018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.8ms) Rendered employees/new.html.erb within layouts/application (2.2ms) Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (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_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.0ms) ROLLBACK  (0.0ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.0ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.2ms) 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 --------------------------------------------------------------------------------- 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 ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_assigned_to_a_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_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (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", "2016-03-30 10:11:59.295835"], ["updated_at", "2016-03-30 10:11:59.295835"]]  (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_invalid_day_raises_error -------------------------------------------  (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_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.0ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_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_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.3ms) 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", "2016-03-30 10:11:59.307802"], ["updated_at", "2016-03-30 10:11:59.307802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-30 10:11:59.309108"], ["id", 78]]  (0.1ms) RELEASE SAVEPOINT active_record_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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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.3ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (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", "2016-03-30 10:11:59.354326"], ["updated_at", "2016-03-30 10:11:59.354326"]]  (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", "2016-03-30 10:11:59.355639"], ["updated_at", "2016-03-30 10:11:59.355639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (13.4ms) Rendered employees/new.html.erb within layouts/application (16.3ms) Completed 500 Internal Server Error in 23ms (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", "2016-03-30 10:11:59.384463"], ["updated_at", "2016-03-30 10:11:59.384463"]]  (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", "2016-03-30 10:11:59.385718"], ["updated_at", "2016-03-30 10:11:59.385718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"81"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 81]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 81]]  (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_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", "2016-03-30 10:11:59.393033"], ["updated_at", "2016-03-30 10:11:59.393033"]]  (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", "2016-03-30 10:11:59.394046"], ["updated_at", "2016-03-30 10:11:59.394046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"83"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 83]] Rendered employees/_form.html.erb (6.9ms) Rendered employees/edit.html.erb within layouts/application (7.4ms) Completed 500 Internal Server Error in 9ms (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:59.407417"], ["updated_at", "2016-03-30 10:11:59.407417"]]  (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", "2016-03-30 10:11:59.408613"], ["updated_at", "2016-03-30 10:11:59.408613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"85"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 85]] Rendered employees/_form.html.erb (5.9ms) Rendered employees/edit.html.erb within layouts/application (6.1ms) Completed 500 Internal Server Error in 7ms (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:11:59.430250"], ["updated_at", "2016-03-30 10:11:59.430250"]]  (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", "2016-03-30 10:11:59.431536"], ["updated_at", "2016-03-30 10:11:59.431536"]]  (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"=>"87"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 87]]  (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", "2016-03-30 10:11:59.434553"], ["id", 87]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/87 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 87]]  (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", "2016-03-30 10:11:59.437491"], ["updated_at", "2016-03-30 10:11:59.437491"]]  (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", "2016-03-30 10:11:59.438594"], ["updated_at", "2016-03-30 10:11:59.438594"]]  (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", "2016-03-30 10:11:59.441265"], ["updated_at", "2016-03-30 10:11:59.441265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/91 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (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_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", "2016-03-30 10:11:59.444739"], ["updated_at", "2016-03-30 10:11:59.444739"]]  (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", "2016-03-30 10:11:59.445777"], ["updated_at", "2016-03-30 10:11:59.445777"]]  (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.4ms) Completed 200 OK in 102ms (Views: 102.0ms | ActiveRecord: 0.2ms)  (0.2ms) 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", "2016-03-30 10:11:59.550794"], ["updated_at", "2016-03-30 10:11:59.550794"]]  (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", "2016-03-30 10:11:59.551864"], ["updated_at", "2016-03-30 10:11:59.551864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"94"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 94]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_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_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_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (0.2ms) 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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:12:29.054502"], ["updated_at", "2016-03-30 10:12:29.054502"]]  (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", "2016-03-30 10:12:29.069311"], ["updated_at", "2016-03-30 10:12:29.069311"]]  (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", "2016-03-30 10:12:29.074883"], ["updated_at", "2016-03-30 10:12:29.074883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/98 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_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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:12:29.080269"], ["updated_at", "2016-03-30 10:12:29.080269"]]  (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", "2016-03-30 10:12:29.081518"], ["updated_at", "2016-03-30 10:12:29.081518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"99"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 99]] Rendered employees/show.html.erb within layouts/application (1.0ms) Completed 200 OK in 118ms (Views: 113.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:12:29.202154"], ["updated_at", "2016-03-30 10:12:29.202154"]]  (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", "2016-03-30 10:12:29.203425"], ["updated_at", "2016-03-30 10:12:29.203425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (6.2ms) Rendered employees/new.html.erb within layouts/application (9.2ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 10:12:29.217512"], ["updated_at", "2016-03-30 10:12:29.217512"]]  (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", "2016-03-30 10:12:29.218719"], ["updated_at", "2016-03-30 10:12:29.218719"]]  (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"=>"103"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 103]]  (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", "2016-03-30 10:12:29.221587"], ["id", 103]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/103 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 103]]  (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", "2016-03-30 10:12:29.225146"], ["updated_at", "2016-03-30 10:12:29.225146"]]  (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", "2016-03-30 10:12:29.226053"], ["updated_at", "2016-03-30 10:12:29.226053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"105"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 105]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (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", "2016-03-30 10:12:29.232413"], ["updated_at", "2016-03-30 10:12:29.232413"]]  (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", "2016-03-30 10:12:29.233542"], ["updated_at", "2016-03-30 10:12:29.233542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"107"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 107]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 107]]  (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_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", "2016-03-30 10:12:29.239177"], ["updated_at", "2016-03-30 10:12:29.239177"]]  (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", "2016-03-30 10:12:29.240348"], ["updated_at", "2016-03-30 10:12:29.240348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"109"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 109]] Rendered employees/_form.html.erb (2.5ms) Rendered employees/edit.html.erb within layouts/application (2.7ms) Completed 200 OK in 4ms (Views: 3.6ms | 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", "2016-03-30 10:12:29.257153"], ["updated_at", "2016-03-30 10:12:29.257153"]]  (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", "2016-03-30 10:12:29.258541"], ["updated_at", "2016-03-30 10:12:29.258541"]]  (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.6ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (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", "2016-03-30 10:12:29.264819"], ["updated_at", "2016-03-30 10:12:29.264819"]]  (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_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_no_argument_error_is_raised_if_parseable_string_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_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (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", "2016-03-30 10:12:29.271247"], ["updated_at", "2016-03-30 10:12:29.271247"]]  (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", "2016-03-30 10:12:29.272281"], ["id", 114]]  (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_valid_dates_raise_no_errors ----------------------------------------------  (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.0ms) 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 --------------------------------------------------------------------------------------------------------- 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_form_population_values_can_be_extracted_from_the_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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_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.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", "2016-03-30 10:13:04.293259"], ["updated_at", "2016-03-30 10:13:04.293259"]]  (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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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_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_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_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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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.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", "2016-03-30 10:13:04.307654"], ["updated_at", "2016-03-30 10:13:04.307654"]]  (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", "2016-03-30 10:13:04.308930"], ["id", 116]]  (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_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.0ms) 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", "2016-03-30 10:13:04.346428"], ["updated_at", "2016-03-30 10:13:04.346428"]]  (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", "2016-03-30 10:13:04.347736"], ["updated_at", "2016-03-30 10:13:04.347736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"117"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 117]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 117]]  (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_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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:13:04.364506"], ["updated_at", "2016-03-30 10:13:04.364506"]]  (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", "2016-03-30 10:13:04.365777"], ["updated_at", "2016-03-30 10:13:04.365777"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"119"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 119]] Rendered employees/_form.html.erb (7.9ms) Rendered employees/edit.html.erb within layouts/application (10.6ms) Completed 200 OK in 119ms (Views: 118.5ms | ActiveRecord: 0.1ms)  (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", "2016-03-30 10:13:04.487674"], ["updated_at", "2016-03-30 10:13:04.487674"]]  (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", "2016-03-30 10:13:04.488889"], ["updated_at", "2016-03-30 10:13:04.488889"]]  (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", "2016-03-30 10:13:04.491709"], ["updated_at", "2016-03-30 10:13:04.491709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/123 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.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:13:04.495564"], ["updated_at", "2016-03-30 10:13:04.495564"]]  (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", "2016-03-30 10:13:04.496663"], ["updated_at", "2016-03-30 10:13:04.496663"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"124"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 124]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.0ms | 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", "2016-03-30 10:13:04.501628"], ["updated_at", "2016-03-30 10:13:04.501628"]]  (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", "2016-03-30 10:13:04.502664"], ["updated_at", "2016-03-30 10:13:04.502664"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 10:13:04.508202"], ["updated_at", "2016-03-30 10:13:04.508202"]]  (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", "2016-03-30 10:13:04.509255"], ["updated_at", "2016-03-30 10:13:04.509255"]]  (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"=>"128"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 128]]  (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", "2016-03-30 10:13:04.511898"], ["id", 128]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/128 Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 128]]  (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", "2016-03-30 10:13:04.514934"], ["updated_at", "2016-03-30 10:13:04.514934"]]  (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", "2016-03-30 10:13:04.515927"], ["updated_at", "2016-03-30 10:13:04.515927"]]  (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.3ms) Completed 200 OK in 3ms (Views: 2.6ms | 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", "2016-03-30 10:13:04.521279"], ["updated_at", "2016-03-30 10:13:04.521279"]]  (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", "2016-03-30 10:13:04.522416"], ["updated_at", "2016-03-30 10:13:04.522416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"132"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 132]] Rendered employees/_form.html.erb (1.4ms) 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_three_date_parts_changes_the_date ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_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_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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 ------------------------------------- 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_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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_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", "2016-03-30 10:43:43.802839"], ["updated_at", "2016-03-30 10:43:43.802839"]]  (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", "2016-03-30 10:43:43.806289"], ["id", 134]]  (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_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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_instance_has_form_date_instance_variables_for_each_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_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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-03-30 10:43:43.814006"], ["updated_at", "2016-03-30 10:43:43.814006"]]  (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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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.0ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_form_hint --------------------------------------------------------  (0.2ms) 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_basic_output_without_fieldset -------------------------------------------------------  (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", "2016-03-30 10:43:43.892103"], ["updated_at", "2016-03-30 10:43:43.892103"]]  (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", "2016-03-30 10:43:43.893667"], ["updated_at", "2016-03-30 10:43:43.893667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (5.9ms) Rendered employees/new.html.erb within layouts/application (9.1ms) Completed 200 OK in 120ms (Views: 119.3ms | ActiveRecord: 0.0ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:43:44.017561"], ["updated_at", "2016-03-30 10:43:44.017561"]]  (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", "2016-03-30 10:43:44.018840"], ["updated_at", "2016-03-30 10:43:44.018840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"138"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 138]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 3.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 10:43:44.027763"], ["updated_at", "2016-03-30 10:43:44.027763"]]  (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", "2016-03-30 10:43:44.028917"], ["updated_at", "2016-03-30 10:43:44.028917"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"140"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 140]] Rendered employees/show.html.erb within layouts/application (1.1ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.2ms) 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", "2016-03-30 10:43:44.036044"], ["updated_at", "2016-03-30 10:43:44.036044"]]  (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", "2016-03-30 10:43:44.037375"], ["updated_at", "2016-03-30 10:43:44.037375"]]  (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", "2016-03-30 10:43:44.040914"], ["updated_at", "2016-03-30 10:43:44.040914"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/144 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.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", "2016-03-30 10:43:44.045299"], ["updated_at", "2016-03-30 10:43:44.045299"]]  (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", "2016-03-30 10:43:44.046375"], ["updated_at", "2016-03-30 10:43:44.046375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"145"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 145]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (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", "2016-03-30 10:43:44.054101"], ["updated_at", "2016-03-30 10:43:44.054101"]]  (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", "2016-03-30 10:43:44.055355"], ["updated_at", "2016-03-30 10:43:44.055355"]]  (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.6ms) Completed 200 OK in 4ms (Views: 4.1ms | 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", "2016-03-30 10:43:44.062280"], ["updated_at", "2016-03-30 10:43:44.062280"]]  (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", "2016-03-30 10:43:44.063370"], ["updated_at", "2016-03-30 10:43:44.063370"]]  (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"=>"149"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 149]]  (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", "2016-03-30 10:43:44.065901"], ["id", 149]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/149 Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 149]]  (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", "2016-03-30 10:43:44.068747"], ["updated_at", "2016-03-30 10:43:44.068747"]]  (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", "2016-03-30 10:43:44.069644"], ["updated_at", "2016-03-30 10:43:44.069644"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"151"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 151]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 151]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (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_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_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 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (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.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", "2016-03-30 11:06:51.344346"], ["updated_at", "2016-03-30 11:06:51.344346"]]  (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", "2016-03-30 11:06:51.347672"], ["id", 153]]  (0.1ms) RELEASE 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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (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_form_population_values_can_be_extracted_from_the_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_argument_error_is_raised_if_unparseable_string_object_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_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_valid_dates_raise_no_errors ----------------------------------------------  (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_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_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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-03-30 11:06:51.363446"], ["updated_at", "2016-03-30 11:06:51.363446"]]  (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 ------------------------------------------------------- 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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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", "2016-03-30 11:06:51.431131"], ["updated_at", "2016-03-30 11:06:51.431131"]]  (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", "2016-03-30 11:06:51.432511"], ["updated_at", "2016-03-30 11:06:51.432511"]]  (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"=>"155"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 155]]  (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", "2016-03-30 11:06:51.438811"], ["id", 155]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/155 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 155]]  (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", "2016-03-30 11:06:51.442536"], ["updated_at", "2016-03-30 11:06:51.442536"]]  (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", "2016-03-30 11:06:51.443654"], ["updated_at", "2016-03-30 11:06:51.443654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (6.0ms) Rendered employees/new.html.erb within layouts/application (8.7ms) Completed 200 OK in 124ms (Views: 124.1ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 11:06:51.570721"], ["updated_at", "2016-03-30 11:06:51.570721"]]  (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", "2016-03-30 11:06:51.571973"], ["updated_at", "2016-03-30 11:06:51.571973"]]  (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", "2016-03-30 11:06:51.574932"], ["updated_at", "2016-03-30 11:06:51.574932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/161 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_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", "2016-03-30 11:06:51.578909"], ["updated_at", "2016-03-30 11:06:51.578909"]]  (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", "2016-03-30 11:06:51.580283"], ["updated_at", "2016-03-30 11:06:51.580283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"162"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 162]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.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.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", "2016-03-30 11:06:51.585471"], ["updated_at", "2016-03-30 11:06:51.585471"]]  (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", "2016-03-30 11:06:51.586546"], ["updated_at", "2016-03-30 11:06:51.586546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"164"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 164]] Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | 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", "2016-03-30 11:06:51.594627"], ["updated_at", "2016-03-30 11:06:51.594627"]]  (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", "2016-03-30 11:06:51.595670"], ["updated_at", "2016-03-30 11:06:51.595670"]]  (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.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 166]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 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", "2016-03-30 11:06:51.601127"], ["updated_at", "2016-03-30 11:06:51.601127"]]  (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", "2016-03-30 11:06:51.602301"], ["updated_at", "2016-03-30 11:06:51.602301"]]  (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.5ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (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", "2016-03-30 11:06:51.608345"], ["updated_at", "2016-03-30 11:06:51.608345"]]  (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", "2016-03-30 11:06:51.609560"], ["updated_at", "2016-03-30 11:06:51.609560"]]  (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.5ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) 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 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_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_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) 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 -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) 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_squash_html -------------------------------------  (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.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_output_with_legend_class -----------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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 -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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 -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (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 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_form_hint --------------------------------------------------------  (0.1ms) 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_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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.2ms) ROLLBACK  (0.4ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) 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_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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.2ms) ROLLBACK  (0.4ms) 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_output_with_legend_class -----------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) 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 ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.2ms) 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.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_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------- EmployeesControllerTest: test_should_destroy_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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 13:25:17.472487"], ["updated_at", "2016-03-30 13:25:17.472487"]]  (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", "2016-03-30 13:25:17.476358"], ["updated_at", "2016-03-30 13:25:17.476358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"172"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 172]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 172]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (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", "2016-03-30 13:25:17.487579"], ["updated_at", "2016-03-30 13:25:17.487579"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-03-30 13:25:17.497312"], ["updated_at", "2016-03-30 13:25:17.497312"]]  (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", "2016-03-30 13:25:17.500534"], ["updated_at", "2016-03-30 13:25:17.500534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/176 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.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", "2016-03-30 13:25:17.505068"], ["updated_at", "2016-03-30 13:25:17.505068"]]  (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", "2016-03-30 13:25:17.506074"], ["updated_at", "2016-03-30 13:25:17.506074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"177"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 177]] Rendered employees/_form.html.erb (11.1ms) Rendered employees/edit.html.erb within layouts/application (16.4ms) Completed 200 OK in 136ms (Views: 135.8ms | ActiveRecord: 0.1ms)  (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", "2016-03-30 13:25:17.647224"], ["updated_at", "2016-03-30 13:25:17.647224"]]  (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", "2016-03-30 13:25:17.648605"], ["updated_at", "2016-03-30 13:25:17.648605"]]  (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: 4.0ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 13:25:17.655605"], ["updated_at", "2016-03-30 13:25:17.655605"]]  (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", "2016-03-30 13:25:17.656710"], ["updated_at", "2016-03-30 13:25:17.656710"]]  (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"=>"181"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 181]]  (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", "2016-03-30 13:25:17.659538"], ["id", 181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/181 Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 181]]  (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", "2016-03-30 13:25:17.662966"], ["updated_at", "2016-03-30 13:25:17.662966"]]  (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", "2016-03-30 13:25:17.663961"], ["updated_at", "2016-03-30 13:25:17.663961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"183"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 183]] Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | 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", "2016-03-30 13:25:17.669431"], ["updated_at", "2016-03-30 13:25:17.669431"]]  (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", "2016-03-30 13:25:17.670565"], ["updated_at", "2016-03-30 13:25:17.670565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"185"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 185]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.3ms | 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", "2016-03-30 13:25:17.676304"], ["updated_at", "2016-03-30 13:25:17.676304"]]  (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", "2016-03-30 13:25:17.677393"], ["updated_at", "2016-03-30 13:25:17.677393"]]  (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.3ms) Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.2ms) 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_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_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_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_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.8ms) 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", "2016-03-30 13:25:17.688399"], ["updated_at", "2016-03-30 13:25:17.688399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (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.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", "2016-03-30 13:25:17.691408"], ["updated_at", "2016-03-30 13:25:17.691408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-30 13:25:17.692312"], ["id", 190]]  (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_invalid_day_raises_error -------------------------------------------  (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 ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_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_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 ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_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_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (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 ----------------------------------------------------------------------------------------------- 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_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_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.1ms) BEGIN -------------------------------------------- EmployeesControllerTest: test_should_get_new --------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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", "2016-03-30 14:19:18.871558"], ["updated_at", "2016-03-30 14:19:18.871558"]]  (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", "2016-03-30 14:19:18.883315"], ["updated_at", "2016-03-30 14:19:18.883315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (7.7ms) Rendered employees/new.html.erb within layouts/application (11.2ms) Completed 200 OK in 137ms (Views: 136.5ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 14:19:19.024469"], ["updated_at", "2016-03-30 14:19:19.024469"]]  (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", "2016-03-30 14:19:19.025716"], ["updated_at", "2016-03-30 14:19:19.025716"]]  (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"=>"193"} Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 193]]  (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", "2016-03-30 14:19:19.032298"], ["id", 193]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/193 Completed 302 Found in 7ms (ActiveRecord: 0.7ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 193]]  (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", "2016-03-30 14:19:19.035890"], ["updated_at", "2016-03-30 14:19:19.035890"]]  (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", "2016-03-30 14:19:19.036998"], ["updated_at", "2016-03-30 14:19:19.036998"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.8ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:19:19.042616"], ["updated_at", "2016-03-30 14:19:19.042616"]]  (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", "2016-03-30 14:19:19.044118"], ["updated_at", "2016-03-30 14:19:19.044118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"197"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 197]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | 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", "2016-03-30 14:19:19.050872"], ["updated_at", "2016-03-30 14:19:19.050872"]]  (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", "2016-03-30 14:19:19.051996"], ["updated_at", "2016-03-30 14:19:19.051996"]]  (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.3ms) 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.6ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:19:19.057506"], ["updated_at", "2016-03-30 14:19:19.057506"]]  (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", "2016-03-30 14:19:19.058718"], ["updated_at", "2016-03-30 14:19:19.058718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"201"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 201]] Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-03-30 14:19:19.074329"], ["updated_at", "2016-03-30 14:19:19.074329"]]  (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", "2016-03-30 14:19:19.075383"], ["updated_at", "2016-03-30 14:19:19.075383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"203"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 203]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.2ms | 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", "2016-03-30 14:19:19.080937"], ["updated_at", "2016-03-30 14:19:19.080937"]]  (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", "2016-03-30 14:19:19.082010"], ["updated_at", "2016-03-30 14:19:19.082010"]]  (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", "2016-03-30 14:19:19.084625"], ["updated_at", "2016-03-30 14:19:19.084625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/207 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (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 ---------------------------------------------- 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.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", "2016-03-30 14:19:19.089475"], ["updated_at", "2016-03-30 14:19:19.089475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-03-30 14:19:19.090516"], ["id", 208]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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_nil_dates_raise_no_errors --------------------------------------------  (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_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field ---------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-03-30 14:19:19.096267"], ["updated_at", "2016-03-30 14:19:19.096267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (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_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_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_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_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.2ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------------------------ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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_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.0ms) 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 -------------------------------------------------------------- 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:22:09.244126"], ["updated_at", "2016-03-30 14:22:09.244126"]]  (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", "2016-03-30 14:22:09.247706"], ["updated_at", "2016-03-30 14:22:09.247706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"210"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 210]] Rendered employees/_form.html.erb (8.0ms) Rendered employees/edit.html.erb within layouts/application (10.7ms) Completed 200 OK in 150ms (Views: 145.4ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:22:09.403674"], ["updated_at", "2016-03-30 14:22:09.403674"]]  (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", "2016-03-30 14:22:09.404920"], ["updated_at", "2016-03-30 14:22:09.404920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"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.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 212]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 2ms (ActiveRecord: 0.4ms)  (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.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", "2016-03-30 14:22:09.410451"], ["updated_at", "2016-03-30 14:22:09.410451"]]  (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", "2016-03-30 14:22:09.411737"], ["updated_at", "2016-03-30 14:22:09.411737"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.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", "2016-03-30 14:22:09.417388"], ["updated_at", "2016-03-30 14:22:09.417388"]]  (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", "2016-03-30 14:22:09.418456"], ["updated_at", "2016-03-30 14:22:09.418456"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"216"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 216]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 2ms (Views: 1.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", "2016-03-30 14:22:09.423285"], ["updated_at", "2016-03-30 14:22:09.423285"]]  (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", "2016-03-30 14:22:09.424250"], ["updated_at", "2016-03-30 14:22:09.424250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (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", "2016-03-30 14:22:09.429787"], ["updated_at", "2016-03-30 14:22:09.429787"]]  (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", "2016-03-30 14:22:09.430712"], ["updated_at", "2016-03-30 14:22:09.430712"]]  (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", "2016-03-30 14:22:09.433333"], ["updated_at", "2016-03-30 14:22:09.433333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/222 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.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", "2016-03-30 14:22:09.437319"], ["updated_at", "2016-03-30 14:22:09.437319"]]  (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", "2016-03-30 14:22:09.438524"], ["updated_at", "2016-03-30 14:22:09.438524"]]  (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"=>"223"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 223]]  (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", "2016-03-30 14:22:09.441587"], ["id", 223]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/223 Completed 302 Found in 4ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 223]]  (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", "2016-03-30 14:22:09.446283"], ["updated_at", "2016-03-30 14:22:09.446283"]]  (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", "2016-03-30 14:22:09.447240"], ["updated_at", "2016-03-30 14:22:09.447240"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"225"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 225]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) 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_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_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.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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-03-30 14:22:09.468989"], ["updated_at", "2016-03-30 14:22:09.468989"]]  (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", "2016-03-30 14:22:09.470340"], ["id", 227]]  (0.1ms) RELEASE 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_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", "2016-03-30 14:22:09.473387"], ["updated_at", "2016-03-30 14:22:09.473387"]]  (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_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_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  (0.1ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_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_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_that_argument_error_is_raised_if_unparseable_string_object_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_nil_can_be_assigned_to_a_date_field -----------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------- EmployeeTest: test_nil_dates_raise_no_errors --------------------------------------------  (0.2ms) 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_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_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_that_form_population_values_can_be_extracted_from_the_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.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", "2016-03-30 14:24:40.343823"], ["updated_at", "2016-03-30 14:24:40.343823"]]  (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.0ms) 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_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", "2016-03-30 14:24:40.349608"], ["updated_at", "2016-03-30 14:24:40.349608"]]  (0.1ms) 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", "1965-05-17"], ["updated_at", "2016-03-30 14:24:40.350845"], ["id", 230]]  (0.1ms) RELEASE 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_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_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.0ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.0ms) 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:24:40.390569"], ["updated_at", "2016-03-30 14:24:40.390569"]]  (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", "2016-03-30 14:24:40.391882"], ["updated_at", "2016-03-30 14:24:40.391882"]]  (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 (8.0ms) Rendered employees/edit.html.erb within layouts/application (10.7ms) Completed 200 OK in 126ms (Views: 123.8ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:24:40.529170"], ["updated_at", "2016-03-30 14:24:40.529170"]]  (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", "2016-03-30 14:24:40.530403"], ["updated_at", "2016-03-30 14:24:40.530403"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"233"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 233]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 233]]  (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_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", "2016-03-30 14:24:40.535620"], ["updated_at", "2016-03-30 14:24:40.535620"]]  (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", "2016-03-30 14:24:40.536818"], ["updated_at", "2016-03-30 14:24:40.536818"]]  (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.6ms) Completed 200 OK in 3ms (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.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", "2016-03-30 14:24:40.542750"], ["updated_at", "2016-03-30 14:24:40.542750"]]  (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", "2016-03-30 14:24:40.544136"], ["updated_at", "2016-03-30 14:24:40.544136"]]  (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"=>"237"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 237]]  (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", "2016-03-30 14:24:40.547421"], ["id", 237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/237 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 237]]  (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", "2016-03-30 14:24:40.550549"], ["updated_at", "2016-03-30 14:24:40.550549"]]  (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", "2016-03-30 14:24:40.551477"], ["updated_at", "2016-03-30 14:24:40.551477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"239"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 239]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.0ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:24:40.556498"], ["updated_at", "2016-03-30 14:24:40.556498"]]  (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", "2016-03-30 14:24:40.557646"], ["updated_at", "2016-03-30 14:24:40.557646"]]  (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", "2016-03-30 14:24:40.560424"], ["updated_at", "2016-03-30 14:24:40.560424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/243 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.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", "2016-03-30 14:24:40.564569"], ["updated_at", "2016-03-30 14:24:40.564569"]]  (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", "2016-03-30 14:24:40.565791"], ["updated_at", "2016-03-30 14:24:40.565791"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"244"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 244]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-03-30 14:24:40.574728"], ["updated_at", "2016-03-30 14:24:40.574728"]]  (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", "2016-03-30 14:24:40.576103"], ["updated_at", "2016-03-30 14:24:40.576103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (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_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_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_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.3ms) 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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (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_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (1.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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.2ms) 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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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.2ms) 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.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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.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 ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (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_invalid_dates_is_invalid -------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) 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", "2016-04-01 13:00:09.907411"], ["updated_at", "2016-04-01 13:00:09.907411"]]  (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_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_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_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_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_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_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", "2016-04-01 13:00:09.926589"], ["updated_at", "2016-04-01 13:00:09.926589"]]  (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", "2016-04-01 13:00:09.927836"], ["id", 249]]  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (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", "2016-04-01 13:00:09.992804"], ["updated_at", "2016-04-01 13:00:09.992804"]]  (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", "2016-04-01 13:00:09.994086"], ["updated_at", "2016-04-01 13:00:09.994086"]]  (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"=>"250"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 250]]  (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", "2016-04-01 13:00:10.001339"], ["id", 250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/250 Completed 302 Found in 6ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 250]]  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-01 13:00:10.005025"], ["updated_at", "2016-04-01 13:00:10.005025"]]  (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", "2016-04-01 13:00:10.006111"], ["updated_at", "2016-04-01 13:00:10.006111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"252"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 252]] Rendered employees/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 115ms (Views: 114.6ms | ActiveRecord: 0.1ms)  (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", "2016-04-01 13:00:10.124085"], ["updated_at", "2016-04-01 13:00:10.124085"]]  (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", "2016-04-01 13:00:10.125413"], ["updated_at", "2016-04-01 13:00:10.125413"]]  (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", "2016-04-01 13:00:10.128624"], ["updated_at", "2016-04-01 13:00:10.128624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/256 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (1.1ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (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", "2016-04-01 13:00:10.133291"], ["updated_at", "2016-04-01 13:00:10.133291"]]  (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", "2016-04-01 13:00:10.134331"], ["updated_at", "2016-04-01 13:00:10.134331"]]  (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.4ms) Completed 200 OK in 3ms (Views: 3.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.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", "2016-04-01 13:00:10.140126"], ["updated_at", "2016-04-01 13:00:10.140126"]]  (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", "2016-04-01 13:00:10.141198"], ["updated_at", "2016-04-01 13:00:10.141198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"259"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 259]] Rendered employees/_form.html.erb (9.9ms) Rendered employees/edit.html.erb within layouts/application (15.2ms) Completed 200 OK in 18ms (Views: 17.3ms | 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", "2016-04-01 13:00:10.171156"], ["updated_at", "2016-04-01 13:00:10.171156"]]  (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", "2016-04-01 13:00:10.172325"], ["updated_at", "2016-04-01 13:00:10.172325"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.8ms) Rendered employees/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (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", "2016-04-01 13:00:10.179488"], ["updated_at", "2016-04-01 13:00:10.179488"]]  (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", "2016-04-01 13:00:10.180567"], ["updated_at", "2016-04-01 13:00:10.180567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"263"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 263]] Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.5ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (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", "2016-04-01 13:00:10.185864"], ["updated_at", "2016-04-01 13:00:10.185864"]]  (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", "2016-04-01 13:00:10.186911"], ["updated_at", "2016-04-01 13:00:10.186911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"265"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 265]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (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 ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.2ms) 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_with_id ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (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 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.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", "2016-04-01 13:04:18.272208"], ["updated_at", "2016-04-01 13:04:18.272208"]]  (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", "2016-04-01 13:04:18.277201"], ["updated_at", "2016-04-01 13:04:18.277201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"267"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 267]] Rendered employees/show.html.erb within layouts/application (1.1ms) Completed 200 OK in 117ms (Views: 112.2ms | ActiveRecord: 0.2ms)  (0.3ms) 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-01 13:04:18.398968"], ["updated_at", "2016-04-01 13:04:18.398968"]]  (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", "2016-04-01 13:04:18.400249"], ["updated_at", "2016-04-01 13:04:18.400249"]]  (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 (11.6ms) Rendered employees/edit.html.erb within layouts/application (13.9ms) Completed 200 OK in 16ms (Views: 15.6ms | 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", "2016-04-01 13:04:18.419921"], ["updated_at", "2016-04-01 13:04:18.419921"]]  (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", "2016-04-01 13:04:18.421232"], ["updated_at", "2016-04-01 13:04:18.421232"]]  (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", "2016-04-01 13:04:18.424316"], ["updated_at", "2016-04-01 13:04:18.424316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/273 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.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", "2016-04-01 13:04:18.428209"], ["updated_at", "2016-04-01 13:04:18.428209"]]  (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", "2016-04-01 13:04:18.429244"], ["updated_at", "2016-04-01 13:04:18.429244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.8ms) 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", "2016-04-01 13:04:18.435275"], ["updated_at", "2016-04-01 13:04:18.435275"]]  (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", "2016-04-01 13:04:18.436423"], ["updated_at", "2016-04-01 13:04:18.436423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"276"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 276]] Rendered employees/_form.html.erb (1.7ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)  (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", "2016-04-01 13:04:18.445189"], ["updated_at", "2016-04-01 13:04:18.445189"]]  (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", "2016-04-01 13:04:18.446218"], ["updated_at", "2016-04-01 13:04:18.446218"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "2016-04-01 13:04:18.451368"], ["updated_at", "2016-04-01 13:04:18.451368"]]  (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", "2016-04-01 13:04:18.452410"], ["updated_at", "2016-04-01 13:04:18.452410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"280"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 280]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 280]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (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.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", "2016-04-01 13:04:18.457159"], ["updated_at", "2016-04-01 13:04:18.457159"]]  (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", "2016-04-01 13:04:18.458112"], ["updated_at", "2016-04-01 13:04:18.458112"]]  (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"=>"282"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 282]]  (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", "2016-04-01 13:04:18.460632"], ["id", 282]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/282 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 282]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------------------------------------ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (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_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_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_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (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_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.0ms) 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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-01 13:04:18.478145"], ["updated_at", "2016-04-01 13:04:18.478145"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (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_invalid_day_raises_error -------------------------------------------  (0.0ms) 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_nil_can_be_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_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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_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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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", "2016-04-01 13:04:18.488715"], ["updated_at", "2016-04-01 13:04:18.488715"]]  (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", "2016-04-01 13:04:18.489826"], ["id", 285]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_update_employee ----------------------------------------------------  (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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:46.971798"], ["updated_at", "2016-04-04 14:22:46.971798"]]  (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", "2016-04-04 14:22:46.976772"], ["updated_at", "2016-04-04 14:22:46.976772"]]  (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"=>"286"} Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 286]]  (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", "2016-04-04 14:22:46.991783"], ["id", 286]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/286 Completed 302 Found in 12ms (ActiveRecord: 0.7ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 286]]  (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", "2016-04-04 14:22:46.996331"], ["updated_at", "2016-04-04 14:22:46.996331"]]  (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", "2016-04-04 14:22:46.997478"], ["updated_at", "2016-04-04 14:22:46.997478"]]  (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", "2016-04-04 14:22:47.000388"], ["updated_at", "2016-04-04 14:22:47.000388"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/290 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (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_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", "2016-04-04 14:22:47.003958"], ["updated_at", "2016-04-04 14:22:47.003958"]]  (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", "2016-04-04 14:22:47.004895"], ["updated_at", "2016-04-04 14:22:47.004895"]]  (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 (3.1ms) Completed 200 OK in 131ms (Views: 130.4ms | 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", "2016-04-04 14:22:47.138826"], ["updated_at", "2016-04-04 14:22:47.138826"]]  (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", "2016-04-04 14:22:47.140172"], ["updated_at", "2016-04-04 14:22:47.140172"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (12.9ms) Rendered employees/new.html.erb within layouts/application (17.5ms) Completed 200 OK in 20ms (Views: 19.6ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.163042"], ["updated_at", "2016-04-04 14:22:47.163042"]]  (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", "2016-04-04 14:22:47.164342"], ["updated_at", "2016-04-04 14:22:47.164342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"295"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 295]] Rendered employees/show.html.erb within layouts/application (1.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (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", "2016-04-04 14:22:47.171567"], ["updated_at", "2016-04-04 14:22:47.171567"]]  (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", "2016-04-04 14:22:47.172995"], ["updated_at", "2016-04-04 14:22:47.172995"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"297"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 297]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 297]]  (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.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", "2016-04-04 14:22:47.180099"], ["updated_at", "2016-04-04 14:22:47.180099"]]  (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", "2016-04-04 14:22:47.181167"], ["updated_at", "2016-04-04 14:22:47.181167"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"299"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 299]] Rendered employees/_form.html.erb (2.2ms) Rendered employees/edit.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)  (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", "2016-04-04 14:22:47.191239"], ["updated_at", "2016-04-04 14:22:47.191239"]]  (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", "2016-04-04 14:22:47.192404"], ["updated_at", "2016-04-04 14:22:47.192404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"301"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 301]] Rendered employees/_form.html.erb (2.1ms) Rendered employees/edit.html.erb within layouts/application (2.4ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (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_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 ----------------------------------------------------------------------------------------------- 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 ------------------------------------------ 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_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_squash_html -------------------------------------  (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 ----------------------------------------------------------- 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_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_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_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_valid_dates_raise_no_errors ----------------------------------------------  (0.2ms) 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_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_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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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_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", "2016-04-04 14:22:47.250590"], ["updated_at", "2016-04-04 14:22:47.250590"]]  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (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", "2016-04-04 14:22:47.253523"], ["updated_at", "2016-04-04 14:22:47.253523"]]  (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", "2016-04-04 14:22:47.254542"], ["id", 304]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) 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 ----------------------------------------------------------- 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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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.2ms) 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_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_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.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_invalid_day_raises_error -------------------------------------------  (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_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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.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", "2016-04-04 14:23:39.049474"], ["updated_at", "2016-04-04 14:23:39.049474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (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_valid_dates_raise_no_errors ----------------------------------------------  (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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------------------ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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.0ms) 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_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", "2016-04-04 14:23:39.058706"], ["updated_at", "2016-04-04 14:23:39.058706"]]  (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", "2016-04-04 14:23:39.059814"], ["id", 306]]  (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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-04-04 14:23:39.090610"], ["updated_at", "2016-04-04 14:23:39.090610"]]  (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", "2016-04-04 14:23:39.091806"], ["updated_at", "2016-04-04 14:23:39.091806"]]  (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.5ms) Completed 200 OK in 103ms (Views: 102.3ms | ActiveRecord: 0.3ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.198503"], ["updated_at", "2016-04-04 14:23:39.198503"]]  (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", "2016-04-04 14:23:39.199732"], ["updated_at", "2016-04-04 14:23:39.199732"]]  (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"=>"309"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 309]]  (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", "2016-04-04 14:23:39.204407"], ["id", 309]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/309 Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 309]]  (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", "2016-04-04 14:23:39.208224"], ["updated_at", "2016-04-04 14:23:39.208224"]]  (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", "2016-04-04 14:23:39.209273"], ["updated_at", "2016-04-04 14:23:39.209273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"311"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 311]] Rendered employees/_form.html.erb (5.2ms) Rendered employees/edit.html.erb within layouts/application (7.9ms) Completed 200 OK in 10ms (Views: 9.6ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.222201"], ["updated_at", "2016-04-04 14:23:39.222201"]]  (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", "2016-04-04 14:23:39.223382"], ["updated_at", "2016-04-04 14:23:39.223382"]]  (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", "2016-04-04 14:23:39.226267"], ["updated_at", "2016-04-04 14:23:39.226267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/315 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.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", "2016-04-04 14:23:39.230733"], ["updated_at", "2016-04-04 14:23:39.230733"]]  (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", "2016-04-04 14:23:39.231771"], ["updated_at", "2016-04-04 14:23:39.231771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"316"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 316]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 316]]  (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_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", "2016-04-04 14:23:39.236966"], ["updated_at", "2016-04-04 14:23:39.236966"]]  (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", "2016-04-04 14:23:39.238096"], ["updated_at", "2016-04-04 14:23:39.238096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.8ms) 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", "2016-04-04 14:23:39.245066"], ["updated_at", "2016-04-04 14:23:39.245066"]]  (0.2ms) 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", "2016-04-04 14:23:39.267858"], ["updated_at", "2016-04-04 14:23:39.267858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"320"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 320]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.275987"], ["updated_at", "2016-04-04 14:23:39.275987"]]  (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", "2016-04-04 14:23:39.277292"], ["updated_at", "2016-04-04 14:23:39.277292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"322"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 322]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (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 ----------------------------------------------------------- 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_that_nil_can_be_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_no_argument_error_is_raised_if_parseable_string_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.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", "2016-04-04 14:24:11.900636"], ["updated_at", "2016-04-04 14:24:11.900636"]]  (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", "2016-04-04 14:24:11.904146"], ["id", 324]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "2016-04-04 14:24:11.908601"], ["updated_at", "2016-04-04 14:24:11.908601"]]  (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_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_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_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.0ms) 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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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", "2016-04-04 14:24:11.951454"], ["updated_at", "2016-04-04 14:24:11.951454"]]  (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", "2016-04-04 14:24:11.952695"], ["updated_at", "2016-04-04 14:24:11.952695"]]  (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"=>"326"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]  (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", "2016-04-04 14:24:11.958841"], ["id", 326]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/326 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]  (0.1ms) ROLLBACK  (0.8ms) 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", "2016-04-04 14:24:11.963685"], ["updated_at", "2016-04-04 14:24:11.963685"]]  (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", "2016-04-04 14:24:11.964895"], ["updated_at", "2016-04-04 14:24:11.964895"]]  (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 (2.0ms) Completed 200 OK in 106ms (Views: 105.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.073577"], ["updated_at", "2016-04-04 14:24:12.073577"]]  (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", "2016-04-04 14:24:12.074837"], ["updated_at", "2016-04-04 14:24:12.074837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"330"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 330]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 2ms (Views: 1.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", "2016-04-04 14:24:12.079608"], ["updated_at", "2016-04-04 14:24:12.079608"]]  (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", "2016-04-04 14:24:12.080642"], ["updated_at", "2016-04-04 14:24:12.080642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (7.0ms) Rendered employees/new.html.erb within layouts/application (9.1ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.2ms) 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", "2016-04-04 14:24:12.093996"], ["updated_at", "2016-04-04 14:24:12.093996"]]  (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", "2016-04-04 14:24:12.095198"], ["updated_at", "2016-04-04 14:24:12.095198"]]  (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", "2016-04-04 14:24:12.098813"], ["updated_at", "2016-04-04 14:24:12.098813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/336 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.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", "2016-04-04 14:24:12.102463"], ["updated_at", "2016-04-04 14:24:12.102463"]]  (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", "2016-04-04 14:24:12.103474"], ["updated_at", "2016-04-04 14:24:12.103474"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"337"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 337]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-04-04 14:24:12.126600"], ["updated_at", "2016-04-04 14:24:12.126600"]]  (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", "2016-04-04 14:24:12.127733"], ["updated_at", "2016-04-04 14:24:12.127733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"339"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 339]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-04-04 14:24:12.133007"], ["updated_at", "2016-04-04 14:24:12.133007"]]  (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", "2016-04-04 14:24:12.134078"], ["updated_at", "2016-04-04 14:24:12.134078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"341"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 341]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 341]]  (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 --------------------------------------------------------------- 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_fieldset_with_id ------------------------------------------  (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_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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_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_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_employee ----------------------------------------------------  (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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.030069"], ["updated_at", "2016-04-04 14:28:13.030069"]]  (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", "2016-04-04 14:28:13.033123"], ["updated_at", "2016-04-04 14:28:13.033123"]]  (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", "2016-04-04 14:28:13.037270"], ["updated_at", "2016-04-04 14:28:13.037270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/345 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.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.042315"], ["updated_at", "2016-04-04 14:28:13.042315"]]  (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", "2016-04-04 14:28:13.043545"], ["updated_at", "2016-04-04 14:28:13.043545"]]  (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 1 [["id", 346]] Rendered employees/show.html.erb within layouts/application (0.9ms) Completed 200 OK in 108ms (Views: 104.4ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.154963"], ["updated_at", "2016-04-04 14:28:13.154963"]]  (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", "2016-04-04 14:28:13.156182"], ["updated_at", "2016-04-04 14:28:13.156182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (5.4ms) Rendered employees/new.html.erb within layouts/application (7.5ms) Completed 200 OK in 9ms (Views: 9.2ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.168461"], ["updated_at", "2016-04-04 14:28:13.168461"]]  (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", "2016-04-04 14:28:13.169958"], ["updated_at", "2016-04-04 14:28:13.169958"]]  (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.7ms) 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", "2016-04-04 14:28:13.176189"], ["updated_at", "2016-04-04 14:28:13.176189"]]  (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", "2016-04-04 14:28:13.177211"], ["updated_at", "2016-04-04 14:28:13.177211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"352"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 352]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 352]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.181888"], ["updated_at", "2016-04-04 14:28:13.181888"]]  (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", "2016-04-04 14:28:13.182882"], ["updated_at", "2016-04-04 14:28:13.182882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"354"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 354]] Rendered employees/_form.html.erb (1.3ms) Rendered employees/edit.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.191713"], ["updated_at", "2016-04-04 14:28:13.191713"]]  (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", "2016-04-04 14:28:13.192943"], ["updated_at", "2016-04-04 14:28:13.192943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"356"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 356]] Rendered employees/_form.html.erb (2.5ms) Rendered employees/edit.html.erb within layouts/application (2.7ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)  (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", "2016-04-04 14:28:13.199887"], ["updated_at", "2016-04-04 14:28:13.199887"]]  (0.2ms) 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", "2016-04-04 14:28:13.222717"], ["updated_at", "2016-04-04 14:28:13.222717"]]  (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"=>"358"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]  (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", "2016-04-04 14:28:13.225986"], ["id", 358]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/358 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]  (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_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", "2016-04-04 14:28:13.230990"], ["updated_at", "2016-04-04 14:28:13.230990"]]  (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.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", "2016-04-04 14:28:13.233467"], ["updated_at", "2016-04-04 14:28:13.233467"]]  (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", "2016-04-04 14:28:13.234783"], ["id", 361]]  (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_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_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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_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_invalid_day_raises_error -------------------------------------------  (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_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_nil_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_employee_instance_has_form_date_instance_variables_for_each_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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_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 ---------------------------------------------------  (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_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (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 ---------------------------------------------------  (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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_id ------------------------------------------  (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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.2ms) 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_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 ---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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_form_hint --------------------------------------------------------  (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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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_with_error_class ---------------------------------------------------  (0.6ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.2ms) 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_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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class ---------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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 ---------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_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_updating_existing_record_with_valid_dates_is_valid ---------------------------------------------------------------------  (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", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:53:38.284961"], ["updated_at", "2016-04-04 14:53:38.284961"]]  (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", "2016-04-04 14:53:38.288635"], ["id", 362]]  (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_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_that_argument_error_is_raised_if_unparseable_string_object_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_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_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_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_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_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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:53:38.302017"], ["updated_at", "2016-04-04 14:53:38.302017"]]  (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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------------- EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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", "2016-04-04 14:53:38.330593"], ["updated_at", "2016-04-04 14:53:38.330593"]]  (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", "2016-04-04 14:53:38.331852"], ["updated_at", "2016-04-04 14:53:38.331852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (7.7ms) Rendered employees/new.html.erb within layouts/application (10.4ms) Completed 200 OK in 133ms (Views: 132.9ms | ActiveRecord: 0.0ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.469073"], ["updated_at", "2016-04-04 14:53:38.469073"]]  (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", "2016-04-04 14:53:38.470408"], ["updated_at", "2016-04-04 14:53:38.470408"]]  (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 1 [["id", 366]] Rendered employees/_form.html.erb (2.6ms) Rendered employees/edit.html.erb within layouts/application (3.2ms) Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (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", "2016-04-04 14:53:38.481369"], ["updated_at", "2016-04-04 14:53:38.481369"]]  (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", "2016-04-04 14:53:38.482701"], ["updated_at", "2016-04-04 14:53:38.482701"]]  (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"=>"368"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 368]]  (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", "2016-04-04 14:53:38.485897"], ["id", 368]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/368 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 368]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------------- EmployeesControllerTest: test_should_create_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", "2016-04-04 14:53:38.489531"], ["updated_at", "2016-04-04 14:53:38.489531"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.491548"], ["updated_at", "2016-04-04 14:53:38.491548"]]  (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", "2016-04-04 14:53:38.495709"], ["updated_at", "2016-04-04 14:53:38.495709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/372 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.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", "2016-04-04 14:53:38.500086"], ["updated_at", "2016-04-04 14:53:38.500086"]]  (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", "2016-04-04 14:53:38.501225"], ["updated_at", "2016-04-04 14:53:38.501225"]]  (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 (1.9ms) Completed 200 OK in 4ms (Views: 3.8ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.508229"], ["updated_at", "2016-04-04 14:53:38.508229"]]  (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", "2016-04-04 14:53:38.510262"], ["updated_at", "2016-04-04 14:53:38.510262"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"375"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 375]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 375]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.515063"], ["updated_at", "2016-04-04 14:53:38.515063"]]  (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", "2016-04-04 14:53:38.516060"], ["updated_at", "2016-04-04 14:53:38.516060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"377"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 377]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | 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", "2016-04-04 14:53:38.523437"], ["updated_at", "2016-04-04 14:53:38.523437"]]  (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", "2016-04-04 14:53:38.524602"], ["updated_at", "2016-04-04 14:53:38.524602"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"379"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 379]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)  (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 ---------------------------------------------------  (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_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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (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_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_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_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (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.2ms) 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_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (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", "2016-04-04 15:28:11.614253"], ["updated_at", "2016-04-04 15:28:11.614253"]]  (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", "2016-04-04 15:28:11.619037"], ["id", 381]]  (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_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_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_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_nil_dates_raise_no_errors --------------------------------------------  (0.8ms) 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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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_that_argument_error_is_raised_if_unparseable_string_object_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_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.0ms) 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", "2016-04-04 15:28:11.637220"], ["updated_at", "2016-04-04 15:28:11.637220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (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_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (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_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.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_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", "2016-04-04 15:28:11.673346"], ["updated_at", "2016-04-04 15:28:11.673346"]]  (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", "2016-04-04 15:28:11.674718"], ["updated_at", "2016-04-04 15:28:11.674718"]]  (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.9ms) Completed 200 OK in 125ms (Views: 124.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.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", "2016-04-04 15:28:11.803767"], ["updated_at", "2016-04-04 15:28:11.803767"]]  (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", "2016-04-04 15:28:11.805087"], ["updated_at", "2016-04-04 15:28:11.805087"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"385"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 385]] Rendered employees/_form.html.erb (7.9ms) Rendered employees/edit.html.erb within layouts/application (12.0ms) Completed 200 OK in 16ms (Views: 13.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.826139"], ["updated_at", "2016-04-04 15:28:11.826139"]]  (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", "2016-04-04 15:28:11.827412"], ["updated_at", "2016-04-04 15:28:11.827412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)  (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", "2016-04-04 15:28:11.833857"], ["updated_at", "2016-04-04 15:28:11.833857"]]  (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", "2016-04-04 15:28:11.835022"], ["updated_at", "2016-04-04 15:28:11.835022"]]  (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"=>"389"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]  (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", "2016-04-04 15:28:11.838036"], ["id", 389]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/389 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]  (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", "2016-04-04 15:28:11.841750"], ["updated_at", "2016-04-04 15:28:11.841750"]]  (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", "2016-04-04 15:28:11.842941"], ["updated_at", "2016-04-04 15:28:11.842941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"391"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 391]] Rendered employees/_form.html.erb (1.5ms) 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_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", "2016-04-04 15:28:11.849806"], ["updated_at", "2016-04-04 15:28:11.849806"]]  (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", "2016-04-04 15:28:11.850983"], ["updated_at", "2016-04-04 15:28:11.850983"]]  (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", "2016-04-04 15:28:11.854126"], ["updated_at", "2016-04-04 15:28:11.854126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/395 Completed 302 Found in 2ms (ActiveRecord: 0.2ms)  (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", "2016-04-04 15:28:11.858102"], ["updated_at", "2016-04-04 15:28:11.858102"]]  (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", "2016-04-04 15:28:11.859103"], ["updated_at", "2016-04-04 15:28:11.859103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"396"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 396]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (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", "2016-04-04 15:28:11.864558"], ["updated_at", "2016-04-04 15:28:11.864558"]]  (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", "2016-04-04 15:28:11.865737"], ["updated_at", "2016-04-04 15:28:11.865737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"398"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 398]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 398]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM "employees"  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.053258"], ["updated_at", "2016-04-04 15:33:47.053258"]]  (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", "2016-04-04 15:33:47.056327"], ["updated_at", "2016-04-04 15:33:47.056327"]]  (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 1 [["id", 400]] Rendered employees/_form.html.erb (8.0ms) Rendered employees/edit.html.erb within layouts/application (10.7ms) Completed 200 OK in 140ms (Views: 134.8ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.200936"], ["updated_at", "2016-04-04 15:33:47.200936"]]  (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", "2016-04-04 15:33:47.202386"], ["updated_at", "2016-04-04 15:33:47.202386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"402"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 402]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 3ms (Views: 2.8ms | 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", "2016-04-04 15:33:47.211302"], ["updated_at", "2016-04-04 15:33:47.211302"]]  (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", "2016-04-04 15:33:47.212618"], ["updated_at", "2016-04-04 15:33:47.212618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"404"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 404]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 404]]  (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_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", "2016-04-04 15:33:47.219359"], ["updated_at", "2016-04-04 15:33:47.219359"]]  (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", "2016-04-04 15:33:47.220575"], ["updated_at", "2016-04-04 15:33:47.220575"]]  (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", "2016-04-04 15:33:47.223733"], ["updated_at", "2016-04-04 15:33:47.223733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/408 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_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", "2016-04-04 15:33:47.227681"], ["updated_at", "2016-04-04 15:33:47.227681"]]  (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", "2016-04-04 15:33:47.228787"], ["updated_at", "2016-04-04 15:33:47.228787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"409"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 409]] Rendered employees/show.html.erb within layouts/application (0.6ms) 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.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", "2016-04-04 15:33:47.234249"], ["updated_at", "2016-04-04 15:33:47.234249"]]  (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", "2016-04-04 15:33:47.235571"], ["updated_at", "2016-04-04 15:33:47.235571"]]  (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.7ms) Completed 200 OK in 4ms (Views: 4.0ms | 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", "2016-04-04 15:33:47.242788"], ["updated_at", "2016-04-04 15:33:47.242788"]]  (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", "2016-04-04 15:33:47.243980"], ["updated_at", "2016-04-04 15:33:47.243980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)  (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", "2016-04-04 15:33:47.249951"], ["updated_at", "2016-04-04 15:33:47.249951"]]  (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", "2016-04-04 15:33:47.250997"], ["updated_at", "2016-04-04 15:33:47.250997"]]  (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"=>"415"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]  (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", "2016-04-04 15:33:47.253956"], ["id", 415]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/415 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_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_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_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (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.0ms) 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 --------------------------------------------------------------------- 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", "2016-04-04 15:33:47.275350"], ["updated_at", "2016-04-04 15:33:47.275350"]]  (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", "2016-04-04 15:33:47.277093"], ["id", 417]]  (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_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", "2016-04-04 15:33:47.280716"], ["updated_at", "2016-04-04 15:33:47.280716"]]  (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_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_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_employee_class_responds_to_acts_as_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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:38.925814"], ["updated_at", "2016-04-04 15:38:38.925814"]]  (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", "2016-04-04 15:38:38.928834"], ["updated_at", "2016-04-04 15:38:38.928834"]]  (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", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:38:38.933541"], ["updated_at", "2016-04-04 15:38:38.933541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/421 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (1.0ms) 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.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", "2016-04-04 15:38:38.940211"], ["updated_at", "2016-04-04 15:38:38.940211"]]  (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", "2016-04-04 15:38:38.941287"], ["updated_at", "2016-04-04 15:38:38.941287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"422"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 422]] Rendered employees/_form.html.erb (7.6ms) Rendered employees/edit.html.erb within layouts/application (10.3ms) Completed 200 OK in 129ms (Views: 126.1ms | ActiveRecord: 0.1ms)  (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", "2016-04-04 15:38:39.074831"], ["updated_at", "2016-04-04 15:38:39.074831"]]  (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", "2016-04-04 15:38:39.076146"], ["updated_at", "2016-04-04 15:38:39.076146"]]  (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.6ms) Completed 200 OK in 4ms (Views: 3.2ms | 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", "2016-04-04 15:38:39.082650"], ["updated_at", "2016-04-04 15:38:39.082650"]]  (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", "2016-04-04 15:38:39.083936"], ["updated_at", "2016-04-04 15:38:39.083936"]]  (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.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (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", "2016-04-04 15:38:39.090886"], ["updated_at", "2016-04-04 15:38:39.090886"]]  (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", "2016-04-04 15:38:39.092116"], ["updated_at", "2016-04-04 15:38:39.092116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"428"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 428]] 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.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", "2016-04-04 15:38:39.098173"], ["updated_at", "2016-04-04 15:38:39.098173"]]  (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", "2016-04-04 15:38:39.099345"], ["updated_at", "2016-04-04 15:38:39.099345"]]  (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"=>"430"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 430]]  (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", "2016-04-04 15:38:39.102411"], ["id", 430]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/430 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 430]]  (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", "2016-04-04 15:38:39.106213"], ["updated_at", "2016-04-04 15:38:39.106213"]]  (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", "2016-04-04 15:38:39.107279"], ["updated_at", "2016-04-04 15:38:39.107279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"432"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 432]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 432]]  (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", "2016-04-04 15:38:39.113007"], ["updated_at", "2016-04-04 15:38:39.113007"]]  (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", "2016-04-04 15:38:39.114255"], ["updated_at", "2016-04-04 15:38:39.114255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"434"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 434]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)  (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_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.0ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) 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.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", "2016-04-04 15:38:39.132291"], ["updated_at", "2016-04-04 15:38:39.132291"]]  (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_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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (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_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", "2016-04-04 15:38:39.138427"], ["updated_at", "2016-04-04 15:38:39.138427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:38:39.139525"], ["id", 437]]  (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_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_we_can_assign_new_dates_to_the_form_date_object -----------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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.0ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_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_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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (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_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_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_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 -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (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", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.016168"], ["updated_at", "2016-04-04 15:39:24.016168"]]  (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", "2016-04-04 15:39:24.020225"], ["updated_at", "2016-04-04 15:39:24.020225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"438"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 438]] Rendered employees/_form.html.erb (7.8ms) Rendered employees/edit.html.erb within layouts/application (10.6ms) Completed 200 OK in 125ms (Views: 121.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.151410"], ["updated_at", "2016-04-04 15:39:24.151410"]]  (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", "2016-04-04 15:39:24.152762"], ["updated_at", "2016-04-04 15:39:24.152762"]]  (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.7ms) Completed 200 OK in 4ms (Views: 3.2ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.159214"], ["updated_at", "2016-04-04 15:39:24.159214"]]  (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", "2016-04-04 15:39:24.160485"], ["updated_at", "2016-04-04 15:39:24.160485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.5ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.166952"], ["updated_at", "2016-04-04 15:39:24.166952"]]  (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", "2016-04-04 15:39:24.168236"], ["updated_at", "2016-04-04 15:39:24.168236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"444"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 444]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (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", "2016-04-04 15:39:24.174505"], ["updated_at", "2016-04-04 15:39:24.174505"]]  (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", "2016-04-04 15:39:24.175595"], ["updated_at", "2016-04-04 15:39:24.175595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"446"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 446]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.181424"], ["updated_at", "2016-04-04 15:39:24.181424"]]  (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", "2016-04-04 15:39:24.182528"], ["updated_at", "2016-04-04 15:39:24.182528"]]  (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", "2016-04-04 15:39:24.185814"], ["updated_at", "2016-04-04 15:39:24.185814"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/450 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.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", "2016-04-04 15:39:24.190438"], ["updated_at", "2016-04-04 15:39:24.190438"]]  (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", "2016-04-04 15:39:24.191674"], ["updated_at", "2016-04-04 15:39:24.191674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"451"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 451]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 451]]  (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.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", "2016-04-04 15:39:24.197566"], ["updated_at", "2016-04-04 15:39:24.197566"]]  (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", "2016-04-04 15:39:24.198558"], ["updated_at", "2016-04-04 15:39:24.198558"]]  (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"=>"453"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]  (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", "2016-04-04 15:39:24.201337"], ["id", 453]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/453 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]  (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_employee_instance_has_form_date_instance_variables_for_each_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_nil_dates_raise_no_errors --------------------------------------------  (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_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.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", "2016-04-04 15:39:24.211241"], ["updated_at", "2016-04-04 15:39:24.211241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:39:24.212418"], ["id", 455]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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_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_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_valid_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", "2016-04-04 15:39:24.218622"], ["updated_at", "2016-04-04 15:39:24.218622"]]  (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_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field -------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ---------------------------------------------- EmployeeTest: test_valid_dates_raise_no_errors ----------------------------------------------  (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_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date ------------------------------------------------------------------------------------------  (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_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 ------------------------------------------------------------------------- EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (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", "2016-04-04 15:53:00.165640"], ["updated_at", "2016-04-04 15:53:00.165640"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:53:00.170159"], ["updated_at", "2016-04-04 15:53:00.170159"]]  (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", "2016-04-04 15:53:00.171566"], ["id", 458]]  (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_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_no_argument_error_is_raised_if_parseable_string_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_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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", "2016-04-04 15:53:00.205871"], ["updated_at", "2016-04-04 15:53:00.205871"]]  (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", "2016-04-04 15:53:00.207269"], ["updated_at", "2016-04-04 15:53:00.207269"]]  (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"=>"459"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]  (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", "2016-04-04 15:53:00.212964"], ["id", 459]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/459 Completed 302 Found in 5ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]  (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", "2016-04-04 15:53:00.216549"], ["updated_at", "2016-04-04 15:53:00.216549"]]  (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", "2016-04-04 15:53:00.217649"], ["updated_at", "2016-04-04 15:53:00.217649"]]  (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", "2016-04-04 15:53:00.220564"], ["updated_at", "2016-04-04 15:53:00.220564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/463 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_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", "2016-04-04 15:53:00.224146"], ["updated_at", "2016-04-04 15:53:00.224146"]]  (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", "2016-04-04 15:53:00.225182"], ["updated_at", "2016-04-04 15:53:00.225182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"464"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 464]] Rendered employees/show.html.erb within layouts/application (1.0ms) Completed 200 OK in 123ms (Views: 122.0ms | ActiveRecord: 0.1ms)  (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", "2016-04-04 15:53:00.350643"], ["updated_at", "2016-04-04 15:53:00.350643"]]  (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", "2016-04-04 15:53:00.351965"], ["updated_at", "2016-04-04 15:53:00.351965"]]  (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.6ms) Completed 200 OK in 3ms (Views: 3.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", "2016-04-04 15:53:00.358130"], ["updated_at", "2016-04-04 15:53:00.358130"]]  (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", "2016-04-04 15:53:00.359401"], ["updated_at", "2016-04-04 15:53:00.359401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"468"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 468]] Rendered employees/_form.html.erb (8.5ms) Rendered employees/edit.html.erb within layouts/application (11.3ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms)  (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", "2016-04-04 15:53:00.377534"], ["updated_at", "2016-04-04 15:53:00.377534"]]  (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", "2016-04-04 15:53:00.378745"], ["updated_at", "2016-04-04 15:53:00.378745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"470"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 470]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 470]]  (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.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", "2016-04-04 15:53:00.384001"], ["updated_at", "2016-04-04 15:53:00.384001"]]  (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", "2016-04-04 15:53:00.385217"], ["updated_at", "2016-04-04 15:53:00.385217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"472"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 472]] Rendered employees/_form.html.erb (1.7ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 4.3ms | 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", "2016-04-04 15:53:00.393061"], ["updated_at", "2016-04-04 15:53:00.393061"]]  (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", "2016-04-04 15:53:00.394222"], ["updated_at", "2016-04-04 15:53:00.394222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.5ms) Rendered employees/new.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) 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_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (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_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) 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.5ms) 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", "2016-04-04 15:55:29.700076"], ["updated_at", "2016-04-04 15:55:29.700076"]]  (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", "2016-04-04 15:55:29.704338"], ["updated_at", "2016-04-04 15:55:29.704338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"476"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 476]] Rendered employees/_form.html.erb (8.2ms) Rendered employees/edit.html.erb within layouts/application (11.1ms) Completed 200 OK in 140ms (Views: 134.3ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.849869"], ["updated_at", "2016-04-04 15:55:29.849869"]]  (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", "2016-04-04 15:55:29.852255"], ["updated_at", "2016-04-04 15:55:29.852255"]]  (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"=>"478"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]  (0.2ms) 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", "2016-04-04 15:55:29.856779"], ["id", 478]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/478 Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]  (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", "2016-04-04 15:55:29.861504"], ["updated_at", "2016-04-04 15:55:29.861504"]]  (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", "2016-04-04 15:55:29.862887"], ["updated_at", "2016-04-04 15:55:29.862887"]]  (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.2ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (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", "2016-04-04 15:55:29.869856"], ["updated_at", "2016-04-04 15:55:29.869856"]]  (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", "2016-04-04 15:55:29.871032"], ["updated_at", "2016-04-04 15:55:29.871032"]]  (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", "2016-04-04 15:55:29.874389"], ["updated_at", "2016-04-04 15:55:29.874389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/484 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.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", "2016-04-04 15:55:29.878394"], ["updated_at", "2016-04-04 15:55:29.878394"]]  (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", "2016-04-04 15:55:29.879533"], ["updated_at", "2016-04-04 15:55:29.879533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"485"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 485]] Rendered employees/_form.html.erb (1.8ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 200 OK in 4ms (Views: 3.2ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.888470"], ["updated_at", "2016-04-04 15:55:29.888470"]]  (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", "2016-04-04 15:55:29.889840"], ["updated_at", "2016-04-04 15:55:29.889840"]]  (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 1 [["id", 487]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 3ms (Views: 2.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", "2016-04-04 15:55:29.896451"], ["updated_at", "2016-04-04 15:55:29.896451"]]  (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", "2016-04-04 15:55:29.897641"], ["updated_at", "2016-04-04 15:55:29.897641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"489"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 489]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 489]]  (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_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", "2016-04-04 15:55:29.902651"], ["updated_at", "2016-04-04 15:55:29.902651"]]  (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", "2016-04-04 15:55:29.903758"], ["updated_at", "2016-04-04 15:55:29.903758"]]  (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.5ms) Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (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_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_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.0ms) 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.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", "2016-04-04 15:55:29.917164"], ["updated_at", "2016-04-04 15:55:29.917164"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:55:29.918383"], ["id", 493]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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 ---------------------------------------------------------------------------------------------------------------- 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_argument_error_is_raised_if_unparseable_string_object_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_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.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_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", "2016-04-04 15:55:29.927029"], ["updated_at", "2016-04-04 15:55:29.927029"]]  (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_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (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_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_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 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.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.108157"], ["updated_at", "2016-04-04 15:56:45.108157"]]  (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", "2016-04-04 15:56:45.111073"], ["updated_at", "2016-04-04 15:56:45.111073"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"495"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 495]] Rendered employees/show.html.erb within layouts/application (1.0ms) Completed 200 OK in 109ms (Views: 103.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.224511"], ["updated_at", "2016-04-04 15:56:45.224511"]]  (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", "2016-04-04 15:56:45.225779"], ["updated_at", "2016-04-04 15:56:45.225779"]]  (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", "2016-04-04 15:56:45.228970"], ["updated_at", "2016-04-04 15:56:45.228970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/499 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.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.234532"], ["updated_at", "2016-04-04 15:56:45.234532"]]  (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", "2016-04-04 15:56:45.235697"], ["updated_at", "2016-04-04 15:56:45.235697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"500"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 500]] Rendered employees/_form.html.erb (31.0ms) Rendered employees/edit.html.erb within layouts/application (33.4ms) Completed 200 OK in 36ms (Views: 35.1ms | 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", "2016-04-04 15:56:45.274360"], ["updated_at", "2016-04-04 15:56:45.274360"]]  (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", "2016-04-04 15:56:45.275663"], ["updated_at", "2016-04-04 15:56:45.275663"]]  (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.7ms) Completed 200 OK in 3ms (Views: 3.1ms | 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", "2016-04-04 15:56:45.281976"], ["updated_at", "2016-04-04 15:56:45.281976"]]  (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", "2016-04-04 15:56:45.283056"], ["updated_at", "2016-04-04 15:56:45.283056"]]  (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"=>"504"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 504]]  (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", "2016-04-04 15:56:45.286039"], ["id", 504]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/504 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 504]]  (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", "2016-04-04 15:56:45.289843"], ["updated_at", "2016-04-04 15:56:45.289843"]]  (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", "2016-04-04 15:56:45.291029"], ["updated_at", "2016-04-04 15:56:45.291029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"506"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 506]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 506]]  (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_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", "2016-04-04 15:56:45.296575"], ["updated_at", "2016-04-04 15:56:45.296575"]]  (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", "2016-04-04 15:56:45.297666"], ["updated_at", "2016-04-04 15:56:45.297666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"508"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 508]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)  (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", "2016-04-04 15:56:45.305702"], ["updated_at", "2016-04-04 15:56:45.305702"]]  (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", "2016-04-04 15:56:45.307062"], ["updated_at", "2016-04-04 15:56:45.307062"]]  (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.9ms | ActiveRecord: 0.0ms)  (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.0ms) 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.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", "2016-04-04 15:56:45.317736"], ["updated_at", "2016-04-04 15:56:45.317736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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_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 ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (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_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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_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_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_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", "2016-04-04 15:56:45.329290"], ["updated_at", "2016-04-04 15:56:45.329290"]]  (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", "2016-04-04 15:56:45.330613"], ["id", 513]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (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_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_all_date_parts_to_nil_sets_date_to_nil_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_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ---------------------------------------------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same ----------------------------------------------------------------------------------------------------------------------------------  (0.3ms) 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_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_set_from_date_instantiates_a_nil_object_if_date_is_nil ------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (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.0ms) 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 ------------------------------------------------------- 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 ----------------------------------------------------------- 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_updating_existing_record_with_invalid_dates_is_invalid -------------------------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:29:23.626945"], ["updated_at", "2016-04-05 12:29:23.626945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO 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_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 --------------------------------------------------------------------- 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", "2016-04-05 12:29:23.634069"], ["updated_at", "2016-04-05 12:29:23.634069"]]  (0.1ms) 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", "1965-05-17"], ["updated_at", "2016-04-05 12:29:23.635082"], ["id", 515]]  (0.1ms) RELEASE 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_that_we_can_assign_new_dates_to_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_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_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.0ms) BEGIN ----------------------------------------------------------------- EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------------------------------- EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-04-05 12:29:23.670529"], ["updated_at", "2016-04-05 12:29:23.670529"]]  (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", "2016-04-05 12:29:23.671765"], ["updated_at", "2016-04-05 12:29:23.671765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (6.3ms) Rendered employees/new.html.erb within layouts/application (9.8ms) Completed 200 OK in 129ms (Views: 128.2ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.804200"], ["updated_at", "2016-04-05 12:29:23.804200"]]  (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", "2016-04-05 12:29:23.805485"], ["updated_at", "2016-04-05 12:29:23.805485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"518"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 518]] Rendered employees/show.html.erb within layouts/application (0.8ms) Completed 200 OK in 5ms (Views: 2.4ms | 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", "2016-04-05 12:29:23.813126"], ["updated_at", "2016-04-05 12:29:23.813126"]]  (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", "2016-04-05 12:29:23.814284"], ["updated_at", "2016-04-05 12:29:23.814284"]]  (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", "2016-04-05 12:29:23.817313"], ["updated_at", "2016-04-05 12:29:23.817313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/522 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", "2016-04-05 12:29:23.821044"], ["updated_at", "2016-04-05 12:29:23.821044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-04-05 12:29:23.822266"], ["updated_at", "2016-04-05 12:29:23.822266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"523"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 523]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 523]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees Completed 302 Found in 1ms (ActiveRecord: 0.4ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.827008"], ["updated_at", "2016-04-05 12:29:23.827008"]]  (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", "2016-04-05 12:29:23.828039"], ["updated_at", "2016-04-05 12:29:23.828039"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "2016-04-05 12:29:23.833697"], ["updated_at", "2016-04-05 12:29:23.833697"]]  (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", "2016-04-05 12:29:23.834762"], ["updated_at", "2016-04-05 12:29:23.834762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"527"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 527]] Rendered employees/_form.html.erb (1.5ms) Rendered employees/edit.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)  (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", "2016-04-05 12:29:23.849028"], ["updated_at", "2016-04-05 12:29:23.849028"]]  (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", "2016-04-05 12:29:23.850195"], ["updated_at", "2016-04-05 12:29:23.850195"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"529"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 529]] 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.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", "2016-04-05 12:29:23.855475"], ["updated_at", "2016-04-05 12:29:23.855475"]]  (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", "2016-04-05 12:29:23.856693"], ["updated_at", "2016-04-05 12:29:23.856693"]]  (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"=>"531"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 531]]  (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", "2016-04-05 12:29:23.859463"], ["id", 531]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/531 Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 531]]  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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.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", "2016-04-05 12:30:11.508486"], ["updated_at", "2016-04-05 12:30:11.508486"]]  (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", "2016-04-05 12:30:11.511812"], ["id", 533]]  (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_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_no_argument_error_is_raised_if_parseable_string_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 ----------------------------------------------------------------- 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_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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (0.2ms) 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.2ms) 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_we_can_assign_new_dates_to_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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:30:11.537473"], ["updated_at", "2016-04-05 12:30:11.537473"]]  (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 --------------------------------------------------------------------------------- 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_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_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_one_date_part_leaves_the_rest_unchanged -------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------- EmployeesControllerTest: test_should_get_edit ---------------------------------------------  (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", "2016-04-05 12:30:11.570324"], ["updated_at", "2016-04-05 12:30:11.570324"]]  (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", "2016-04-05 12:30:11.571741"], ["updated_at", "2016-04-05 12:30:11.571741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"535"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 535]] Rendered employees/_form.html.erb (8.3ms) Rendered employees/edit.html.erb within layouts/application (11.2ms) Completed 200 OK in 114ms (Views: 111.3ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.690517"], ["updated_at", "2016-04-05 12:30:11.690517"]]  (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", "2016-04-05 12:30:11.691781"], ["updated_at", "2016-04-05 12:30:11.691781"]]  (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", "2016-04-05 12:30:11.694819"], ["updated_at", "2016-04-05 12:30:11.694819"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/539 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.2ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.4ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (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", "2016-04-05 12:30:11.698766"], ["updated_at", "2016-04-05 12:30:11.698766"]]  (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", "2016-04-05 12:30:11.699805"], ["updated_at", "2016-04-05 12:30:11.699805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.8ms) Completed 200 OK in 3ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (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", "2016-04-05 12:30:11.705909"], ["updated_at", "2016-04-05 12:30:11.705909"]]  (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", "2016-04-05 12:30:11.706975"], ["updated_at", "2016-04-05 12:30:11.706975"]]  (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.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 542]]  (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 1ms (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.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", "2016-04-05 12:30:11.711815"], ["updated_at", "2016-04-05 12:30:11.711815"]]  (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", "2016-04-05 12:30:11.712823"], ["updated_at", "2016-04-05 12:30:11.712823"]]  (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"=>"544"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]  (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", "2016-04-05 12:30:11.715408"], ["id", 544]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/544 Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]  (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", "2016-04-05 12:30:11.718271"], ["updated_at", "2016-04-05 12:30:11.718271"]]  (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", "2016-04-05 12:30:11.719253"], ["updated_at", "2016-04-05 12:30:11.719253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"546"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 546]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.726423"], ["updated_at", "2016-04-05 12:30:11.726423"]]  (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", "2016-04-05 12:30:11.727786"], ["updated_at", "2016-04-05 12:30:11.727786"]]  (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 1 [["id", 548]] Rendered employees/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.2ms | 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", "2016-04-05 12:30:11.734203"], ["updated_at", "2016-04-05 12:30:11.734203"]]  (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", "2016-04-05 12:30:11.735196"], ["updated_at", "2016-04-05 12:30:11.735196"]]  (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.3ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (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_form_hint --------------------------------------------------------  (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_with_error_class_and_message ---------------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.851478"], ["updated_at", "2016-04-05 12:30:33.851478"]]  (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", "2016-04-05 12:30:33.854993"], ["updated_at", "2016-04-05 12:30:33.854993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"552"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 552]] Rendered employees/_form.html.erb (7.8ms) Rendered employees/edit.html.erb within layouts/application (10.5ms) Completed 200 OK in 119ms (Views: 115.8ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.978650"], ["updated_at", "2016-04-05 12:30:33.978650"]]  (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", "2016-04-05 12:30:33.979918"], ["updated_at", "2016-04-05 12:30:33.979918"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.985616"], ["updated_at", "2016-04-05 12:30:33.985616"]]  (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", "2016-04-05 12:30:33.986759"], ["updated_at", "2016-04-05 12:30:33.986759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (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", "2016-04-05 12:30:33.992397"], ["updated_at", "2016-04-05 12:30:33.992397"]]  (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", "2016-04-05 12:30:33.993454"], ["updated_at", "2016-04-05 12:30:33.993454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"558"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 558]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 558]]  (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_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", "2016-04-05 12:30:33.998632"], ["updated_at", "2016-04-05 12:30:33.998632"]]  (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", "2016-04-05 12:30:33.999699"], ["updated_at", "2016-04-05 12:30:33.999699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"560"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 560]] 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.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:34.006573"], ["updated_at", "2016-04-05 12:30:34.006573"]]  (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", "2016-04-05 12:30:34.007672"], ["updated_at", "2016-04-05 12:30:34.007672"]]  (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", "2016-04-05 12:30:34.010363"], ["updated_at", "2016-04-05 12:30:34.010363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/564 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_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", "2016-04-05 12:30:34.014195"], ["updated_at", "2016-04-05 12:30:34.014195"]]  (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", "2016-04-05 12:30:34.015375"], ["updated_at", "2016-04-05 12:30:34.015375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"565"} Employee Load (0.5ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 565]] Rendered employees/show.html.erb within layouts/application (0.6ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)  (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", "2016-04-05 12:30:34.021992"], ["updated_at", "2016-04-05 12:30:34.021992"]]  (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", "2016-04-05 12:30:34.022958"], ["updated_at", "2016-04-05 12:30:34.022958"]]  (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"=>"567"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]  (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", "2016-04-05 12:30:34.025506"], ["id", 567]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/567 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]  (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_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_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.0ms) BEGIN ----------------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_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.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_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", "2016-04-05 12:30:34.035999"], ["updated_at", "2016-04-05 12:30:34.035999"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 12:30:34.037082"], ["id", 569]]  (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_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.0ms) 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_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_form_population_values_can_be_extracted_from_the_date_field -----------------------------------------------------------------------------------  (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_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_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_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", "2016-04-05 12:30:34.046036"], ["updated_at", "2016-04-05 12:30:34.046036"]]  (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.0ms) BEGIN ---------------------------------------------------------------------------------------------- EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field ----------------------------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.4ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.3ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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.2ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------- GovUkDateFieldsTest: test_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (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_legend_class -----------------------------------------------------------  (0.2ms) 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 ActiveRecord::SchemaMigration Load (0.3ms) 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_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_with_id ------------------------------------------  (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_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ----------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_legend_class -----------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.641664"], ["updated_at", "2016-04-05 13:15:01.641664"]]  (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", "2016-04-05 13:15:01.645888"], ["updated_at", "2016-04-05 13:15:01.645888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"571"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 571]] Rendered employees/_form.html.erb (8.2ms) Rendered employees/edit.html.erb within layouts/application (11.1ms) Completed 200 OK in 118ms (Views: 114.3ms | ActiveRecord: 0.2ms)  (0.3ms) 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", "2016-04-05 13:15:01.768289"], ["updated_at", "2016-04-05 13:15:01.768289"]]  (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", "2016-04-05 13:15:01.769567"], ["updated_at", "2016-04-05 13:15:01.769567"]]  (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"=>"573"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]  (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", "2016-04-05 13:15:01.772425"], ["id", 573]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/573 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]  (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", "2016-04-05 13:15:01.776274"], ["updated_at", "2016-04-05 13:15:01.776274"]]  (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", "2016-04-05 13:15:01.777387"], ["updated_at", "2016-04-05 13:15:01.777387"]]  (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.4ms) Completed 200 OK in 3ms (Views: 2.8ms | 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", "2016-04-05 13:15:01.782929"], ["updated_at", "2016-04-05 13:15:01.782929"]]  (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", "2016-04-05 13:15:01.784002"], ["updated_at", "2016-04-05 13:15:01.784002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"577"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 577]] 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_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", "2016-04-05 13:15:01.790999"], ["updated_at", "2016-04-05 13:15:01.790999"]]  (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", "2016-04-05 13:15:01.792158"], ["updated_at", "2016-04-05 13:15:01.792158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"579"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 579]] Rendered employees/show.html.erb within layouts/application (0.5ms) Completed 200 OK in 3ms (Views: 2.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", "2016-04-05 13:15:01.797158"], ["updated_at", "2016-04-05 13:15:01.797158"]]  (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", "2016-04-05 13:15:01.798234"], ["updated_at", "2016-04-05 13:15:01.798234"]]  (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", "2016-04-05 13:15:01.801053"], ["updated_at", "2016-04-05 13:15:01.801053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/583 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.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", "2016-04-05 13:15:01.805018"], ["updated_at", "2016-04-05 13:15:01.805018"]]  (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", "2016-04-05 13:15:01.806232"], ["updated_at", "2016-04-05 13:15:01.806232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"584"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 584]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 584]]  (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_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", "2016-04-05 13:15:01.811958"], ["updated_at", "2016-04-05 13:15:01.811958"]]  (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", "2016-04-05 13:15:01.812896"], ["updated_at", "2016-04-05 13:15:01.812896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.3ms) Rendered employees/new.html.erb within layouts/application (1.7ms) Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (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_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_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_placeholder_output_without_fieldset -------------------------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (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_creating_a_new_employee_with_invalid_dates_is_invalid ------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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_createing_a_new_employee_with_valid_dates_is_valid ---------------------------------------------------------------------  (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_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_employee_class_responds_to_acts_as_gov_uk_date -----------------------------------------------------------------  (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", "2016-04-05 13:15:01.833296"], ["updated_at", "2016-04-05 13:15:01.833296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 13:15:01.834414"], ["id", 588]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "2016-04-05 13:15:01.836723"], ["updated_at", "2016-04-05 13:15:01.836723"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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_invalid_day_raises_error -------------------------------------------  (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_nil_dates_raise_no_errors --------------------------------------------  (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 ------------------------------------------------------------------------------- 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_all_date_parts_to_nil_sets_date_to_nil_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_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_set_from_date_instantiates_the_attribute_and_is_valid -----------------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN -------------------------------------------------- EmployeesControllerTest: test_should_show_employee --------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:29:42.320754"], ["updated_at", "2016-04-12 10:29:42.320754"]]  (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", "2016-04-12 10:29:42.327231"], ["updated_at", "2016-04-12 10:29:42.327231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"590"} Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 590]] Rendered employees/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 123ms (Views: 115.4ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:29:42.456356"], ["updated_at", "2016-04-12 10:29:42.456356"]]  (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", "2016-04-12 10:29:42.457617"], ["updated_at", "2016-04-12 10:29:42.457617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"592"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 592]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 592]]  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:29:42.462860"], ["updated_at", "2016-04-12 10:29:42.462860"]]  (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", "2016-04-12 10:29:42.464199"], ["updated_at", "2016-04-12 10:29:42.464199"]]  (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"=>"594"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 594]]  (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", "2016-04-12 10:29:42.467173"], ["id", 594]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/594 Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 594]]  (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", "2016-04-12 10:29:42.471050"], ["updated_at", "2016-04-12 10:29:42.471050"]]  (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", "2016-04-12 10:29:42.472114"], ["updated_at", "2016-04-12 10:29:42.472114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"596"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 596]] Rendered employees/_form.html.erb (13.1ms) Rendered employees/edit.html.erb within layouts/application (17.0ms) Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.1ms)  (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", "2016-04-12 10:29:42.503312"], ["updated_at", "2016-04-12 10:29:42.503312"]]  (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", "2016-04-12 10:29:42.504588"], ["updated_at", "2016-04-12 10:29:42.504588"]]  (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.8ms) Completed 200 OK in 4ms (Views: 3.6ms | 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", "2016-04-12 10:29:42.511117"], ["updated_at", "2016-04-12 10:29:42.511117"]]  (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", "2016-04-12 10:29:42.512280"], ["updated_at", "2016-04-12 10:29:42.512280"]]  (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", "2016-04-12 10:29:42.515047"], ["updated_at", "2016-04-12 10:29:42.515047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/602 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (1.9ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1  (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", "2016-04-12 10:29:42.520754"], ["updated_at", "2016-04-12 10:29:42.520754"]]  (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", "2016-04-12 10:29:42.521949"], ["updated_at", "2016-04-12 10:29:42.521949"]]  (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 1 [["id", 603]] 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.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", "2016-04-12 10:29:42.527611"], ["updated_at", "2016-04-12 10:29:42.527611"]]  (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", "2016-04-12 10:29:42.528697"], ["updated_at", "2016-04-12 10:29:42.528697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (2.6ms) Rendered employees/new.html.erb within layouts/application (3.5ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (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_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_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_nil_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_class_responds_to_acts_as_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_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_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_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", "2016-04-12 10:29:42.548288"], ["updated_at", "2016-04-12 10:29:42.548288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-12 10:29:42.549479"], ["id", 607]]  (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.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_new_dates_can_be_populated_from_the_form -----------------------------------------------------------  (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.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", "2016-04-12 10:29:42.553568"], ["updated_at", "2016-04-12 10:29:42.553568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------- GovUkDateFieldsTest: test_squash_html -------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (0.2ms) ROLLBACK  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) 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_error_raised_if_invalid_options_given ---------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ------------------------------------------ GovUkDateFieldsTest: test_fieldset_with_id ------------------------------------------  (0.1ms) ROLLBACK  (0.1ms) BEGIN -------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_output_with_form_hint --------------------------------------------------------  (0.1ms) ROLLBACK  (0.2ms) BEGIN --------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class ---------------------------------------------------------------------------------  (0.2ms) 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.0ms) 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.0ms) 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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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_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_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 -------------------------------------------------------------- EmployeesControllerTest: test_should_render_gov_uk_date_fields --------------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:42:18.562983"], ["updated_at", "2016-04-12 10:42:18.562983"]]  (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", "2016-04-12 10:42:18.566379"], ["updated_at", "2016-04-12 10:42:18.566379"]]  (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 1 [["id", 609]] Rendered employees/_form.html.erb (8.3ms) Rendered employees/edit.html.erb within layouts/application (10.9ms) Completed 200 OK in 122ms (Views: 118.4ms | ActiveRecord: 0.2ms)  (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", "2016-04-12 10:42:18.695057"], ["updated_at", "2016-04-12 10:42:18.695057"]]  (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", "2016-04-12 10:42:18.696245"], ["updated_at", "2016-04-12 10:42:18.696245"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"611"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 611]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 611]]  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:42:18.701922"], ["updated_at", "2016-04-12 10:42:18.701922"]]  (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", "2016-04-12 10:42:18.703424"], ["updated_at", "2016-04-12 10:42:18.703424"]]  (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"=>"613"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 613]]  (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", "2016-04-12 10:42:18.706994"], ["id", 613]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/613 Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 613]]  (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", "2016-04-12 10:42:18.710800"], ["updated_at", "2016-04-12 10:42:18.710800"]]  (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", "2016-04-12 10:42:18.711775"], ["updated_at", "2016-04-12 10:42:18.711775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (1.4ms) Rendered employees/new.html.erb within layouts/application (1.9ms) Completed 200 OK in 4ms (Views: 3.4ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-12 10:42:18.717718"], ["updated_at", "2016-04-12 10:42:18.717718"]]  (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", "2016-04-12 10:42:18.718797"], ["updated_at", "2016-04-12 10:42:18.718797"]]  (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.4ms) Completed 200 OK in 3ms (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.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", "2016-04-12 10:42:18.724191"], ["updated_at", "2016-04-12 10:42:18.724191"]]  (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", "2016-04-12 10:42:18.725221"], ["updated_at", "2016-04-12 10:42:18.725221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"619"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 619]] Rendered employees/_form.html.erb (1.4ms) Rendered employees/edit.html.erb within layouts/application (1.6ms) Completed 200 OK in 3ms (Views: 2.4ms | 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", "2016-04-12 10:42:18.730658"], ["updated_at", "2016-04-12 10:42:18.730658"]]  (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", "2016-04-12 10:42:18.731885"], ["updated_at", "2016-04-12 10:42:18.731885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"621"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 621]] Rendered employees/show.html.erb within layouts/application (1.4ms) Completed 200 OK in 4ms (Views: 2.9ms | 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", "2016-04-12 10:42:18.738046"], ["updated_at", "2016-04-12 10:42:18.738046"]]  (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", "2016-04-12 10:42:18.739164"], ["updated_at", "2016-04-12 10:42:18.739164"]]  (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", "2016-04-12 10:42:18.741667"], ["updated_at", "2016-04-12 10:42:18.741667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/625 Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (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 ------------------------------------------------------- GovUkDateFieldsTest: test_basic_output_without_fieldset -------------------------------------------------------  (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.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_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_with_error_class_and_message ---------------------------------------------------------------  (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.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.1ms) BEGIN -------------------------------------------------------------------------- EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) 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", "2016-04-12 10:42:18.755954"], ["updated_at", "2016-04-12 10:42:18.755954"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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.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", "2016-04-12 10:42:18.757863"], ["updated_at", "2016-04-12 10:42:18.757863"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-12 10:42:18.758797"], ["id", 627]]  (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.0ms) BEGIN ------------------------------------------- EmployeeTest: test_invalid_day_raises_error -------------------------------------------  (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_valid_dates_raise_no_errors ----------------------------------------------  (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_nil_dates_raise_no_errors --------------------------------------------  (0.1ms) ROLLBACK  (0.0ms) BEGIN ----------------------------------------------------------- EmployeeTest: test_that_nil_can_be_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 ActiveRecord::SchemaMigration Load (2.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.2ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) BEGIN --------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_message ---------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) BEGIN ------------------------------------------------------------------------------- GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages -------------------------------------------------------------------------------  (0.1ms) ROLLBACK ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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_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.0ms) BEGIN ----------------------------------------------------------------------------------------- GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_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_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid -----------------------------------------------------------------------------------------------  (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_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 (2.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", "2016-04-29 08:57:00.194956"], ["updated_at", "2016-04-29 08:57:00.194956"]]  (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", "2016-04-29 08:57:00.209064"], ["id", 628]]  (0.1ms) RELEASE 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_nil_dates_raise_no_errors --------------------------------------------  (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_employee_has_class_variable_describing_all_gov_uk_dates --------------------------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-29 08:57:00.218586"], ["updated_at", "2016-04-29 08:57:00.218586"]]  (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_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_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_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_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.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_form_hint --------------------------------------------------------  (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_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_fieldset_with_error_class_and_message ---------------------------------------------------------------  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-29 08:57:00.279199"], ["updated_at", "2016-04-29 08:57:00.279199"]]  (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", "2016-04-29 08:57:00.280771"], ["updated_at", "2016-04-29 08:57:00.280771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#show as HTML Parameters: {"id"=>"630"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 630]] Rendered employees/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 117ms (Views: 113.7ms | 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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-29 08:57:00.402428"], ["updated_at", "2016-04-29 08:57:00.402428"]]  (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", "2016-04-29 08:57:00.403674"], ["updated_at", "2016-04-29 08:57:00.403674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#index as HTML Employee Load (0.9ms) SELECT "employees".* FROM "employees" Rendered employees/index.html.erb within layouts/application (3.2ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.9ms)  (0.2ms) 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", "2016-04-29 08:57:00.412398"], ["updated_at", "2016-04-29 08:57:00.412398"]]  (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", "2016-04-29 08:57:00.413542"], ["updated_at", "2016-04-29 08:57:00.413542"]]  (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", "2016-04-29 08:57:00.416530"], ["updated_at", "2016-04-29 08:57:00.416530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/636 Completed 302 Found in 2ms (ActiveRecord: 0.3ms)  (0.1ms) SELECT COUNT(*) FROM "employees"  (0.1ms) SELECT COUNT(*) FROM "employees" Employee Load (0.8ms) 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.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", "2016-04-29 08:57:00.420961"], ["updated_at", "2016-04-29 08:57:00.420961"]]  (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", "2016-04-29 08:57:00.422130"], ["updated_at", "2016-04-29 08:57:00.422130"]]  (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"=>"637"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 637]]  (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", "2016-04-29 08:57:00.425159"], ["id", 637]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/employees/637 Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 637]]  (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", "2016-04-29 08:57:00.428691"], ["updated_at", "2016-04-29 08:57:00.428691"]]  (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", "2016-04-29 08:57:00.429771"], ["updated_at", "2016-04-29 08:57:00.429771"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#new as HTML Rendered employees/_form.html.erb (8.3ms) Rendered employees/new.html.erb within layouts/application (11.8ms) Completed 200 OK in 14ms (Views: 13.9ms | 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", "2016-04-29 08:57:00.446611"], ["updated_at", "2016-04-29 08:57:00.446611"]]  (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", "2016-04-29 08:57:00.447916"], ["updated_at", "2016-04-29 08:57:00.447916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"641"} Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 641]] Rendered employees/_form.html.erb (1.6ms) Rendered employees/edit.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-29 08:57:00.465018"], ["updated_at", "2016-04-29 08:57:00.465018"]]  (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", "2016-04-29 08:57:00.466228"], ["updated_at", "2016-04-29 08:57:00.466228"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "employees" Processing by EmployeesController#destroy as HTML Parameters: {"id"=>"643"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 643]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 643]]  (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", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-29 08:57:00.471347"], ["updated_at", "2016-04-29 08:57:00.471347"]]  (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", "2016-04-29 08:57:00.472497"], ["updated_at", "2016-04-29 08:57:00.472497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by EmployeesController#edit as HTML Parameters: {"id"=>"645"} Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 645]] 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.1ms)  (0.1ms) ROLLBACK