gov_uk_date_fields 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7784,3 +7784,2033 @@ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_dat
7784
7784
  GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
7785
7785
  ---------------------------------------------------------------------------------
7786
7786
   (0.1ms) ROLLBACK
7787
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7788
+  (0.2ms) BEGIN
7789
+ -------------------------------------------------------------
7790
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7791
+ -------------------------------------------------------------
7792
+  (0.2ms) ROLLBACK
7793
+  (0.1ms) BEGIN
7794
+ -------------------------------------
7795
+ GovUkDateFieldsTest: test_squash_html
7796
+ -------------------------------------
7797
+  (0.1ms) ROLLBACK
7798
+  (0.1ms) BEGIN
7799
+ ---------------------------------------------------------------
7800
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
7801
+ ---------------------------------------------------------------
7802
+  (0.2ms) ROLLBACK
7803
+  (0.1ms) BEGIN
7804
+ -------------------------------------------------------
7805
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7806
+ -------------------------------------------------------
7807
+  (0.1ms) ROLLBACK
7808
+  (0.1ms) BEGIN
7809
+ ---------------------------------------------------------------
7810
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7811
+ ---------------------------------------------------------------
7812
+  (0.1ms) ROLLBACK
7813
+  (0.1ms) BEGIN
7814
+ ------------------------------------------
7815
+ GovUkDateFieldsTest: test_fieldset_with_id
7816
+ ------------------------------------------
7817
+  (0.1ms) ROLLBACK
7818
+  (0.1ms) BEGIN
7819
+ --------------------------------------------------------
7820
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7821
+ --------------------------------------------------------
7822
+  (0.1ms) ROLLBACK
7823
+  (0.1ms) BEGIN
7824
+ -----------------------------------------------------------
7825
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7826
+ -----------------------------------------------------------
7827
+  (0.1ms) ROLLBACK
7828
+  (0.1ms) BEGIN
7829
+ ---------------------------------------------------------------------
7830
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
7831
+ ---------------------------------------------------------------------
7832
+  (0.1ms) SAVEPOINT active_record_1
7833
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:28:11.614253"], ["updated_at", "2016-04-04 15:28:11.614253"]]
7834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7835
+  (0.1ms) SAVEPOINT active_record_1
7836
+ SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:28:11.619037"], ["id", 381]]
7837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7838
+  (0.1ms) ROLLBACK
7839
+  (0.1ms) BEGIN
7840
+ -----------------------------------------------------------------------------------
7841
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
7842
+ -----------------------------------------------------------------------------------
7843
+  (0.1ms) ROLLBACK
7844
+  (0.1ms) BEGIN
7845
+ -------------------------------------------------------------------------------------------------------------------
7846
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
7847
+ -------------------------------------------------------------------------------------------------------------------
7848
+  (0.1ms) ROLLBACK
7849
+  (0.1ms) BEGIN
7850
+ -------------------------------------------
7851
+ EmployeeTest: test_invalid_day_raises_error
7852
+ -------------------------------------------
7853
+  (0.1ms) ROLLBACK
7854
+  (0.1ms) BEGIN
7855
+ --------------------------------------------------------------------------
7856
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
7857
+ --------------------------------------------------------------------------
7858
+  (0.1ms) ROLLBACK
7859
+  (0.1ms) BEGIN
7860
+ -----------------------------------------------------------------
7861
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
7862
+ -----------------------------------------------------------------
7863
+  (0.1ms) ROLLBACK
7864
+  (0.1ms) BEGIN
7865
+ ----------------------------------------------------------------------------------------------
7866
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
7867
+ ----------------------------------------------------------------------------------------------
7868
+  (0.1ms) ROLLBACK
7869
+  (0.1ms) BEGIN
7870
+ ----------------------------------------------------------------------------------------------------------------
7871
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
7872
+ ----------------------------------------------------------------------------------------------------------------
7873
+  (0.1ms) ROLLBACK
7874
+  (0.1ms) BEGIN
7875
+ --------------------------------------------
7876
+ EmployeeTest: test_nil_dates_raise_no_errors
7877
+ --------------------------------------------
7878
+  (0.8ms) ROLLBACK
7879
+  (0.1ms) BEGIN
7880
+ ------------------------------------------------------------------------------------------
7881
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
7882
+ ------------------------------------------------------------------------------------------
7883
+  (0.1ms) ROLLBACK
7884
+  (0.1ms) BEGIN
7885
+ -----------------------------------------------------------
7886
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
7887
+ -----------------------------------------------------------
7888
+  (0.1ms) ROLLBACK
7889
+  (0.1ms) BEGIN
7890
+ ---------------------------------------------------------------------
7891
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
7892
+ ---------------------------------------------------------------------
7893
+  (0.1ms) ROLLBACK
7894
+  (0.1ms) BEGIN
7895
+ ----------------------------------------------
7896
+ EmployeeTest: test_valid_dates_raise_no_errors
7897
+ ----------------------------------------------
7898
+  (0.1ms) ROLLBACK
7899
+  (0.1ms) BEGIN
7900
+ ---------------------------------------------------------------------------------------------------------
7901
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
7902
+ ---------------------------------------------------------------------------------------------------------
7903
+  (0.1ms) ROLLBACK
7904
+  (0.1ms) BEGIN
7905
+ ------------------------------------------------------------------------
7906
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
7907
+ ------------------------------------------------------------------------
7908
+  (0.1ms) ROLLBACK
7909
+  (0.1ms) BEGIN
7910
+ -----------------------------------------------------------
7911
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
7912
+ -----------------------------------------------------------
7913
+  (0.1ms) ROLLBACK
7914
+  (0.1ms) BEGIN
7915
+ -----------------------------------------------------------------------
7916
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
7917
+ -----------------------------------------------------------------------
7918
+  (0.1ms) ROLLBACK
7919
+  (0.0ms) BEGIN
7920
+ -------------------------------------------------------------------------
7921
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
7922
+ -------------------------------------------------------------------------
7923
+  (0.1ms) SAVEPOINT active_record_1
7924
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:28:11.637220"], ["updated_at", "2016-04-04 15:28:11.637220"]]
7925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7926
+  (0.0ms) SAVEPOINT active_record_1
7927
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
7928
+  (0.1ms) ROLLBACK
7929
+  (0.1ms) BEGIN
7930
+ ----------------------------------------------------------------------------------------------------------------------------------
7931
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
7932
+ ----------------------------------------------------------------------------------------------------------------------------------
7933
+  (0.1ms) ROLLBACK
7934
+  (0.1ms) BEGIN
7935
+ ---------------------------------------------------------------------------------
7936
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
7937
+ ---------------------------------------------------------------------------------
7938
+  (0.1ms) ROLLBACK
7939
+  (0.1ms) BEGIN
7940
+ -----------------------------------------------------------------------------------------
7941
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
7942
+ -----------------------------------------------------------------------------------------
7943
+  (0.1ms) ROLLBACK
7944
+  (0.0ms) BEGIN
7945
+ ---------------------------------------------------------------------------------
7946
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
7947
+ ---------------------------------------------------------------------------------
7948
+  (0.1ms) ROLLBACK
7949
+  (0.1ms) BEGIN
7950
+ -------------------------------------------------------------------------------
7951
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
7952
+ -------------------------------------------------------------------------------
7953
+  (0.1ms) ROLLBACK
7954
+  (0.1ms) BEGIN
7955
+ ------------------------------------------------------------------------------------------
7956
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
7957
+ ------------------------------------------------------------------------------------------
7958
+  (0.1ms) ROLLBACK
7959
+  (0.0ms) BEGIN
7960
+ -----------------------------------------------------------------------------------------------
7961
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
7962
+ -----------------------------------------------------------------------------------------------
7963
+  (0.1ms) ROLLBACK
7964
+  (0.1ms) BEGIN
7965
+ ----------------------------------------------
7966
+ EmployeesControllerTest: test_should_get_index
7967
+ ----------------------------------------------
7968
+  (0.1ms) SAVEPOINT active_record_1
7969
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.673346"], ["updated_at", "2016-04-04 15:28:11.673346"]]
7970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7971
+  (0.1ms) SAVEPOINT active_record_1
7972
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.674718"], ["updated_at", "2016-04-04 15:28:11.674718"]]
7973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7974
+ Processing by EmployeesController#index as HTML
7975
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
7976
+ Rendered employees/index.html.erb within layouts/application (2.9ms)
7977
+ Completed 200 OK in 125ms (Views: 124.3ms | ActiveRecord: 0.2ms)
7978
+  (0.2ms) ROLLBACK
7979
+  (0.1ms) BEGIN
7980
+ --------------------------------------------------------------
7981
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
7982
+ --------------------------------------------------------------
7983
+  (0.1ms) SAVEPOINT active_record_1
7984
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.803767"], ["updated_at", "2016-04-04 15:28:11.803767"]]
7985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7986
+  (0.1ms) SAVEPOINT active_record_1
7987
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.805087"], ["updated_at", "2016-04-04 15:28:11.805087"]]
7988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7989
+ Processing by EmployeesController#edit as HTML
7990
+ Parameters: {"id"=>"385"}
7991
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 385]]
7992
+ Rendered employees/_form.html.erb (7.9ms)
7993
+ Rendered employees/edit.html.erb within layouts/application (12.0ms)
7994
+ Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.2ms)
7995
+  (0.1ms) ROLLBACK
7996
+  (0.1ms) BEGIN
7997
+ --------------------------------------------
7998
+ EmployeesControllerTest: test_should_get_new
7999
+ --------------------------------------------
8000
+  (0.1ms) SAVEPOINT active_record_1
8001
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.826139"], ["updated_at", "2016-04-04 15:28:11.826139"]]
8002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8003
+  (0.1ms) SAVEPOINT active_record_1
8004
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.827412"], ["updated_at", "2016-04-04 15:28:11.827412"]]
8005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8006
+ Processing by EmployeesController#new as HTML
8007
+ Rendered employees/_form.html.erb (1.5ms)
8008
+ Rendered employees/new.html.erb within layouts/application (1.9ms)
8009
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
8010
+  (0.1ms) ROLLBACK
8011
+  (0.1ms) BEGIN
8012
+ ----------------------------------------------------
8013
+ EmployeesControllerTest: test_should_update_employee
8014
+ ----------------------------------------------------
8015
+  (0.1ms) SAVEPOINT active_record_1
8016
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.833857"], ["updated_at", "2016-04-04 15:28:11.833857"]]
8017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8018
+  (0.1ms) SAVEPOINT active_record_1
8019
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.835022"], ["updated_at", "2016-04-04 15:28:11.835022"]]
8020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8021
+ Processing by EmployeesController#update as HTML
8022
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"389"}
8023
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]
8024
+  (0.1ms) SAVEPOINT active_record_1
8025
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:28:11.838036"], ["id", 389]]
8026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8027
+ Redirected to http://test.host/employees/389
8028
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
8029
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]
8030
+  (0.1ms) ROLLBACK
8031
+  (0.1ms) BEGIN
8032
+ ---------------------------------------------
8033
+ EmployeesControllerTest: test_should_get_edit
8034
+ ---------------------------------------------
8035
+  (0.1ms) SAVEPOINT active_record_1
8036
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.841750"], ["updated_at", "2016-04-04 15:28:11.841750"]]
8037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8038
+  (0.1ms) SAVEPOINT active_record_1
8039
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.842941"], ["updated_at", "2016-04-04 15:28:11.842941"]]
8040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8041
+ Processing by EmployeesController#edit as HTML
8042
+ Parameters: {"id"=>"391"}
8043
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 391]]
8044
+ Rendered employees/_form.html.erb (1.5ms)
8045
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
8046
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
8047
+  (0.1ms) ROLLBACK
8048
+  (0.1ms) BEGIN
8049
+ ----------------------------------------------------
8050
+ EmployeesControllerTest: test_should_create_employee
8051
+ ----------------------------------------------------
8052
+  (0.1ms) SAVEPOINT active_record_1
8053
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.849806"], ["updated_at", "2016-04-04 15:28:11.849806"]]
8054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8055
+  (0.1ms) SAVEPOINT active_record_1
8056
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.850983"], ["updated_at", "2016-04-04 15:28:11.850983"]]
8057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8058
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8059
+ Processing by EmployeesController#create as HTML
8060
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
8061
+  (0.1ms) SAVEPOINT active_record_1
8062
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:28:11.854126"], ["updated_at", "2016-04-04 15:28:11.854126"]]
8063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8064
+ Redirected to http://test.host/employees/395
8065
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
8066
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8067
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8068
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
8069
+  (0.1ms) ROLLBACK
8070
+  (0.1ms) BEGIN
8071
+ --------------------------------------------------
8072
+ EmployeesControllerTest: test_should_show_employee
8073
+ --------------------------------------------------
8074
+  (0.1ms) SAVEPOINT active_record_1
8075
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.858102"], ["updated_at", "2016-04-04 15:28:11.858102"]]
8076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8077
+  (0.1ms) SAVEPOINT active_record_1
8078
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.859103"], ["updated_at", "2016-04-04 15:28:11.859103"]]
8079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8080
+ Processing by EmployeesController#show as HTML
8081
+ Parameters: {"id"=>"396"}
8082
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 396]]
8083
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
8084
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
8085
+  (0.1ms) ROLLBACK
8086
+  (0.1ms) BEGIN
8087
+ -----------------------------------------------------
8088
+ EmployeesControllerTest: test_should_destroy_employee
8089
+ -----------------------------------------------------
8090
+  (0.1ms) SAVEPOINT active_record_1
8091
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.864558"], ["updated_at", "2016-04-04 15:28:11.864558"]]
8092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8093
+  (0.1ms) SAVEPOINT active_record_1
8094
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.865737"], ["updated_at", "2016-04-04 15:28:11.865737"]]
8095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8096
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8097
+ Processing by EmployeesController#destroy as HTML
8098
+ Parameters: {"id"=>"398"}
8099
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 398]]
8100
+  (0.1ms) SAVEPOINT active_record_1
8101
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 398]]
8102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8103
+ Redirected to http://test.host/employees
8104
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
8105
+  (0.3ms) SELECT COUNT(*) FROM "employees"
8106
+  (0.2ms) ROLLBACK
8107
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8108
+  (0.2ms) BEGIN
8109
+ ---------------------------------------------
8110
+ EmployeesControllerTest: test_should_get_edit
8111
+ ---------------------------------------------
8112
+  (0.2ms) SAVEPOINT active_record_1
8113
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.053258"], ["updated_at", "2016-04-04 15:33:47.053258"]]
8114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8115
+  (0.1ms) SAVEPOINT active_record_1
8116
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.056327"], ["updated_at", "2016-04-04 15:33:47.056327"]]
8117
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8118
+ Processing by EmployeesController#edit as HTML
8119
+ Parameters: {"id"=>"400"}
8120
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 400]]
8121
+ Rendered employees/_form.html.erb (8.0ms)
8122
+ Rendered employees/edit.html.erb within layouts/application (10.7ms)
8123
+ Completed 200 OK in 140ms (Views: 134.8ms | ActiveRecord: 0.2ms)
8124
+  (0.2ms) ROLLBACK
8125
+  (0.1ms) BEGIN
8126
+ --------------------------------------------------------------
8127
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
8128
+ --------------------------------------------------------------
8129
+  (0.1ms) SAVEPOINT active_record_1
8130
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.200936"], ["updated_at", "2016-04-04 15:33:47.200936"]]
8131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8132
+  (0.1ms) SAVEPOINT active_record_1
8133
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.202386"], ["updated_at", "2016-04-04 15:33:47.202386"]]
8134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8135
+ Processing by EmployeesController#edit as HTML
8136
+ Parameters: {"id"=>"402"}
8137
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 402]]
8138
+ Rendered employees/_form.html.erb (1.6ms)
8139
+ Rendered employees/edit.html.erb within layouts/application (1.9ms)
8140
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
8141
+  (0.2ms) ROLLBACK
8142
+  (0.1ms) BEGIN
8143
+ -----------------------------------------------------
8144
+ EmployeesControllerTest: test_should_destroy_employee
8145
+ -----------------------------------------------------
8146
+  (0.1ms) SAVEPOINT active_record_1
8147
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.211302"], ["updated_at", "2016-04-04 15:33:47.211302"]]
8148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8149
+  (0.1ms) SAVEPOINT active_record_1
8150
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.212618"], ["updated_at", "2016-04-04 15:33:47.212618"]]
8151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8152
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8153
+ Processing by EmployeesController#destroy as HTML
8154
+ Parameters: {"id"=>"404"}
8155
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 404]]
8156
+  (0.1ms) SAVEPOINT active_record_1
8157
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 404]]
8158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8159
+ Redirected to http://test.host/employees
8160
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
8161
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8162
+  (0.1ms) ROLLBACK
8163
+  (0.1ms) BEGIN
8164
+ ----------------------------------------------------
8165
+ EmployeesControllerTest: test_should_create_employee
8166
+ ----------------------------------------------------
8167
+  (0.1ms) SAVEPOINT active_record_1
8168
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.219359"], ["updated_at", "2016-04-04 15:33:47.219359"]]
8169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8170
+  (0.1ms) SAVEPOINT active_record_1
8171
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.220575"], ["updated_at", "2016-04-04 15:33:47.220575"]]
8172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8173
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8174
+ Processing by EmployeesController#create as HTML
8175
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
8176
+  (0.1ms) SAVEPOINT active_record_1
8177
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:33:47.223733"], ["updated_at", "2016-04-04 15:33:47.223733"]]
8178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8179
+ Redirected to http://test.host/employees/408
8180
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
8181
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8182
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8183
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
8184
+  (0.1ms) ROLLBACK
8185
+  (0.1ms) BEGIN
8186
+ --------------------------------------------------
8187
+ EmployeesControllerTest: test_should_show_employee
8188
+ --------------------------------------------------
8189
+  (0.1ms) SAVEPOINT active_record_1
8190
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.227681"], ["updated_at", "2016-04-04 15:33:47.227681"]]
8191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8192
+  (0.1ms) SAVEPOINT active_record_1
8193
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.228787"], ["updated_at", "2016-04-04 15:33:47.228787"]]
8194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8195
+ Processing by EmployeesController#show as HTML
8196
+ Parameters: {"id"=>"409"}
8197
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 409]]
8198
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
8199
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
8200
+  (0.1ms) ROLLBACK
8201
+  (0.1ms) BEGIN
8202
+ ----------------------------------------------
8203
+ EmployeesControllerTest: test_should_get_index
8204
+ ----------------------------------------------
8205
+  (0.1ms) SAVEPOINT active_record_1
8206
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.234249"], ["updated_at", "2016-04-04 15:33:47.234249"]]
8207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8208
+  (0.1ms) SAVEPOINT active_record_1
8209
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.235571"], ["updated_at", "2016-04-04 15:33:47.235571"]]
8210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8211
+ Processing by EmployeesController#index as HTML
8212
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
8213
+ Rendered employees/index.html.erb within layouts/application (1.7ms)
8214
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
8215
+  (0.1ms) ROLLBACK
8216
+  (0.1ms) BEGIN
8217
+ --------------------------------------------
8218
+ EmployeesControllerTest: test_should_get_new
8219
+ --------------------------------------------
8220
+  (0.1ms) SAVEPOINT active_record_1
8221
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.242788"], ["updated_at", "2016-04-04 15:33:47.242788"]]
8222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8223
+  (0.1ms) SAVEPOINT active_record_1
8224
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.243980"], ["updated_at", "2016-04-04 15:33:47.243980"]]
8225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8226
+ Processing by EmployeesController#new as HTML
8227
+ Rendered employees/_form.html.erb (1.5ms)
8228
+ Rendered employees/new.html.erb within layouts/application (2.0ms)
8229
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
8230
+  (0.1ms) ROLLBACK
8231
+  (0.1ms) BEGIN
8232
+ ----------------------------------------------------
8233
+ EmployeesControllerTest: test_should_update_employee
8234
+ ----------------------------------------------------
8235
+  (0.1ms) SAVEPOINT active_record_1
8236
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.249951"], ["updated_at", "2016-04-04 15:33:47.249951"]]
8237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8238
+  (0.1ms) SAVEPOINT active_record_1
8239
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.250997"], ["updated_at", "2016-04-04 15:33:47.250997"]]
8240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8241
+ Processing by EmployeesController#update as HTML
8242
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"415"}
8243
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]
8244
+  (0.1ms) SAVEPOINT active_record_1
8245
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:33:47.253956"], ["id", 415]]
8246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8247
+ Redirected to http://test.host/employees/415
8248
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
8249
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]
8250
+  (0.1ms) ROLLBACK
8251
+  (0.1ms) BEGIN
8252
+ ---------------------------------------------------------------
8253
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
8254
+ ---------------------------------------------------------------
8255
+  (0.1ms) ROLLBACK
8256
+  (0.0ms) BEGIN
8257
+ ---------------------------------------------------------------------------------
8258
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
8259
+ ---------------------------------------------------------------------------------
8260
+  (0.1ms) ROLLBACK
8261
+  (0.0ms) BEGIN
8262
+ -----------------------------------------------------------------------------------------
8263
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
8264
+ -----------------------------------------------------------------------------------------
8265
+  (0.1ms) ROLLBACK
8266
+  (0.1ms) BEGIN
8267
+ ----------------------------------------------------------------------------------------------------------------------------------
8268
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
8269
+ ----------------------------------------------------------------------------------------------------------------------------------
8270
+  (0.1ms) ROLLBACK
8271
+  (0.1ms) BEGIN
8272
+ -----------------------------------------------------------------------------------------------
8273
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
8274
+ -----------------------------------------------------------------------------------------------
8275
+  (0.1ms) ROLLBACK
8276
+  (0.1ms) BEGIN
8277
+ -------------------------------------------------------------------------------
8278
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
8279
+ -------------------------------------------------------------------------------
8280
+  (0.1ms) ROLLBACK
8281
+  (0.1ms) BEGIN
8282
+ ---------------------------------------------------------------------------------
8283
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
8284
+ ---------------------------------------------------------------------------------
8285
+  (0.1ms) ROLLBACK
8286
+  (0.1ms) BEGIN
8287
+ ------------------------------------------------------------------------------------------
8288
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
8289
+ ------------------------------------------------------------------------------------------
8290
+  (0.1ms) ROLLBACK
8291
+  (0.1ms) BEGIN
8292
+ ----------------------------------------------
8293
+ EmployeeTest: test_valid_dates_raise_no_errors
8294
+ ----------------------------------------------
8295
+  (0.1ms) ROLLBACK
8296
+  (0.0ms) BEGIN
8297
+ -----------------------------------------------------------------------------------
8298
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
8299
+ -----------------------------------------------------------------------------------
8300
+  (0.1ms) ROLLBACK
8301
+  (0.1ms) BEGIN
8302
+ ------------------------------------------------------------------------------------------
8303
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
8304
+ ------------------------------------------------------------------------------------------
8305
+  (0.1ms) ROLLBACK
8306
+  (0.1ms) BEGIN
8307
+ ------------------------------------------------------------------------
8308
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
8309
+ ------------------------------------------------------------------------
8310
+  (0.1ms) ROLLBACK
8311
+  (0.0ms) BEGIN
8312
+ ----------------------------------------------------------------------------------------------
8313
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
8314
+ ----------------------------------------------------------------------------------------------
8315
+  (0.1ms) ROLLBACK
8316
+  (0.0ms) BEGIN
8317
+ -------------------------------------------------------------------------------------------------------------------
8318
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
8319
+ -------------------------------------------------------------------------------------------------------------------
8320
+  (0.1ms) ROLLBACK
8321
+  (0.1ms) BEGIN
8322
+ ---------------------------------------------------------------------------------------------------------
8323
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
8324
+ ---------------------------------------------------------------------------------------------------------
8325
+  (0.1ms) ROLLBACK
8326
+  (0.1ms) BEGIN
8327
+ ---------------------------------------------------------------------
8328
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
8329
+ ---------------------------------------------------------------------
8330
+  (0.1ms) SAVEPOINT active_record_1
8331
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:33:47.275350"], ["updated_at", "2016-04-04 15:33:47.275350"]]
8332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8333
+  (0.1ms) SAVEPOINT active_record_1
8334
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:33:47.277093"], ["id", 417]]
8335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8336
+  (0.1ms) ROLLBACK
8337
+  (0.1ms) BEGIN
8338
+ --------------------------------------------------------------------------
8339
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
8340
+ --------------------------------------------------------------------------
8341
+  (0.1ms) ROLLBACK
8342
+  (0.1ms) BEGIN
8343
+ -------------------------------------------------------------------------
8344
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
8345
+ -------------------------------------------------------------------------
8346
+  (0.1ms) SAVEPOINT active_record_1
8347
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:33:47.280716"], ["updated_at", "2016-04-04 15:33:47.280716"]]
8348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8349
+  (0.1ms) SAVEPOINT active_record_1
8350
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
8351
+  (0.1ms) ROLLBACK
8352
+  (0.1ms) BEGIN
8353
+ -------------------------------------------
8354
+ EmployeeTest: test_invalid_day_raises_error
8355
+ -------------------------------------------
8356
+  (0.1ms) ROLLBACK
8357
+  (0.1ms) BEGIN
8358
+ ----------------------------------------------------------------------------------------------------------------
8359
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
8360
+ ----------------------------------------------------------------------------------------------------------------
8361
+  (0.1ms) ROLLBACK
8362
+  (0.1ms) BEGIN
8363
+ -----------------------------------------------------------
8364
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
8365
+ -----------------------------------------------------------
8366
+  (0.1ms) ROLLBACK
8367
+  (0.1ms) BEGIN
8368
+ -----------------------------------------------------------------------
8369
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
8370
+ -----------------------------------------------------------------------
8371
+  (0.1ms) ROLLBACK
8372
+  (0.1ms) BEGIN
8373
+ --------------------------------------------
8374
+ EmployeeTest: test_nil_dates_raise_no_errors
8375
+ --------------------------------------------
8376
+  (0.1ms) ROLLBACK
8377
+  (0.1ms) BEGIN
8378
+ -----------------------------------------------------------------
8379
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
8380
+ -----------------------------------------------------------------
8381
+  (0.1ms) ROLLBACK
8382
+  (0.1ms) BEGIN
8383
+ ---------------------------------------------------------------------
8384
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
8385
+ ---------------------------------------------------------------------
8386
+  (0.1ms) ROLLBACK
8387
+  (0.1ms) BEGIN
8388
+ -----------------------------------------------------------
8389
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
8390
+ -----------------------------------------------------------
8391
+  (0.1ms) ROLLBACK
8392
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8393
+  (0.2ms) BEGIN
8394
+ ----------------------------------------------------
8395
+ EmployeesControllerTest: test_should_create_employee
8396
+ ----------------------------------------------------
8397
+  (0.1ms) SAVEPOINT active_record_1
8398
+ SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:38.925814"], ["updated_at", "2016-04-04 15:38:38.925814"]]
8399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8400
+  (0.1ms) SAVEPOINT active_record_1
8401
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:38.928834"], ["updated_at", "2016-04-04 15:38:38.928834"]]
8402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8403
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8404
+ Processing by EmployeesController#create as HTML
8405
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
8406
+  (0.1ms) SAVEPOINT active_record_1
8407
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:38:38.933541"], ["updated_at", "2016-04-04 15:38:38.933541"]]
8408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8409
+ Redirected to http://test.host/employees/421
8410
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
8411
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8412
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8413
+ Employee Load (1.0ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
8414
+  (0.1ms) ROLLBACK
8415
+  (0.1ms) BEGIN
8416
+ --------------------------------------------------------------
8417
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
8418
+ --------------------------------------------------------------
8419
+  (0.1ms) SAVEPOINT active_record_1
8420
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:38.940211"], ["updated_at", "2016-04-04 15:38:38.940211"]]
8421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8422
+  (0.1ms) SAVEPOINT active_record_1
8423
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:38.941287"], ["updated_at", "2016-04-04 15:38:38.941287"]]
8424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8425
+ Processing by EmployeesController#edit as HTML
8426
+ Parameters: {"id"=>"422"}
8427
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 422]]
8428
+ Rendered employees/_form.html.erb (7.6ms)
8429
+ Rendered employees/edit.html.erb within layouts/application (10.3ms)
8430
+ Completed 200 OK in 129ms (Views: 126.1ms | ActiveRecord: 0.1ms)
8431
+  (0.2ms) ROLLBACK
8432
+  (0.1ms) BEGIN
8433
+ ----------------------------------------------
8434
+ EmployeesControllerTest: test_should_get_index
8435
+ ----------------------------------------------
8436
+  (0.1ms) SAVEPOINT active_record_1
8437
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.074831"], ["updated_at", "2016-04-04 15:38:39.074831"]]
8438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8439
+  (0.1ms) SAVEPOINT active_record_1
8440
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.076146"], ["updated_at", "2016-04-04 15:38:39.076146"]]
8441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8442
+ Processing by EmployeesController#index as HTML
8443
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
8444
+ Rendered employees/index.html.erb within layouts/application (1.6ms)
8445
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
8446
+  (0.1ms) ROLLBACK
8447
+  (0.1ms) BEGIN
8448
+ --------------------------------------------
8449
+ EmployeesControllerTest: test_should_get_new
8450
+ --------------------------------------------
8451
+  (0.1ms) SAVEPOINT active_record_1
8452
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.082650"], ["updated_at", "2016-04-04 15:38:39.082650"]]
8453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8454
+  (0.1ms) SAVEPOINT active_record_1
8455
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.083936"], ["updated_at", "2016-04-04 15:38:39.083936"]]
8456
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8457
+ Processing by EmployeesController#new as HTML
8458
+ Rendered employees/_form.html.erb (1.6ms)
8459
+ Rendered employees/new.html.erb within layouts/application (2.2ms)
8460
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
8461
+  (0.1ms) ROLLBACK
8462
+  (0.1ms) BEGIN
8463
+ ---------------------------------------------
8464
+ EmployeesControllerTest: test_should_get_edit
8465
+ ---------------------------------------------
8466
+  (0.1ms) SAVEPOINT active_record_1
8467
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.090886"], ["updated_at", "2016-04-04 15:38:39.090886"]]
8468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8469
+  (0.1ms) SAVEPOINT active_record_1
8470
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.092116"], ["updated_at", "2016-04-04 15:38:39.092116"]]
8471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8472
+ Processing by EmployeesController#edit as HTML
8473
+ Parameters: {"id"=>"428"}
8474
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 428]]
8475
+ Rendered employees/_form.html.erb (1.4ms)
8476
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
8477
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
8478
+  (0.1ms) ROLLBACK
8479
+  (0.1ms) BEGIN
8480
+ ----------------------------------------------------
8481
+ EmployeesControllerTest: test_should_update_employee
8482
+ ----------------------------------------------------
8483
+  (0.1ms) SAVEPOINT active_record_1
8484
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.098173"], ["updated_at", "2016-04-04 15:38:39.098173"]]
8485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8486
+  (0.1ms) SAVEPOINT active_record_1
8487
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.099345"], ["updated_at", "2016-04-04 15:38:39.099345"]]
8488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8489
+ Processing by EmployeesController#update as HTML
8490
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"430"}
8491
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 430]]
8492
+  (0.1ms) SAVEPOINT active_record_1
8493
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:38:39.102411"], ["id", 430]]
8494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8495
+ Redirected to http://test.host/employees/430
8496
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
8497
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 430]]
8498
+  (0.1ms) ROLLBACK
8499
+  (0.1ms) BEGIN
8500
+ -----------------------------------------------------
8501
+ EmployeesControllerTest: test_should_destroy_employee
8502
+ -----------------------------------------------------
8503
+  (0.1ms) SAVEPOINT active_record_1
8504
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.106213"], ["updated_at", "2016-04-04 15:38:39.106213"]]
8505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8506
+  (0.1ms) SAVEPOINT active_record_1
8507
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.107279"], ["updated_at", "2016-04-04 15:38:39.107279"]]
8508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8509
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8510
+ Processing by EmployeesController#destroy as HTML
8511
+ Parameters: {"id"=>"432"}
8512
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 432]]
8513
+  (0.1ms) SAVEPOINT active_record_1
8514
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 432]]
8515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8516
+ Redirected to http://test.host/employees
8517
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
8518
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8519
+  (0.1ms) ROLLBACK
8520
+  (0.1ms) BEGIN
8521
+ --------------------------------------------------
8522
+ EmployeesControllerTest: test_should_show_employee
8523
+ --------------------------------------------------
8524
+  (0.1ms) SAVEPOINT active_record_1
8525
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.113007"], ["updated_at", "2016-04-04 15:38:39.113007"]]
8526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8527
+  (0.1ms) SAVEPOINT active_record_1
8528
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.114255"], ["updated_at", "2016-04-04 15:38:39.114255"]]
8529
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8530
+ Processing by EmployeesController#show as HTML
8531
+ Parameters: {"id"=>"434"}
8532
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 434]]
8533
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
8534
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
8535
+  (0.1ms) ROLLBACK
8536
+  (0.1ms) BEGIN
8537
+ -------------------------------------------------------------------------------
8538
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
8539
+ -------------------------------------------------------------------------------
8540
+  (0.1ms) ROLLBACK
8541
+  (0.1ms) BEGIN
8542
+ ------------------------------------------------------------------------------------------
8543
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
8544
+ ------------------------------------------------------------------------------------------
8545
+  (0.1ms) ROLLBACK
8546
+  (0.1ms) BEGIN
8547
+ ---------------------------------------------------------------------------------
8548
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
8549
+ ---------------------------------------------------------------------------------
8550
+  (0.1ms) ROLLBACK
8551
+  (0.1ms) BEGIN
8552
+ -----------------------------------------------------------------------------------------
8553
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
8554
+ -----------------------------------------------------------------------------------------
8555
+  (0.1ms) ROLLBACK
8556
+  (0.1ms) BEGIN
8557
+ ----------------------------------------------------------------------------------------------------------------------------------
8558
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
8559
+ ----------------------------------------------------------------------------------------------------------------------------------
8560
+  (0.1ms) ROLLBACK
8561
+  (0.1ms) BEGIN
8562
+ -----------------------------------------------------------------------------------------------
8563
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
8564
+ -----------------------------------------------------------------------------------------------
8565
+  (0.1ms) ROLLBACK
8566
+  (0.1ms) BEGIN
8567
+ ---------------------------------------------------------------------------------
8568
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
8569
+ ---------------------------------------------------------------------------------
8570
+  (0.1ms) ROLLBACK
8571
+  (0.0ms) BEGIN
8572
+ ---------------------------------------------------------------
8573
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
8574
+ ---------------------------------------------------------------
8575
+  (0.1ms) ROLLBACK
8576
+  (0.1ms) BEGIN
8577
+ -------------------------------------------
8578
+ EmployeeTest: test_invalid_day_raises_error
8579
+ -------------------------------------------
8580
+  (0.1ms) ROLLBACK
8581
+  (0.1ms) BEGIN
8582
+ ------------------------------------------------------------------------------------------
8583
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
8584
+ ------------------------------------------------------------------------------------------
8585
+  (0.1ms) ROLLBACK
8586
+  (0.1ms) BEGIN
8587
+ -------------------------------------------------------------------------
8588
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
8589
+ -------------------------------------------------------------------------
8590
+  (0.1ms) SAVEPOINT active_record_1
8591
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:38:39.132291"], ["updated_at", "2016-04-04 15:38:39.132291"]]
8592
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8593
+  (0.1ms) SAVEPOINT active_record_1
8594
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
8595
+  (0.1ms) ROLLBACK
8596
+  (0.1ms) BEGIN
8597
+ ----------------------------------------------------------------------------------------------
8598
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
8599
+ ----------------------------------------------------------------------------------------------
8600
+  (0.1ms) ROLLBACK
8601
+  (0.1ms) BEGIN
8602
+ --------------------------------------------
8603
+ EmployeeTest: test_nil_dates_raise_no_errors
8604
+ --------------------------------------------
8605
+  (0.1ms) ROLLBACK
8606
+  (0.1ms) BEGIN
8607
+ ------------------------------------------------------------------------
8608
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
8609
+ ------------------------------------------------------------------------
8610
+  (0.1ms) ROLLBACK
8611
+  (0.1ms) BEGIN
8612
+ ----------------------------------------------
8613
+ EmployeeTest: test_valid_dates_raise_no_errors
8614
+ ----------------------------------------------
8615
+  (0.1ms) ROLLBACK
8616
+  (0.1ms) BEGIN
8617
+ -----------------------------------------------------------------
8618
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
8619
+ -----------------------------------------------------------------
8620
+  (0.1ms) ROLLBACK
8621
+  (0.1ms) BEGIN
8622
+ ---------------------------------------------------------------------
8623
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
8624
+ ---------------------------------------------------------------------
8625
+  (0.1ms) SAVEPOINT active_record_1
8626
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:38:39.138427"], ["updated_at", "2016-04-04 15:38:39.138427"]]
8627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8628
+  (0.1ms) SAVEPOINT active_record_1
8629
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:38:39.139525"], ["id", 437]]
8630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8631
+  (0.1ms) ROLLBACK
8632
+  (0.1ms) BEGIN
8633
+ -------------------------------------------------------------------------------------------------------------------
8634
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
8635
+ -------------------------------------------------------------------------------------------------------------------
8636
+  (0.1ms) ROLLBACK
8637
+  (0.1ms) BEGIN
8638
+ ----------------------------------------------------------------------------------------------------------------
8639
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
8640
+ ----------------------------------------------------------------------------------------------------------------
8641
+  (0.1ms) ROLLBACK
8642
+  (0.1ms) BEGIN
8643
+ -----------------------------------------------------------------------
8644
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
8645
+ -----------------------------------------------------------------------
8646
+  (0.1ms) ROLLBACK
8647
+  (0.0ms) BEGIN
8648
+ -----------------------------------------------------------
8649
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
8650
+ -----------------------------------------------------------
8651
+  (0.1ms) ROLLBACK
8652
+  (0.1ms) BEGIN
8653
+ ---------------------------------------------------------------------------------------------------------
8654
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
8655
+ ---------------------------------------------------------------------------------------------------------
8656
+  (0.1ms) ROLLBACK
8657
+  (0.0ms) BEGIN
8658
+ -----------------------------------------------------------------------------------
8659
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
8660
+ -----------------------------------------------------------------------------------
8661
+  (0.1ms) ROLLBACK
8662
+  (0.1ms) BEGIN
8663
+ --------------------------------------------------------------------------
8664
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
8665
+ --------------------------------------------------------------------------
8666
+  (0.1ms) ROLLBACK
8667
+  (0.1ms) BEGIN
8668
+ ---------------------------------------------------------------------
8669
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
8670
+ ---------------------------------------------------------------------
8671
+  (0.1ms) ROLLBACK
8672
+  (0.1ms) BEGIN
8673
+ -----------------------------------------------------------
8674
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
8675
+ -----------------------------------------------------------
8676
+  (0.1ms) ROLLBACK
8677
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
8678
+  (0.1ms) BEGIN
8679
+ ---------------------------------------------------------------
8680
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
8681
+ ---------------------------------------------------------------
8682
+  (0.1ms) ROLLBACK
8683
+  (0.1ms) BEGIN
8684
+ -------------------------------------------------------------------------------
8685
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
8686
+ -------------------------------------------------------------------------------
8687
+  (0.1ms) ROLLBACK
8688
+  (0.1ms) BEGIN
8689
+ -----------------------------------------------------------------------------------------------
8690
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
8691
+ -----------------------------------------------------------------------------------------------
8692
+  (0.1ms) ROLLBACK
8693
+  (0.1ms) BEGIN
8694
+ -----------------------------------------------------------------------------------------
8695
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
8696
+ -----------------------------------------------------------------------------------------
8697
+  (0.1ms) ROLLBACK
8698
+  (0.1ms) BEGIN
8699
+ ----------------------------------------------------------------------------------------------------------------------------------
8700
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
8701
+ ----------------------------------------------------------------------------------------------------------------------------------
8702
+  (0.1ms) ROLLBACK
8703
+  (0.1ms) BEGIN
8704
+ ---------------------------------------------------------------------------------
8705
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
8706
+ ---------------------------------------------------------------------------------
8707
+  (0.1ms) ROLLBACK
8708
+  (0.1ms) BEGIN
8709
+ ---------------------------------------------------------------------------------
8710
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
8711
+ ---------------------------------------------------------------------------------
8712
+  (0.1ms) ROLLBACK
8713
+  (0.1ms) BEGIN
8714
+ ------------------------------------------------------------------------------------------
8715
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
8716
+ ------------------------------------------------------------------------------------------
8717
+  (0.1ms) ROLLBACK
8718
+  (0.1ms) BEGIN
8719
+ --------------------------------------------------------------
8720
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
8721
+ --------------------------------------------------------------
8722
+  (0.2ms) SAVEPOINT active_record_1
8723
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.016168"], ["updated_at", "2016-04-04 15:39:24.016168"]]
8724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8725
+  (0.1ms) SAVEPOINT active_record_1
8726
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.020225"], ["updated_at", "2016-04-04 15:39:24.020225"]]
8727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8728
+ Processing by EmployeesController#edit as HTML
8729
+ Parameters: {"id"=>"438"}
8730
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 438]]
8731
+ Rendered employees/_form.html.erb (7.8ms)
8732
+ Rendered employees/edit.html.erb within layouts/application (10.6ms)
8733
+ Completed 200 OK in 125ms (Views: 121.7ms | ActiveRecord: 0.2ms)
8734
+  (0.2ms) ROLLBACK
8735
+  (0.1ms) BEGIN
8736
+ ----------------------------------------------
8737
+ EmployeesControllerTest: test_should_get_index
8738
+ ----------------------------------------------
8739
+  (0.1ms) SAVEPOINT active_record_1
8740
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.151410"], ["updated_at", "2016-04-04 15:39:24.151410"]]
8741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8742
+  (0.1ms) SAVEPOINT active_record_1
8743
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.152762"], ["updated_at", "2016-04-04 15:39:24.152762"]]
8744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8745
+ Processing by EmployeesController#index as HTML
8746
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
8747
+ Rendered employees/index.html.erb within layouts/application (1.7ms)
8748
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
8749
+  (0.1ms) ROLLBACK
8750
+  (0.1ms) BEGIN
8751
+ --------------------------------------------
8752
+ EmployeesControllerTest: test_should_get_new
8753
+ --------------------------------------------
8754
+  (0.1ms) SAVEPOINT active_record_1
8755
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.159214"], ["updated_at", "2016-04-04 15:39:24.159214"]]
8756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8757
+  (0.1ms) SAVEPOINT active_record_1
8758
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.160485"], ["updated_at", "2016-04-04 15:39:24.160485"]]
8759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8760
+ Processing by EmployeesController#new as HTML
8761
+ Rendered employees/_form.html.erb (1.5ms)
8762
+ Rendered employees/new.html.erb within layouts/application (2.0ms)
8763
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
8764
+  (0.1ms) ROLLBACK
8765
+  (0.1ms) BEGIN
8766
+ --------------------------------------------------
8767
+ EmployeesControllerTest: test_should_show_employee
8768
+ --------------------------------------------------
8769
+  (0.1ms) SAVEPOINT active_record_1
8770
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.166952"], ["updated_at", "2016-04-04 15:39:24.166952"]]
8771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8772
+  (0.1ms) SAVEPOINT active_record_1
8773
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.168236"], ["updated_at", "2016-04-04 15:39:24.168236"]]
8774
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8775
+ Processing by EmployeesController#show as HTML
8776
+ Parameters: {"id"=>"444"}
8777
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 444]]
8778
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
8779
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
8780
+  (0.1ms) ROLLBACK
8781
+  (0.1ms) BEGIN
8782
+ ---------------------------------------------
8783
+ EmployeesControllerTest: test_should_get_edit
8784
+ ---------------------------------------------
8785
+  (0.1ms) SAVEPOINT active_record_1
8786
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.174505"], ["updated_at", "2016-04-04 15:39:24.174505"]]
8787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8788
+  (0.1ms) SAVEPOINT active_record_1
8789
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.175595"], ["updated_at", "2016-04-04 15:39:24.175595"]]
8790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8791
+ Processing by EmployeesController#edit as HTML
8792
+ Parameters: {"id"=>"446"}
8793
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 446]]
8794
+ Rendered employees/_form.html.erb (1.6ms)
8795
+ Rendered employees/edit.html.erb within layouts/application (1.8ms)
8796
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
8797
+  (0.1ms) ROLLBACK
8798
+  (0.1ms) BEGIN
8799
+ ----------------------------------------------------
8800
+ EmployeesControllerTest: test_should_create_employee
8801
+ ----------------------------------------------------
8802
+  (0.1ms) SAVEPOINT active_record_1
8803
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.181424"], ["updated_at", "2016-04-04 15:39:24.181424"]]
8804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8805
+  (0.1ms) SAVEPOINT active_record_1
8806
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.182528"], ["updated_at", "2016-04-04 15:39:24.182528"]]
8807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8808
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8809
+ Processing by EmployeesController#create as HTML
8810
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
8811
+  (0.1ms) SAVEPOINT active_record_1
8812
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:39:24.185814"], ["updated_at", "2016-04-04 15:39:24.185814"]]
8813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8814
+ Redirected to http://test.host/employees/450
8815
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
8816
+  (0.2ms) SELECT COUNT(*) FROM "employees"
8817
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8818
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
8819
+  (0.1ms) ROLLBACK
8820
+  (0.1ms) BEGIN
8821
+ -----------------------------------------------------
8822
+ EmployeesControllerTest: test_should_destroy_employee
8823
+ -----------------------------------------------------
8824
+  (0.1ms) SAVEPOINT active_record_1
8825
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.190438"], ["updated_at", "2016-04-04 15:39:24.190438"]]
8826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8827
+  (0.1ms) SAVEPOINT active_record_1
8828
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.191674"], ["updated_at", "2016-04-04 15:39:24.191674"]]
8829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8830
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8831
+ Processing by EmployeesController#destroy as HTML
8832
+ Parameters: {"id"=>"451"}
8833
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 451]]
8834
+  (0.1ms) SAVEPOINT active_record_1
8835
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 451]]
8836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8837
+ Redirected to http://test.host/employees
8838
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
8839
+  (0.1ms) SELECT COUNT(*) FROM "employees"
8840
+  (0.1ms) ROLLBACK
8841
+  (0.1ms) BEGIN
8842
+ ----------------------------------------------------
8843
+ EmployeesControllerTest: test_should_update_employee
8844
+ ----------------------------------------------------
8845
+  (0.1ms) SAVEPOINT active_record_1
8846
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.197566"], ["updated_at", "2016-04-04 15:39:24.197566"]]
8847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8848
+  (0.1ms) SAVEPOINT active_record_1
8849
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.198558"], ["updated_at", "2016-04-04 15:39:24.198558"]]
8850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8851
+ Processing by EmployeesController#update as HTML
8852
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"453"}
8853
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]
8854
+  (0.1ms) SAVEPOINT active_record_1
8855
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:39:24.201337"], ["id", 453]]
8856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8857
+ Redirected to http://test.host/employees/453
8858
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
8859
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]
8860
+  (0.1ms) ROLLBACK
8861
+  (0.1ms) BEGIN
8862
+ -----------------------------------------------------------------------
8863
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
8864
+ -----------------------------------------------------------------------
8865
+  (0.1ms) ROLLBACK
8866
+  (0.1ms) BEGIN
8867
+ -----------------------------------------------------------------------------------
8868
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
8869
+ -----------------------------------------------------------------------------------
8870
+  (0.1ms) ROLLBACK
8871
+  (0.1ms) BEGIN
8872
+ ------------------------------------------------------------------------------------------
8873
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
8874
+ ------------------------------------------------------------------------------------------
8875
+  (0.1ms) ROLLBACK
8876
+  (0.1ms) BEGIN
8877
+ ----------------------------------------------------------------------------------------------------------------
8878
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
8879
+ ----------------------------------------------------------------------------------------------------------------
8880
+  (0.1ms) ROLLBACK
8881
+  (0.1ms) BEGIN
8882
+ --------------------------------------------
8883
+ EmployeeTest: test_nil_dates_raise_no_errors
8884
+ --------------------------------------------
8885
+  (0.1ms) ROLLBACK
8886
+  (0.1ms) BEGIN
8887
+ -----------------------------------------------------------------
8888
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
8889
+ -----------------------------------------------------------------
8890
+  (0.1ms) ROLLBACK
8891
+  (0.1ms) BEGIN
8892
+ ----------------------------------------------------------------------------------------------
8893
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
8894
+ ----------------------------------------------------------------------------------------------
8895
+  (0.1ms) ROLLBACK
8896
+  (0.1ms) BEGIN
8897
+ --------------------------------------------------------------------------
8898
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
8899
+ --------------------------------------------------------------------------
8900
+  (0.1ms) ROLLBACK
8901
+  (0.1ms) BEGIN
8902
+ ---------------------------------------------------------------------
8903
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
8904
+ ---------------------------------------------------------------------
8905
+  (0.1ms) SAVEPOINT active_record_1
8906
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:39:24.211241"], ["updated_at", "2016-04-04 15:39:24.211241"]]
8907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8908
+  (0.0ms) SAVEPOINT active_record_1
8909
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:39:24.212418"], ["id", 455]]
8910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8911
+  (0.1ms) ROLLBACK
8912
+  (0.1ms) BEGIN
8913
+ -----------------------------------------------------------
8914
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
8915
+ -----------------------------------------------------------
8916
+  (0.1ms) ROLLBACK
8917
+  (0.1ms) BEGIN
8918
+ -----------------------------------------------------------
8919
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
8920
+ -----------------------------------------------------------
8921
+  (0.1ms) ROLLBACK
8922
+  (0.1ms) BEGIN
8923
+ ---------------------------------------------------------------------------------------------------------
8924
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
8925
+ ---------------------------------------------------------------------------------------------------------
8926
+  (0.1ms) ROLLBACK
8927
+  (0.1ms) BEGIN
8928
+ ------------------------------------------------------------------------
8929
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
8930
+ ------------------------------------------------------------------------
8931
+  (0.1ms) ROLLBACK
8932
+  (0.1ms) BEGIN
8933
+ ---------------------------------------------------------------------
8934
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
8935
+ ---------------------------------------------------------------------
8936
+  (0.1ms) ROLLBACK
8937
+  (0.1ms) BEGIN
8938
+ ----------------------------------------------
8939
+ EmployeeTest: test_valid_dates_raise_no_errors
8940
+ ----------------------------------------------
8941
+  (0.1ms) ROLLBACK
8942
+  (0.1ms) BEGIN
8943
+ -------------------------------------------------------------------------
8944
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
8945
+ -------------------------------------------------------------------------
8946
+  (0.1ms) SAVEPOINT active_record_1
8947
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:39:24.218622"], ["updated_at", "2016-04-04 15:39:24.218622"]]
8948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8949
+  (0.1ms) SAVEPOINT active_record_1
8950
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
8951
+  (0.1ms) ROLLBACK
8952
+  (0.1ms) BEGIN
8953
+ -------------------------------------------
8954
+ EmployeeTest: test_invalid_day_raises_error
8955
+ -------------------------------------------
8956
+  (0.1ms) ROLLBACK
8957
+  (0.1ms) BEGIN
8958
+ -------------------------------------------------------------------------------------------------------------------
8959
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
8960
+ -------------------------------------------------------------------------------------------------------------------
8961
+  (0.1ms) ROLLBACK
8962
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
8963
+  (0.2ms) BEGIN
8964
+ -------------------------------------------
8965
+ EmployeeTest: test_invalid_day_raises_error
8966
+ -------------------------------------------
8967
+  (0.1ms) ROLLBACK
8968
+  (0.1ms) BEGIN
8969
+ ----------------------------------------------
8970
+ EmployeeTest: test_valid_dates_raise_no_errors
8971
+ ----------------------------------------------
8972
+  (0.1ms) ROLLBACK
8973
+  (0.1ms) BEGIN
8974
+ -----------------------------------------------------------------
8975
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
8976
+ -----------------------------------------------------------------
8977
+  (0.1ms) ROLLBACK
8978
+  (0.1ms) BEGIN
8979
+ ------------------------------------------------------------------------------------------
8980
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
8981
+ ------------------------------------------------------------------------------------------
8982
+  (0.1ms) ROLLBACK
8983
+  (0.1ms) BEGIN
8984
+ -----------------------------------------------------------------------
8985
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
8986
+ -----------------------------------------------------------------------
8987
+  (0.1ms) ROLLBACK
8988
+  (0.1ms) BEGIN
8989
+ -----------------------------------------------------------
8990
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
8991
+ -----------------------------------------------------------
8992
+  (0.1ms) ROLLBACK
8993
+  (0.1ms) BEGIN
8994
+ -------------------------------------------------------------------------------------------------------------------
8995
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
8996
+ -------------------------------------------------------------------------------------------------------------------
8997
+  (0.1ms) ROLLBACK
8998
+  (0.1ms) BEGIN
8999
+ ---------------------------------------------------------------------------------------------------------
9000
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
9001
+ ---------------------------------------------------------------------------------------------------------
9002
+  (0.1ms) ROLLBACK
9003
+  (0.1ms) BEGIN
9004
+ -------------------------------------------------------------------------
9005
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
9006
+ -------------------------------------------------------------------------
9007
+  (0.1ms) SAVEPOINT active_record_1
9008
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:53:00.165640"], ["updated_at", "2016-04-04 15:53:00.165640"]]
9009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9010
+  (0.0ms) SAVEPOINT active_record_1
9011
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9012
+  (0.1ms) ROLLBACK
9013
+  (0.1ms) BEGIN
9014
+ ---------------------------------------------------------------------
9015
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
9016
+ ---------------------------------------------------------------------
9017
+  (0.1ms) SAVEPOINT active_record_1
9018
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:53:00.170159"], ["updated_at", "2016-04-04 15:53:00.170159"]]
9019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9020
+  (0.1ms) SAVEPOINT active_record_1
9021
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:53:00.171566"], ["id", 458]]
9022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9023
+  (0.1ms) ROLLBACK
9024
+  (0.1ms) BEGIN
9025
+ ------------------------------------------------------------------------
9026
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
9027
+ ------------------------------------------------------------------------
9028
+  (0.1ms) ROLLBACK
9029
+  (0.1ms) BEGIN
9030
+ --------------------------------------------
9031
+ EmployeeTest: test_nil_dates_raise_no_errors
9032
+ --------------------------------------------
9033
+  (0.1ms) ROLLBACK
9034
+  (0.0ms) BEGIN
9035
+ -----------------------------------------------------------------------------------
9036
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
9037
+ -----------------------------------------------------------------------------------
9038
+  (0.1ms) ROLLBACK
9039
+  (0.1ms) BEGIN
9040
+ ----------------------------------------------------------------------------------------------------------------
9041
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
9042
+ ----------------------------------------------------------------------------------------------------------------
9043
+  (0.1ms) ROLLBACK
9044
+  (0.1ms) BEGIN
9045
+ ----------------------------------------------------------------------------------------------
9046
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
9047
+ ----------------------------------------------------------------------------------------------
9048
+  (0.1ms) ROLLBACK
9049
+  (0.1ms) BEGIN
9050
+ ---------------------------------------------------------------------
9051
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
9052
+ ---------------------------------------------------------------------
9053
+  (0.1ms) ROLLBACK
9054
+  (0.1ms) BEGIN
9055
+ --------------------------------------------------------------------------
9056
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
9057
+ --------------------------------------------------------------------------
9058
+  (0.1ms) ROLLBACK
9059
+  (0.1ms) BEGIN
9060
+ -----------------------------------------------------------
9061
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
9062
+ -----------------------------------------------------------
9063
+  (0.1ms) ROLLBACK
9064
+  (0.1ms) BEGIN
9065
+ ----------------------------------------------------
9066
+ EmployeesControllerTest: test_should_update_employee
9067
+ ----------------------------------------------------
9068
+  (0.2ms) SAVEPOINT active_record_1
9069
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.205871"], ["updated_at", "2016-04-04 15:53:00.205871"]]
9070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9071
+  (0.1ms) SAVEPOINT active_record_1
9072
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.207269"], ["updated_at", "2016-04-04 15:53:00.207269"]]
9073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9074
+ Processing by EmployeesController#update as HTML
9075
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"459"}
9076
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]
9077
+  (0.1ms) SAVEPOINT active_record_1
9078
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:53:00.212964"], ["id", 459]]
9079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9080
+ Redirected to http://test.host/employees/459
9081
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
9082
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]
9083
+  (0.1ms) ROLLBACK
9084
+  (0.1ms) BEGIN
9085
+ ----------------------------------------------------
9086
+ EmployeesControllerTest: test_should_create_employee
9087
+ ----------------------------------------------------
9088
+  (0.1ms) SAVEPOINT active_record_1
9089
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.216549"], ["updated_at", "2016-04-04 15:53:00.216549"]]
9090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9091
+  (0.1ms) SAVEPOINT active_record_1
9092
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.217649"], ["updated_at", "2016-04-04 15:53:00.217649"]]
9093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9094
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9095
+ Processing by EmployeesController#create as HTML
9096
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
9097
+  (0.1ms) SAVEPOINT active_record_1
9098
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:53:00.220564"], ["updated_at", "2016-04-04 15:53:00.220564"]]
9099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9100
+ Redirected to http://test.host/employees/463
9101
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
9102
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9103
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9104
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
9105
+  (0.1ms) ROLLBACK
9106
+  (0.1ms) BEGIN
9107
+ --------------------------------------------------
9108
+ EmployeesControllerTest: test_should_show_employee
9109
+ --------------------------------------------------
9110
+  (0.1ms) SAVEPOINT active_record_1
9111
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.224146"], ["updated_at", "2016-04-04 15:53:00.224146"]]
9112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9113
+  (0.1ms) SAVEPOINT active_record_1
9114
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.225182"], ["updated_at", "2016-04-04 15:53:00.225182"]]
9115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9116
+ Processing by EmployeesController#show as HTML
9117
+ Parameters: {"id"=>"464"}
9118
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 464]]
9119
+ Rendered employees/show.html.erb within layouts/application (1.0ms)
9120
+ Completed 200 OK in 123ms (Views: 122.0ms | ActiveRecord: 0.1ms)
9121
+  (0.2ms) ROLLBACK
9122
+  (0.1ms) BEGIN
9123
+ ----------------------------------------------
9124
+ EmployeesControllerTest: test_should_get_index
9125
+ ----------------------------------------------
9126
+  (0.1ms) SAVEPOINT active_record_1
9127
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.350643"], ["updated_at", "2016-04-04 15:53:00.350643"]]
9128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9129
+  (0.1ms) SAVEPOINT active_record_1
9130
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.351965"], ["updated_at", "2016-04-04 15:53:00.351965"]]
9131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9132
+ Processing by EmployeesController#index as HTML
9133
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
9134
+ Rendered employees/index.html.erb within layouts/application (1.6ms)
9135
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
9136
+  (0.1ms) ROLLBACK
9137
+  (0.1ms) BEGIN
9138
+ --------------------------------------------------------------
9139
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
9140
+ --------------------------------------------------------------
9141
+  (0.1ms) SAVEPOINT active_record_1
9142
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.358130"], ["updated_at", "2016-04-04 15:53:00.358130"]]
9143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9144
+  (0.1ms) SAVEPOINT active_record_1
9145
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.359401"], ["updated_at", "2016-04-04 15:53:00.359401"]]
9146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9147
+ Processing by EmployeesController#edit as HTML
9148
+ Parameters: {"id"=>"468"}
9149
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 468]]
9150
+ Rendered employees/_form.html.erb (8.5ms)
9151
+ Rendered employees/edit.html.erb within layouts/application (11.3ms)
9152
+ Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms)
9153
+  (0.2ms) ROLLBACK
9154
+  (0.1ms) BEGIN
9155
+ -----------------------------------------------------
9156
+ EmployeesControllerTest: test_should_destroy_employee
9157
+ -----------------------------------------------------
9158
+  (0.1ms) SAVEPOINT active_record_1
9159
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.377534"], ["updated_at", "2016-04-04 15:53:00.377534"]]
9160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9161
+  (0.1ms) SAVEPOINT active_record_1
9162
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.378745"], ["updated_at", "2016-04-04 15:53:00.378745"]]
9163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9164
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9165
+ Processing by EmployeesController#destroy as HTML
9166
+ Parameters: {"id"=>"470"}
9167
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 470]]
9168
+  (0.1ms) SAVEPOINT active_record_1
9169
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 470]]
9170
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9171
+ Redirected to http://test.host/employees
9172
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
9173
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9174
+  (0.1ms) ROLLBACK
9175
+  (0.1ms) BEGIN
9176
+ ---------------------------------------------
9177
+ EmployeesControllerTest: test_should_get_edit
9178
+ ---------------------------------------------
9179
+  (0.1ms) SAVEPOINT active_record_1
9180
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.384001"], ["updated_at", "2016-04-04 15:53:00.384001"]]
9181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9182
+  (0.1ms) SAVEPOINT active_record_1
9183
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.385217"], ["updated_at", "2016-04-04 15:53:00.385217"]]
9184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9185
+ Processing by EmployeesController#edit as HTML
9186
+ Parameters: {"id"=>"472"}
9187
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 472]]
9188
+ Rendered employees/_form.html.erb (1.7ms)
9189
+ Rendered employees/edit.html.erb within layouts/application (2.0ms)
9190
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
9191
+  (0.1ms) ROLLBACK
9192
+  (0.1ms) BEGIN
9193
+ --------------------------------------------
9194
+ EmployeesControllerTest: test_should_get_new
9195
+ --------------------------------------------
9196
+  (0.1ms) SAVEPOINT active_record_1
9197
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.393061"], ["updated_at", "2016-04-04 15:53:00.393061"]]
9198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9199
+  (0.1ms) SAVEPOINT active_record_1
9200
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.394222"], ["updated_at", "2016-04-04 15:53:00.394222"]]
9201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9202
+ Processing by EmployeesController#new as HTML
9203
+ Rendered employees/_form.html.erb (1.5ms)
9204
+ Rendered employees/new.html.erb within layouts/application (2.0ms)
9205
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
9206
+  (0.1ms) ROLLBACK
9207
+  (0.0ms) BEGIN
9208
+ -----------------------------------------------------------------------------------------
9209
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
9210
+ -----------------------------------------------------------------------------------------
9211
+  (0.1ms) ROLLBACK
9212
+  (0.2ms) BEGIN
9213
+ ------------------------------------------------------------------------------------------
9214
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
9215
+ ------------------------------------------------------------------------------------------
9216
+  (0.1ms) ROLLBACK
9217
+  (0.1ms) BEGIN
9218
+ -------------------------------------------------------------------------------
9219
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
9220
+ -------------------------------------------------------------------------------
9221
+  (0.1ms) ROLLBACK
9222
+  (0.2ms) BEGIN
9223
+ ---------------------------------------------------------------------------------
9224
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
9225
+ ---------------------------------------------------------------------------------
9226
+  (0.1ms) ROLLBACK
9227
+  (0.0ms) BEGIN
9228
+ ---------------------------------------------------------------------------------
9229
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
9230
+ ---------------------------------------------------------------------------------
9231
+  (0.1ms) ROLLBACK
9232
+  (0.1ms) BEGIN
9233
+ -----------------------------------------------------------------------------------------------
9234
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
9235
+ -----------------------------------------------------------------------------------------------
9236
+  (0.1ms) ROLLBACK
9237
+  (0.1ms) BEGIN
9238
+ ----------------------------------------------------------------------------------------------------------------------------------
9239
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
9240
+ ----------------------------------------------------------------------------------------------------------------------------------
9241
+  (0.1ms) ROLLBACK
9242
+  (0.1ms) BEGIN
9243
+ ---------------------------------------------------------------
9244
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
9245
+ ---------------------------------------------------------------
9246
+  (0.2ms) ROLLBACK
9247
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9248
+  (0.2ms) BEGIN
9249
+ ---------------------------------------------
9250
+ EmployeesControllerTest: test_should_get_edit
9251
+ ---------------------------------------------
9252
+  (0.1ms) SAVEPOINT active_record_1
9253
+ SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.700076"], ["updated_at", "2016-04-04 15:55:29.700076"]]
9254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9255
+  (0.1ms) SAVEPOINT active_record_1
9256
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.704338"], ["updated_at", "2016-04-04 15:55:29.704338"]]
9257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9258
+ Processing by EmployeesController#edit as HTML
9259
+ Parameters: {"id"=>"476"}
9260
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 476]]
9261
+ Rendered employees/_form.html.erb (8.2ms)
9262
+ Rendered employees/edit.html.erb within layouts/application (11.1ms)
9263
+ Completed 200 OK in 140ms (Views: 134.3ms | ActiveRecord: 0.3ms)
9264
+  (0.3ms) ROLLBACK
9265
+  (0.2ms) BEGIN
9266
+ ----------------------------------------------------
9267
+ EmployeesControllerTest: test_should_update_employee
9268
+ ----------------------------------------------------
9269
+  (0.1ms) SAVEPOINT active_record_1
9270
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.849869"], ["updated_at", "2016-04-04 15:55:29.849869"]]
9271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9272
+  (0.1ms) SAVEPOINT active_record_1
9273
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.852255"], ["updated_at", "2016-04-04 15:55:29.852255"]]
9274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9275
+ Processing by EmployeesController#update as HTML
9276
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"478"}
9277
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]
9278
+  (0.2ms) SAVEPOINT active_record_1
9279
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:55:29.856779"], ["id", 478]]
9280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9281
+ Redirected to http://test.host/employees/478
9282
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
9283
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]
9284
+  (0.1ms) ROLLBACK
9285
+  (0.1ms) BEGIN
9286
+ --------------------------------------------
9287
+ EmployeesControllerTest: test_should_get_new
9288
+ --------------------------------------------
9289
+  (0.1ms) SAVEPOINT active_record_1
9290
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.861504"], ["updated_at", "2016-04-04 15:55:29.861504"]]
9291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9292
+  (0.1ms) SAVEPOINT active_record_1
9293
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.862887"], ["updated_at", "2016-04-04 15:55:29.862887"]]
9294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9295
+ Processing by EmployeesController#new as HTML
9296
+ Rendered employees/_form.html.erb (1.6ms)
9297
+ Rendered employees/new.html.erb within layouts/application (2.2ms)
9298
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
9299
+  (0.1ms) ROLLBACK
9300
+  (0.1ms) BEGIN
9301
+ ----------------------------------------------------
9302
+ EmployeesControllerTest: test_should_create_employee
9303
+ ----------------------------------------------------
9304
+  (0.1ms) SAVEPOINT active_record_1
9305
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.869856"], ["updated_at", "2016-04-04 15:55:29.869856"]]
9306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9307
+  (0.1ms) SAVEPOINT active_record_1
9308
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.871032"], ["updated_at", "2016-04-04 15:55:29.871032"]]
9309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9310
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9311
+ Processing by EmployeesController#create as HTML
9312
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
9313
+  (0.1ms) SAVEPOINT active_record_1
9314
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:55:29.874389"], ["updated_at", "2016-04-04 15:55:29.874389"]]
9315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9316
+ Redirected to http://test.host/employees/484
9317
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
9318
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9319
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9320
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
9321
+  (0.1ms) ROLLBACK
9322
+  (0.1ms) BEGIN
9323
+ --------------------------------------------------------------
9324
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
9325
+ --------------------------------------------------------------
9326
+  (0.1ms) SAVEPOINT active_record_1
9327
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.878394"], ["updated_at", "2016-04-04 15:55:29.878394"]]
9328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9329
+  (0.1ms) SAVEPOINT active_record_1
9330
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.879533"], ["updated_at", "2016-04-04 15:55:29.879533"]]
9331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9332
+ Processing by EmployeesController#edit as HTML
9333
+ Parameters: {"id"=>"485"}
9334
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 485]]
9335
+ Rendered employees/_form.html.erb (1.8ms)
9336
+ Rendered employees/edit.html.erb within layouts/application (2.1ms)
9337
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
9338
+  (0.2ms) ROLLBACK
9339
+  (0.1ms) BEGIN
9340
+ --------------------------------------------------
9341
+ EmployeesControllerTest: test_should_show_employee
9342
+ --------------------------------------------------
9343
+  (0.1ms) SAVEPOINT active_record_1
9344
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.888470"], ["updated_at", "2016-04-04 15:55:29.888470"]]
9345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9346
+  (0.1ms) SAVEPOINT active_record_1
9347
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.889840"], ["updated_at", "2016-04-04 15:55:29.889840"]]
9348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9349
+ Processing by EmployeesController#show as HTML
9350
+ Parameters: {"id"=>"487"}
9351
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 487]]
9352
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
9353
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
9354
+  (0.1ms) ROLLBACK
9355
+  (0.1ms) BEGIN
9356
+ -----------------------------------------------------
9357
+ EmployeesControllerTest: test_should_destroy_employee
9358
+ -----------------------------------------------------
9359
+  (0.1ms) SAVEPOINT active_record_1
9360
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.896451"], ["updated_at", "2016-04-04 15:55:29.896451"]]
9361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9362
+  (0.1ms) SAVEPOINT active_record_1
9363
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.897641"], ["updated_at", "2016-04-04 15:55:29.897641"]]
9364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9365
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9366
+ Processing by EmployeesController#destroy as HTML
9367
+ Parameters: {"id"=>"489"}
9368
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 489]]
9369
+  (0.1ms) SAVEPOINT active_record_1
9370
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 489]]
9371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9372
+ Redirected to http://test.host/employees
9373
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
9374
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9375
+  (0.1ms) ROLLBACK
9376
+  (0.1ms) BEGIN
9377
+ ----------------------------------------------
9378
+ EmployeesControllerTest: test_should_get_index
9379
+ ----------------------------------------------
9380
+  (0.1ms) SAVEPOINT active_record_1
9381
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.902651"], ["updated_at", "2016-04-04 15:55:29.902651"]]
9382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9383
+  (0.1ms) SAVEPOINT active_record_1
9384
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.903758"], ["updated_at", "2016-04-04 15:55:29.903758"]]
9385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9386
+ Processing by EmployeesController#index as HTML
9387
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
9388
+ Rendered employees/index.html.erb within layouts/application (1.5ms)
9389
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
9390
+  (0.1ms) ROLLBACK
9391
+  (0.1ms) BEGIN
9392
+ ---------------------------------------------------------------
9393
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
9394
+ ---------------------------------------------------------------
9395
+  (0.1ms) ROLLBACK
9396
+  (0.1ms) BEGIN
9397
+ -------------------------------------------------------------------------------------------------------------------
9398
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
9399
+ -------------------------------------------------------------------------------------------------------------------
9400
+  (0.1ms) ROLLBACK
9401
+  (0.1ms) BEGIN
9402
+ ------------------------------------------------------------------------------------------
9403
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
9404
+ ------------------------------------------------------------------------------------------
9405
+  (0.1ms) ROLLBACK
9406
+  (0.1ms) BEGIN
9407
+ --------------------------------------------
9408
+ EmployeeTest: test_nil_dates_raise_no_errors
9409
+ --------------------------------------------
9410
+  (0.1ms) ROLLBACK
9411
+  (0.1ms) BEGIN
9412
+ -------------------------------------------
9413
+ EmployeeTest: test_invalid_day_raises_error
9414
+ -------------------------------------------
9415
+  (0.1ms) ROLLBACK
9416
+  (0.1ms) BEGIN
9417
+ ---------------------------------------------------------------------
9418
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
9419
+ ---------------------------------------------------------------------
9420
+  (0.1ms) ROLLBACK
9421
+  (0.0ms) BEGIN
9422
+ ------------------------------------------------------------------------
9423
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
9424
+ ------------------------------------------------------------------------
9425
+  (0.1ms) ROLLBACK
9426
+  (0.1ms) BEGIN
9427
+ ---------------------------------------------------------------------
9428
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
9429
+ ---------------------------------------------------------------------
9430
+  (0.1ms) SAVEPOINT active_record_1
9431
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:55:29.917164"], ["updated_at", "2016-04-04 15:55:29.917164"]]
9432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9433
+  (0.0ms) SAVEPOINT active_record_1
9434
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:55:29.918383"], ["id", 493]]
9435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9436
+  (0.1ms) ROLLBACK
9437
+  (0.1ms) BEGIN
9438
+ -----------------------------------------------------------
9439
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
9440
+ -----------------------------------------------------------
9441
+  (0.1ms) ROLLBACK
9442
+  (0.0ms) BEGIN
9443
+ -----------------------------------------------------------
9444
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
9445
+ -----------------------------------------------------------
9446
+  (0.1ms) ROLLBACK
9447
+  (0.1ms) BEGIN
9448
+ -----------------------------------------------------------------
9449
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
9450
+ -----------------------------------------------------------------
9451
+  (0.1ms) ROLLBACK
9452
+  (0.1ms) BEGIN
9453
+ ----------------------------------------------------------------------------------------------------------------
9454
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
9455
+ ----------------------------------------------------------------------------------------------------------------
9456
+  (0.1ms) ROLLBACK
9457
+  (0.1ms) BEGIN
9458
+ ---------------------------------------------------------------------------------------------------------
9459
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
9460
+ ---------------------------------------------------------------------------------------------------------
9461
+  (0.1ms) ROLLBACK
9462
+  (0.1ms) BEGIN
9463
+ ----------------------------------------------
9464
+ EmployeeTest: test_valid_dates_raise_no_errors
9465
+ ----------------------------------------------
9466
+  (0.1ms) ROLLBACK
9467
+  (0.1ms) BEGIN
9468
+ --------------------------------------------------------------------------
9469
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
9470
+ --------------------------------------------------------------------------
9471
+  (0.1ms) ROLLBACK
9472
+  (0.1ms) BEGIN
9473
+ -----------------------------------------------------------------------
9474
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
9475
+ -----------------------------------------------------------------------
9476
+  (0.1ms) ROLLBACK
9477
+  (0.0ms) BEGIN
9478
+ ----------------------------------------------------------------------------------------------
9479
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
9480
+ ----------------------------------------------------------------------------------------------
9481
+  (0.1ms) ROLLBACK
9482
+  (0.1ms) BEGIN
9483
+ -------------------------------------------------------------------------
9484
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
9485
+ -------------------------------------------------------------------------
9486
+  (0.1ms) SAVEPOINT active_record_1
9487
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:55:29.927029"], ["updated_at", "2016-04-04 15:55:29.927029"]]
9488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9489
+  (0.1ms) SAVEPOINT active_record_1
9490
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9491
+  (0.1ms) ROLLBACK
9492
+  (0.1ms) BEGIN
9493
+ -----------------------------------------------------------------------------------
9494
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
9495
+ -----------------------------------------------------------------------------------
9496
+  (0.1ms) ROLLBACK
9497
+  (0.1ms) BEGIN
9498
+ ------------------------------------------------------------------------------------------
9499
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
9500
+ ------------------------------------------------------------------------------------------
9501
+  (0.1ms) ROLLBACK
9502
+  (0.1ms) BEGIN
9503
+ -----------------------------------------------------------------------------------------
9504
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
9505
+ -----------------------------------------------------------------------------------------
9506
+  (0.1ms) ROLLBACK
9507
+  (0.1ms) BEGIN
9508
+ ---------------------------------------------------------------------------------
9509
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
9510
+ ---------------------------------------------------------------------------------
9511
+  (0.1ms) ROLLBACK
9512
+  (0.1ms) BEGIN
9513
+ ---------------------------------------------------------------------------------
9514
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
9515
+ ---------------------------------------------------------------------------------
9516
+  (0.1ms) ROLLBACK
9517
+  (0.1ms) BEGIN
9518
+ -----------------------------------------------------------------------------------------------
9519
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
9520
+ -----------------------------------------------------------------------------------------------
9521
+  (0.1ms) ROLLBACK
9522
+  (0.1ms) BEGIN
9523
+ -------------------------------------------------------------------------------
9524
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
9525
+ -------------------------------------------------------------------------------
9526
+  (0.1ms) ROLLBACK
9527
+  (0.1ms) BEGIN
9528
+ ----------------------------------------------------------------------------------------------------------------------------------
9529
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
9530
+ ----------------------------------------------------------------------------------------------------------------------------------
9531
+  (0.1ms) ROLLBACK
9532
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9533
+  (0.2ms) BEGIN
9534
+ --------------------------------------------------
9535
+ EmployeesControllerTest: test_should_show_employee
9536
+ --------------------------------------------------
9537
+  (0.1ms) SAVEPOINT active_record_1
9538
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.108157"], ["updated_at", "2016-04-04 15:56:45.108157"]]
9539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9540
+  (0.1ms) SAVEPOINT active_record_1
9541
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.111073"], ["updated_at", "2016-04-04 15:56:45.111073"]]
9542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9543
+ Processing by EmployeesController#show as HTML
9544
+ Parameters: {"id"=>"495"}
9545
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 495]]
9546
+ Rendered employees/show.html.erb within layouts/application (1.0ms)
9547
+ Completed 200 OK in 109ms (Views: 103.7ms | ActiveRecord: 0.3ms)
9548
+  (0.2ms) ROLLBACK
9549
+  (0.1ms) BEGIN
9550
+ ----------------------------------------------------
9551
+ EmployeesControllerTest: test_should_create_employee
9552
+ ----------------------------------------------------
9553
+  (0.1ms) SAVEPOINT active_record_1
9554
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.224511"], ["updated_at", "2016-04-04 15:56:45.224511"]]
9555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9556
+  (0.1ms) SAVEPOINT active_record_1
9557
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.225779"], ["updated_at", "2016-04-04 15:56:45.225779"]]
9558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9559
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9560
+ Processing by EmployeesController#create as HTML
9561
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
9562
+  (0.1ms) SAVEPOINT active_record_1
9563
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:56:45.228970"], ["updated_at", "2016-04-04 15:56:45.228970"]]
9564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9565
+ Redirected to http://test.host/employees/499
9566
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
9567
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9568
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9569
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
9570
+  (0.1ms) ROLLBACK
9571
+  (0.1ms) BEGIN
9572
+ ---------------------------------------------
9573
+ EmployeesControllerTest: test_should_get_edit
9574
+ ---------------------------------------------
9575
+  (0.1ms) SAVEPOINT active_record_1
9576
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.234532"], ["updated_at", "2016-04-04 15:56:45.234532"]]
9577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9578
+  (0.1ms) SAVEPOINT active_record_1
9579
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.235697"], ["updated_at", "2016-04-04 15:56:45.235697"]]
9580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9581
+ Processing by EmployeesController#edit as HTML
9582
+ Parameters: {"id"=>"500"}
9583
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 500]]
9584
+ Rendered employees/_form.html.erb (31.0ms)
9585
+ Rendered employees/edit.html.erb within layouts/application (33.4ms)
9586
+ Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.2ms)
9587
+  (0.2ms) ROLLBACK
9588
+  (0.1ms) BEGIN
9589
+ ----------------------------------------------
9590
+ EmployeesControllerTest: test_should_get_index
9591
+ ----------------------------------------------
9592
+  (0.1ms) SAVEPOINT active_record_1
9593
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.274360"], ["updated_at", "2016-04-04 15:56:45.274360"]]
9594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9595
+  (0.1ms) SAVEPOINT active_record_1
9596
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.275663"], ["updated_at", "2016-04-04 15:56:45.275663"]]
9597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9598
+ Processing by EmployeesController#index as HTML
9599
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
9600
+ Rendered employees/index.html.erb within layouts/application (1.7ms)
9601
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.2ms)
9602
+  (0.1ms) ROLLBACK
9603
+  (0.1ms) BEGIN
9604
+ ----------------------------------------------------
9605
+ EmployeesControllerTest: test_should_update_employee
9606
+ ----------------------------------------------------
9607
+  (0.1ms) SAVEPOINT active_record_1
9608
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.281976"], ["updated_at", "2016-04-04 15:56:45.281976"]]
9609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9610
+  (0.1ms) SAVEPOINT active_record_1
9611
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.283056"], ["updated_at", "2016-04-04 15:56:45.283056"]]
9612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9613
+ Processing by EmployeesController#update as HTML
9614
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"504"}
9615
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 504]]
9616
+  (0.1ms) SAVEPOINT active_record_1
9617
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:56:45.286039"], ["id", 504]]
9618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9619
+ Redirected to http://test.host/employees/504
9620
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
9621
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 504]]
9622
+  (0.1ms) ROLLBACK
9623
+  (0.1ms) BEGIN
9624
+ -----------------------------------------------------
9625
+ EmployeesControllerTest: test_should_destroy_employee
9626
+ -----------------------------------------------------
9627
+  (0.1ms) SAVEPOINT active_record_1
9628
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.289843"], ["updated_at", "2016-04-04 15:56:45.289843"]]
9629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9630
+  (0.1ms) SAVEPOINT active_record_1
9631
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.291029"], ["updated_at", "2016-04-04 15:56:45.291029"]]
9632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9633
+  (0.2ms) SELECT COUNT(*) FROM "employees"
9634
+ Processing by EmployeesController#destroy as HTML
9635
+ Parameters: {"id"=>"506"}
9636
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 506]]
9637
+  (0.1ms) SAVEPOINT active_record_1
9638
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 506]]
9639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9640
+ Redirected to http://test.host/employees
9641
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
9642
+  (0.1ms) SELECT COUNT(*) FROM "employees"
9643
+  (0.1ms) ROLLBACK
9644
+  (0.1ms) BEGIN
9645
+ --------------------------------------------------------------
9646
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
9647
+ --------------------------------------------------------------
9648
+  (0.1ms) SAVEPOINT active_record_1
9649
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.296575"], ["updated_at", "2016-04-04 15:56:45.296575"]]
9650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9651
+  (0.1ms) SAVEPOINT active_record_1
9652
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.297666"], ["updated_at", "2016-04-04 15:56:45.297666"]]
9653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9654
+ Processing by EmployeesController#edit as HTML
9655
+ Parameters: {"id"=>"508"}
9656
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 508]]
9657
+ Rendered employees/_form.html.erb (1.6ms)
9658
+ Rendered employees/edit.html.erb within layouts/application (1.9ms)
9659
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
9660
+  (0.2ms) ROLLBACK
9661
+  (0.1ms) BEGIN
9662
+ --------------------------------------------
9663
+ EmployeesControllerTest: test_should_get_new
9664
+ --------------------------------------------
9665
+  (0.1ms) SAVEPOINT active_record_1
9666
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.305702"], ["updated_at", "2016-04-04 15:56:45.305702"]]
9667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9668
+  (0.1ms) SAVEPOINT active_record_1
9669
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.307062"], ["updated_at", "2016-04-04 15:56:45.307062"]]
9670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9671
+ Processing by EmployeesController#new as HTML
9672
+ Rendered employees/_form.html.erb (1.6ms)
9673
+ Rendered employees/new.html.erb within layouts/application (2.1ms)
9674
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
9675
+  (0.1ms) ROLLBACK
9676
+  (0.1ms) BEGIN
9677
+ ------------------------------------------------------------------------------------------
9678
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
9679
+ ------------------------------------------------------------------------------------------
9680
+  (0.1ms) ROLLBACK
9681
+  (0.1ms) BEGIN
9682
+ --------------------------------------------
9683
+ EmployeeTest: test_nil_dates_raise_no_errors
9684
+ --------------------------------------------
9685
+  (0.1ms) ROLLBACK
9686
+  (0.0ms) BEGIN
9687
+ ---------------------------------------------------------------------------------------------------------
9688
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
9689
+ ---------------------------------------------------------------------------------------------------------
9690
+  (0.1ms) ROLLBACK
9691
+  (0.1ms) BEGIN
9692
+ -------------------------------------------------------------------------
9693
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
9694
+ -------------------------------------------------------------------------
9695
+  (0.1ms) SAVEPOINT active_record_1
9696
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:56:45.317736"], ["updated_at", "2016-04-04 15:56:45.317736"]]
9697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9698
+  (0.0ms) SAVEPOINT active_record_1
9699
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9700
+  (0.1ms) ROLLBACK
9701
+  (0.1ms) BEGIN
9702
+ -----------------------------------------------------------------
9703
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
9704
+ -----------------------------------------------------------------
9705
+  (0.1ms) ROLLBACK
9706
+  (0.1ms) BEGIN
9707
+ --------------------------------------------------------------------------
9708
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
9709
+ --------------------------------------------------------------------------
9710
+  (0.1ms) ROLLBACK
9711
+  (0.1ms) BEGIN
9712
+ ------------------------------------------------------------------------
9713
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
9714
+ ------------------------------------------------------------------------
9715
+  (0.1ms) ROLLBACK
9716
+  (0.1ms) BEGIN
9717
+ ----------------------------------------------------------------------------------------------
9718
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
9719
+ ----------------------------------------------------------------------------------------------
9720
+  (0.1ms) ROLLBACK
9721
+  (0.0ms) BEGIN
9722
+ -------------------------------------------
9723
+ EmployeeTest: test_invalid_day_raises_error
9724
+ -------------------------------------------
9725
+  (0.1ms) ROLLBACK
9726
+  (0.1ms) BEGIN
9727
+ -------------------------------------------------------------------------------------------------------------------
9728
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
9729
+ -------------------------------------------------------------------------------------------------------------------
9730
+  (0.1ms) ROLLBACK
9731
+  (0.1ms) BEGIN
9732
+ -----------------------------------------------------------
9733
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
9734
+ -----------------------------------------------------------
9735
+  (0.1ms) ROLLBACK
9736
+  (0.1ms) BEGIN
9737
+ -----------------------------------------------------------------------
9738
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
9739
+ -----------------------------------------------------------------------
9740
+  (0.1ms) ROLLBACK
9741
+  (0.1ms) BEGIN
9742
+ -----------------------------------------------------------------------------------
9743
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
9744
+ -----------------------------------------------------------------------------------
9745
+  (0.1ms) ROLLBACK
9746
+  (0.1ms) BEGIN
9747
+ ----------------------------------------------------------------------------------------------------------------
9748
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
9749
+ ----------------------------------------------------------------------------------------------------------------
9750
+  (0.1ms) ROLLBACK
9751
+  (0.1ms) BEGIN
9752
+ ----------------------------------------------
9753
+ EmployeeTest: test_valid_dates_raise_no_errors
9754
+ ----------------------------------------------
9755
+  (0.1ms) ROLLBACK
9756
+  (0.1ms) BEGIN
9757
+ -----------------------------------------------------------
9758
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
9759
+ -----------------------------------------------------------
9760
+  (0.1ms) ROLLBACK
9761
+  (0.1ms) BEGIN
9762
+ ---------------------------------------------------------------------
9763
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
9764
+ ---------------------------------------------------------------------
9765
+  (0.1ms) ROLLBACK
9766
+  (0.1ms) BEGIN
9767
+ ---------------------------------------------------------------------
9768
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
9769
+ ---------------------------------------------------------------------
9770
+  (0.1ms) SAVEPOINT active_record_1
9771
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:56:45.329290"], ["updated_at", "2016-04-04 15:56:45.329290"]]
9772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9773
+  (0.1ms) SAVEPOINT active_record_1
9774
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:56:45.330613"], ["id", 513]]
9775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9776
+  (0.1ms) ROLLBACK
9777
+  (0.1ms) BEGIN
9778
+ ---------------------------------------------------------------
9779
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
9780
+ ---------------------------------------------------------------
9781
+  (0.1ms) ROLLBACK
9782
+  (0.1ms) BEGIN
9783
+ ------------------------------------------------------------------------------------------
9784
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
9785
+ ------------------------------------------------------------------------------------------
9786
+  (0.1ms) ROLLBACK
9787
+  (0.1ms) BEGIN
9788
+ -------------------------------------------------------------------------------
9789
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
9790
+ -------------------------------------------------------------------------------
9791
+  (0.1ms) ROLLBACK
9792
+  (0.1ms) BEGIN
9793
+ -----------------------------------------------------------------------------------------
9794
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
9795
+ -----------------------------------------------------------------------------------------
9796
+  (0.1ms) ROLLBACK
9797
+  (0.1ms) BEGIN
9798
+ -----------------------------------------------------------------------------------------------
9799
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
9800
+ -----------------------------------------------------------------------------------------------
9801
+  (0.1ms) ROLLBACK
9802
+  (0.1ms) BEGIN
9803
+ ---------------------------------------------------------------------------------
9804
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
9805
+ ---------------------------------------------------------------------------------
9806
+  (0.1ms) ROLLBACK
9807
+  (0.1ms) BEGIN
9808
+ ---------------------------------------------------------------------------------
9809
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
9810
+ ---------------------------------------------------------------------------------
9811
+  (0.1ms) ROLLBACK
9812
+  (0.1ms) BEGIN
9813
+ ----------------------------------------------------------------------------------------------------------------------------------
9814
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
9815
+ ----------------------------------------------------------------------------------------------------------------------------------
9816
+  (0.1ms) ROLLBACK