(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