gov_uk_date_fields 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5779,3 +5779,2008 @@ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
5779
5779
  SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-01 13:04:18.489826"], ["id", 285]]
5780
5780
   (0.1ms) RELEASE SAVEPOINT active_record_1
5781
5781
   (0.1ms) ROLLBACK
5782
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
5783
+  (0.1ms) BEGIN
5784
+ ----------------------------------------------------
5785
+ EmployeesControllerTest: test_should_update_employee
5786
+ ----------------------------------------------------
5787
+  (0.1ms) SAVEPOINT active_record_1
5788
+ SQL (0.6ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:46.971798"], ["updated_at", "2016-04-04 14:22:46.971798"]]
5789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5790
+  (0.1ms) SAVEPOINT active_record_1
5791
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:46.976772"], ["updated_at", "2016-04-04 14:22:46.976772"]]
5792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5793
+ Processing by EmployeesController#update as HTML
5794
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"286"}
5795
+ Employee Load (0.4ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 286]]
5796
+  (0.1ms) SAVEPOINT active_record_1
5797
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 14:22:46.991783"], ["id", 286]]
5798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5799
+ Redirected to http://test.host/employees/286
5800
+ Completed 302 Found in 12ms (ActiveRecord: 0.7ms)
5801
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 286]]
5802
+  (0.1ms) ROLLBACK
5803
+  (0.1ms) BEGIN
5804
+ ----------------------------------------------------
5805
+ EmployeesControllerTest: test_should_create_employee
5806
+ ----------------------------------------------------
5807
+  (0.1ms) SAVEPOINT active_record_1
5808
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:46.996331"], ["updated_at", "2016-04-04 14:22:46.996331"]]
5809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5810
+  (0.1ms) SAVEPOINT active_record_1
5811
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:46.997478"], ["updated_at", "2016-04-04 14:22:46.997478"]]
5812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5813
+  (0.2ms) SELECT COUNT(*) FROM "employees"
5814
+ Processing by EmployeesController#create as HTML
5815
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
5816
+  (0.1ms) SAVEPOINT active_record_1
5817
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 14:22:47.000388"], ["updated_at", "2016-04-04 14:22:47.000388"]]
5818
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5819
+ Redirected to http://test.host/employees/290
5820
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
5821
+  (0.1ms) SELECT COUNT(*) FROM "employees"
5822
+  (0.1ms) SELECT COUNT(*) FROM "employees"
5823
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
5824
+  (0.1ms) ROLLBACK
5825
+  (0.1ms) BEGIN
5826
+ ----------------------------------------------
5827
+ EmployeesControllerTest: test_should_get_index
5828
+ ----------------------------------------------
5829
+  (0.1ms) SAVEPOINT active_record_1
5830
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.003958"], ["updated_at", "2016-04-04 14:22:47.003958"]]
5831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5832
+  (0.1ms) SAVEPOINT active_record_1
5833
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.004895"], ["updated_at", "2016-04-04 14:22:47.004895"]]
5834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5835
+ Processing by EmployeesController#index as HTML
5836
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
5837
+ Rendered employees/index.html.erb within layouts/application (3.1ms)
5838
+ Completed 200 OK in 131ms (Views: 130.4ms | ActiveRecord: 0.2ms)
5839
+  (0.2ms) ROLLBACK
5840
+  (0.1ms) BEGIN
5841
+ --------------------------------------------
5842
+ EmployeesControllerTest: test_should_get_new
5843
+ --------------------------------------------
5844
+  (0.1ms) SAVEPOINT active_record_1
5845
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.138826"], ["updated_at", "2016-04-04 14:22:47.138826"]]
5846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5847
+  (0.1ms) SAVEPOINT active_record_1
5848
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.140172"], ["updated_at", "2016-04-04 14:22:47.140172"]]
5849
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5850
+ Processing by EmployeesController#new as HTML
5851
+ Rendered employees/_form.html.erb (12.9ms)
5852
+ Rendered employees/new.html.erb within layouts/application (17.5ms)
5853
+ Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.0ms)
5854
+  (0.1ms) ROLLBACK
5855
+  (0.1ms) BEGIN
5856
+ --------------------------------------------------
5857
+ EmployeesControllerTest: test_should_show_employee
5858
+ --------------------------------------------------
5859
+  (0.1ms) SAVEPOINT active_record_1
5860
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.163042"], ["updated_at", "2016-04-04 14:22:47.163042"]]
5861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5862
+  (0.1ms) SAVEPOINT active_record_1
5863
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.164342"], ["updated_at", "2016-04-04 14:22:47.164342"]]
5864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5865
+ Processing by EmployeesController#show as HTML
5866
+ Parameters: {"id"=>"295"}
5867
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 295]]
5868
+ Rendered employees/show.html.erb within layouts/application (1.0ms)
5869
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
5870
+  (0.2ms) ROLLBACK
5871
+  (0.1ms) BEGIN
5872
+ -----------------------------------------------------
5873
+ EmployeesControllerTest: test_should_destroy_employee
5874
+ -----------------------------------------------------
5875
+  (0.1ms) SAVEPOINT active_record_1
5876
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.171567"], ["updated_at", "2016-04-04 14:22:47.171567"]]
5877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5878
+  (0.1ms) SAVEPOINT active_record_1
5879
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.172995"], ["updated_at", "2016-04-04 14:22:47.172995"]]
5880
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5881
+  (0.2ms) SELECT COUNT(*) FROM "employees"
5882
+ Processing by EmployeesController#destroy as HTML
5883
+ Parameters: {"id"=>"297"}
5884
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 297]]
5885
+  (0.1ms) SAVEPOINT active_record_1
5886
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 297]]
5887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5888
+ Redirected to http://test.host/employees
5889
+ Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
5890
+  (0.1ms) SELECT COUNT(*) FROM "employees"
5891
+  (0.1ms) ROLLBACK
5892
+  (0.1ms) BEGIN
5893
+ --------------------------------------------------------------
5894
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
5895
+ --------------------------------------------------------------
5896
+  (0.1ms) SAVEPOINT active_record_1
5897
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.180099"], ["updated_at", "2016-04-04 14:22:47.180099"]]
5898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5899
+  (0.1ms) SAVEPOINT active_record_1
5900
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.181167"], ["updated_at", "2016-04-04 14:22:47.181167"]]
5901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5902
+ Processing by EmployeesController#edit as HTML
5903
+ Parameters: {"id"=>"299"}
5904
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 299]]
5905
+ Rendered employees/_form.html.erb (2.2ms)
5906
+ Rendered employees/edit.html.erb within layouts/application (3.0ms)
5907
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)
5908
+  (0.1ms) ROLLBACK
5909
+  (0.1ms) BEGIN
5910
+ ---------------------------------------------
5911
+ EmployeesControllerTest: test_should_get_edit
5912
+ ---------------------------------------------
5913
+  (0.1ms) SAVEPOINT active_record_1
5914
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:22:47.191239"], ["updated_at", "2016-04-04 14:22:47.191239"]]
5915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5916
+  (0.1ms) SAVEPOINT active_record_1
5917
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:22:47.192404"], ["updated_at", "2016-04-04 14:22:47.192404"]]
5918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5919
+ Processing by EmployeesController#edit as HTML
5920
+ Parameters: {"id"=>"301"}
5921
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 301]]
5922
+ Rendered employees/_form.html.erb (2.1ms)
5923
+ Rendered employees/edit.html.erb within layouts/application (2.4ms)
5924
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
5925
+  (0.1ms) ROLLBACK
5926
+  (0.1ms) BEGIN
5927
+ ---------------------------------------------------------------------------------
5928
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
5929
+ ---------------------------------------------------------------------------------
5930
+  (0.1ms) ROLLBACK
5931
+  (0.0ms) BEGIN
5932
+ ---------------------------------------------------------------------------------
5933
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
5934
+ ---------------------------------------------------------------------------------
5935
+  (0.1ms) ROLLBACK
5936
+  (0.1ms) BEGIN
5937
+ ------------------------------------------------------------------------------------------
5938
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
5939
+ ------------------------------------------------------------------------------------------
5940
+  (0.1ms) ROLLBACK
5941
+  (0.1ms) BEGIN
5942
+ ----------------------------------------------------------------------------------------------------------------------------------
5943
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
5944
+ ----------------------------------------------------------------------------------------------------------------------------------
5945
+  (0.1ms) ROLLBACK
5946
+  (0.1ms) BEGIN
5947
+ -------------------------------------------------------------------------------
5948
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
5949
+ -------------------------------------------------------------------------------
5950
+  (0.1ms) ROLLBACK
5951
+  (0.1ms) BEGIN
5952
+ -----------------------------------------------------------------------------------------------
5953
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
5954
+ -----------------------------------------------------------------------------------------------
5955
+  (0.1ms) ROLLBACK
5956
+  (0.1ms) BEGIN
5957
+ -----------------------------------------------------------------------------------------
5958
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
5959
+ -----------------------------------------------------------------------------------------
5960
+  (0.1ms) ROLLBACK
5961
+  (0.1ms) BEGIN
5962
+ ------------------------------------------
5963
+ GovUkDateFieldsTest: test_fieldset_with_id
5964
+ ------------------------------------------
5965
+  (0.1ms) ROLLBACK
5966
+  (0.1ms) BEGIN
5967
+ -------------------------------------------------------------
5968
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
5969
+ -------------------------------------------------------------
5970
+  (0.1ms) ROLLBACK
5971
+  (0.1ms) BEGIN
5972
+ ---------------------------------------------------------------
5973
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
5974
+ ---------------------------------------------------------------
5975
+  (0.1ms) ROLLBACK
5976
+  (0.1ms) BEGIN
5977
+ -------------------------------------------------------
5978
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
5979
+ -------------------------------------------------------
5980
+  (0.1ms) ROLLBACK
5981
+  (0.1ms) BEGIN
5982
+ -------------------------------------
5983
+ GovUkDateFieldsTest: test_squash_html
5984
+ -------------------------------------
5985
+  (0.1ms) ROLLBACK
5986
+  (0.1ms) BEGIN
5987
+ -----------------------------------------------------------
5988
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
5989
+ -----------------------------------------------------------
5990
+  (0.1ms) ROLLBACK
5991
+  (0.1ms) BEGIN
5992
+ --------------------------------------------------------
5993
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
5994
+ --------------------------------------------------------
5995
+  (0.1ms) ROLLBACK
5996
+  (0.1ms) BEGIN
5997
+ -----------------------------------------------------------
5998
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
5999
+ -----------------------------------------------------------
6000
+  (0.1ms) ROLLBACK
6001
+  (0.1ms) BEGIN
6002
+ ---------------------------------------------------------------------------------------------------------
6003
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
6004
+ ---------------------------------------------------------------------------------------------------------
6005
+  (0.1ms) ROLLBACK
6006
+  (0.1ms) BEGIN
6007
+ ----------------------------------------------------------------------------------------------
6008
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
6009
+ ----------------------------------------------------------------------------------------------
6010
+  (0.1ms) ROLLBACK
6011
+  (0.1ms) BEGIN
6012
+ -----------------------------------------------------------------
6013
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
6014
+ -----------------------------------------------------------------
6015
+  (0.1ms) ROLLBACK
6016
+  (0.1ms) BEGIN
6017
+ -------------------------------------------
6018
+ EmployeeTest: test_invalid_day_raises_error
6019
+ -------------------------------------------
6020
+  (0.1ms) ROLLBACK
6021
+  (0.1ms) BEGIN
6022
+ --------------------------------------------
6023
+ EmployeeTest: test_nil_dates_raise_no_errors
6024
+ --------------------------------------------
6025
+  (0.1ms) ROLLBACK
6026
+  (0.1ms) BEGIN
6027
+ -----------------------------------------------------------------------------------
6028
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
6029
+ -----------------------------------------------------------------------------------
6030
+  (0.1ms) ROLLBACK
6031
+  (0.1ms) BEGIN
6032
+ -----------------------------------------------------------
6033
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
6034
+ -----------------------------------------------------------
6035
+  (0.1ms) ROLLBACK
6036
+  (0.1ms) BEGIN
6037
+ ----------------------------------------------
6038
+ EmployeeTest: test_valid_dates_raise_no_errors
6039
+ ----------------------------------------------
6040
+  (0.2ms) ROLLBACK
6041
+  (0.1ms) BEGIN
6042
+ ------------------------------------------------------------------------
6043
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
6044
+ ------------------------------------------------------------------------
6045
+  (0.1ms) ROLLBACK
6046
+  (0.1ms) BEGIN
6047
+ --------------------------------------------------------------------------
6048
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
6049
+ --------------------------------------------------------------------------
6050
+  (0.1ms) ROLLBACK
6051
+  (0.1ms) BEGIN
6052
+ -------------------------------------------------------------------------------------------------------------------
6053
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
6054
+ -------------------------------------------------------------------------------------------------------------------
6055
+  (0.1ms) ROLLBACK
6056
+  (0.1ms) BEGIN
6057
+ ----------------------------------------------------------------------------------------------------------------
6058
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
6059
+ ----------------------------------------------------------------------------------------------------------------
6060
+  (0.1ms) ROLLBACK
6061
+  (0.1ms) BEGIN
6062
+ ---------------------------------------------------------------------
6063
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
6064
+ ---------------------------------------------------------------------
6065
+  (0.1ms) ROLLBACK
6066
+  (0.1ms) BEGIN
6067
+ ------------------------------------------------------------------------------------------
6068
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
6069
+ ------------------------------------------------------------------------------------------
6070
+  (0.1ms) ROLLBACK
6071
+  (0.0ms) BEGIN
6072
+ -------------------------------------------------------------------------
6073
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
6074
+ -------------------------------------------------------------------------
6075
+  (0.1ms) SAVEPOINT active_record_1
6076
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:22:47.250590"], ["updated_at", "2016-04-04 14:22:47.250590"]]
6077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6078
+  (0.1ms) SAVEPOINT active_record_1
6079
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
6080
+  (0.1ms) ROLLBACK
6081
+  (0.1ms) BEGIN
6082
+ -----------------------------------------------------------------------
6083
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
6084
+ -----------------------------------------------------------------------
6085
+  (0.1ms) ROLLBACK
6086
+  (0.1ms) BEGIN
6087
+ ---------------------------------------------------------------------
6088
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
6089
+ ---------------------------------------------------------------------
6090
+  (0.1ms) SAVEPOINT active_record_1
6091
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:22:47.253523"], ["updated_at", "2016-04-04 14:22:47.253523"]]
6092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6093
+  (0.1ms) SAVEPOINT active_record_1
6094
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 14:22:47.254542"], ["id", 304]]
6095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6096
+  (0.1ms) ROLLBACK
6097
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6098
+  (0.2ms) BEGIN
6099
+ -------------------------------------------------------
6100
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
6101
+ -------------------------------------------------------
6102
+  (0.1ms) ROLLBACK
6103
+  (0.2ms) BEGIN
6104
+ ---------------------------------------------------------------
6105
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
6106
+ ---------------------------------------------------------------
6107
+  (0.1ms) ROLLBACK
6108
+  (0.1ms) BEGIN
6109
+ -------------------------------------------------------------
6110
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
6111
+ -------------------------------------------------------------
6112
+  (0.1ms) ROLLBACK
6113
+  (0.1ms) BEGIN
6114
+ -----------------------------------------------------------
6115
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
6116
+ -----------------------------------------------------------
6117
+  (0.1ms) ROLLBACK
6118
+  (0.1ms) BEGIN
6119
+ ------------------------------------------
6120
+ GovUkDateFieldsTest: test_fieldset_with_id
6121
+ ------------------------------------------
6122
+  (0.1ms) ROLLBACK
6123
+  (0.1ms) BEGIN
6124
+ -------------------------------------
6125
+ GovUkDateFieldsTest: test_squash_html
6126
+ -------------------------------------
6127
+  (0.1ms) ROLLBACK
6128
+  (0.1ms) BEGIN
6129
+ --------------------------------------------------------
6130
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
6131
+ --------------------------------------------------------
6132
+  (0.1ms) ROLLBACK
6133
+  (0.1ms) BEGIN
6134
+ ---------------------------------------------------------------------------------
6135
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
6136
+ ---------------------------------------------------------------------------------
6137
+  (0.1ms) ROLLBACK
6138
+  (0.1ms) BEGIN
6139
+ -----------------------------------------------------------------------------------------------
6140
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
6141
+ -----------------------------------------------------------------------------------------------
6142
+  (0.2ms) ROLLBACK
6143
+  (0.1ms) BEGIN
6144
+ ------------------------------------------------------------------------------------------
6145
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
6146
+ ------------------------------------------------------------------------------------------
6147
+  (0.1ms) ROLLBACK
6148
+  (0.1ms) BEGIN
6149
+ -------------------------------------------------------------------------------
6150
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
6151
+ -------------------------------------------------------------------------------
6152
+  (0.1ms) ROLLBACK
6153
+  (0.1ms) BEGIN
6154
+ -----------------------------------------------------------------------------------------
6155
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
6156
+ -----------------------------------------------------------------------------------------
6157
+  (0.1ms) ROLLBACK
6158
+  (0.1ms) BEGIN
6159
+ ---------------------------------------------------------------------------------
6160
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
6161
+ ---------------------------------------------------------------------------------
6162
+  (0.1ms) ROLLBACK
6163
+  (0.1ms) BEGIN
6164
+ ----------------------------------------------------------------------------------------------------------------------------------
6165
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
6166
+ ----------------------------------------------------------------------------------------------------------------------------------
6167
+  (0.1ms) ROLLBACK
6168
+  (0.1ms) BEGIN
6169
+ ---------------------------------------------------------------------
6170
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
6171
+ ---------------------------------------------------------------------
6172
+  (0.1ms) ROLLBACK
6173
+  (0.1ms) BEGIN
6174
+ -----------------------------------------------------------
6175
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
6176
+ -----------------------------------------------------------
6177
+  (0.1ms) ROLLBACK
6178
+  (0.1ms) BEGIN
6179
+ -------------------------------------------
6180
+ EmployeeTest: test_invalid_day_raises_error
6181
+ -------------------------------------------
6182
+  (0.1ms) ROLLBACK
6183
+  (0.1ms) BEGIN
6184
+ ----------------------------------------------------------------------------------------------------------------
6185
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
6186
+ ----------------------------------------------------------------------------------------------------------------
6187
+  (0.1ms) ROLLBACK
6188
+  (0.1ms) BEGIN
6189
+ -----------------------------------------------------------------------------------
6190
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
6191
+ -----------------------------------------------------------------------------------
6192
+  (0.1ms) ROLLBACK
6193
+  (0.1ms) BEGIN
6194
+ --------------------------------------------------------------------------
6195
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
6196
+ --------------------------------------------------------------------------
6197
+  (0.1ms) ROLLBACK
6198
+  (0.0ms) BEGIN
6199
+ -------------------------------------------------------------------------------------------------------------------
6200
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
6201
+ -------------------------------------------------------------------------------------------------------------------
6202
+  (0.1ms) ROLLBACK
6203
+  (0.1ms) BEGIN
6204
+ -------------------------------------------------------------------------
6205
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
6206
+ -------------------------------------------------------------------------
6207
+  (0.1ms) SAVEPOINT active_record_1
6208
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:23:39.049474"], ["updated_at", "2016-04-04 14:23:39.049474"]]
6209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6210
+  (0.0ms) SAVEPOINT active_record_1
6211
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
6212
+  (0.1ms) ROLLBACK
6213
+  (0.1ms) BEGIN
6214
+ ---------------------------------------------------------------------------------------------------------
6215
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
6216
+ ---------------------------------------------------------------------------------------------------------
6217
+  (0.1ms) ROLLBACK
6218
+  (0.1ms) BEGIN
6219
+ ----------------------------------------------
6220
+ EmployeeTest: test_valid_dates_raise_no_errors
6221
+ ----------------------------------------------
6222
+  (0.1ms) ROLLBACK
6223
+  (0.1ms) BEGIN
6224
+ -----------------------------------------------------------------
6225
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
6226
+ -----------------------------------------------------------------
6227
+  (0.1ms) ROLLBACK
6228
+  (0.1ms) BEGIN
6229
+ -----------------------------------------------------------------------
6230
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
6231
+ -----------------------------------------------------------------------
6232
+  (0.1ms) ROLLBACK
6233
+  (0.0ms) BEGIN
6234
+ ------------------------------------------------------------------------
6235
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
6236
+ ------------------------------------------------------------------------
6237
+  (0.1ms) ROLLBACK
6238
+  (0.1ms) BEGIN
6239
+ ----------------------------------------------------------------------------------------------
6240
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
6241
+ ----------------------------------------------------------------------------------------------
6242
+  (0.1ms) ROLLBACK
6243
+  (0.0ms) BEGIN
6244
+ ------------------------------------------------------------------------------------------
6245
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
6246
+ ------------------------------------------------------------------------------------------
6247
+  (0.1ms) ROLLBACK
6248
+  (0.1ms) BEGIN
6249
+ ---------------------------------------------------------------------
6250
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
6251
+ ---------------------------------------------------------------------
6252
+  (0.1ms) SAVEPOINT active_record_1
6253
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:23:39.058706"], ["updated_at", "2016-04-04 14:23:39.058706"]]
6254
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6255
+  (0.1ms) SAVEPOINT active_record_1
6256
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 14:23:39.059814"], ["id", 306]]
6257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6258
+  (0.1ms) ROLLBACK
6259
+  (0.1ms) BEGIN
6260
+ --------------------------------------------
6261
+ EmployeeTest: test_nil_dates_raise_no_errors
6262
+ --------------------------------------------
6263
+  (0.1ms) ROLLBACK
6264
+  (0.1ms) BEGIN
6265
+ -----------------------------------------------------------
6266
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
6267
+ -----------------------------------------------------------
6268
+  (0.1ms) ROLLBACK
6269
+  (0.0ms) BEGIN
6270
+ ----------------------------------------------
6271
+ EmployeesControllerTest: test_should_get_index
6272
+ ----------------------------------------------
6273
+  (0.1ms) SAVEPOINT active_record_1
6274
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.090610"], ["updated_at", "2016-04-04 14:23:39.090610"]]
6275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6276
+  (0.1ms) SAVEPOINT active_record_1
6277
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.091806"], ["updated_at", "2016-04-04 14:23:39.091806"]]
6278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6279
+ Processing by EmployeesController#index as HTML
6280
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees"
6281
+ Rendered employees/index.html.erb within layouts/application (2.5ms)
6282
+ Completed 200 OK in 103ms (Views: 102.3ms | ActiveRecord: 0.3ms)
6283
+  (0.2ms) ROLLBACK
6284
+  (0.1ms) BEGIN
6285
+ ----------------------------------------------------
6286
+ EmployeesControllerTest: test_should_update_employee
6287
+ ----------------------------------------------------
6288
+  (0.1ms) SAVEPOINT active_record_1
6289
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.198503"], ["updated_at", "2016-04-04 14:23:39.198503"]]
6290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6291
+  (0.1ms) SAVEPOINT active_record_1
6292
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.199732"], ["updated_at", "2016-04-04 14:23:39.199732"]]
6293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6294
+ Processing by EmployeesController#update as HTML
6295
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"309"}
6296
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 309]]
6297
+  (0.1ms) SAVEPOINT active_record_1
6298
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 14:23:39.204407"], ["id", 309]]
6299
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6300
+ Redirected to http://test.host/employees/309
6301
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
6302
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 309]]
6303
+  (0.1ms) ROLLBACK
6304
+  (0.1ms) BEGIN
6305
+ ---------------------------------------------
6306
+ EmployeesControllerTest: test_should_get_edit
6307
+ ---------------------------------------------
6308
+  (0.1ms) SAVEPOINT active_record_1
6309
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.208224"], ["updated_at", "2016-04-04 14:23:39.208224"]]
6310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6311
+  (0.1ms) SAVEPOINT active_record_1
6312
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.209273"], ["updated_at", "2016-04-04 14:23:39.209273"]]
6313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6314
+ Processing by EmployeesController#edit as HTML
6315
+ Parameters: {"id"=>"311"}
6316
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 311]]
6317
+ Rendered employees/_form.html.erb (5.2ms)
6318
+ Rendered employees/edit.html.erb within layouts/application (7.9ms)
6319
+ Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms)
6320
+  (0.1ms) ROLLBACK
6321
+  (0.1ms) BEGIN
6322
+ ----------------------------------------------------
6323
+ EmployeesControllerTest: test_should_create_employee
6324
+ ----------------------------------------------------
6325
+  (0.1ms) SAVEPOINT active_record_1
6326
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.222201"], ["updated_at", "2016-04-04 14:23:39.222201"]]
6327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6328
+  (0.1ms) SAVEPOINT active_record_1
6329
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.223382"], ["updated_at", "2016-04-04 14:23:39.223382"]]
6330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6331
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6332
+ Processing by EmployeesController#create as HTML
6333
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
6334
+  (0.1ms) SAVEPOINT active_record_1
6335
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 14:23:39.226267"], ["updated_at", "2016-04-04 14:23:39.226267"]]
6336
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6337
+ Redirected to http://test.host/employees/315
6338
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
6339
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6340
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6341
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
6342
+  (0.1ms) ROLLBACK
6343
+  (0.1ms) BEGIN
6344
+ -----------------------------------------------------
6345
+ EmployeesControllerTest: test_should_destroy_employee
6346
+ -----------------------------------------------------
6347
+  (0.1ms) SAVEPOINT active_record_1
6348
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.230733"], ["updated_at", "2016-04-04 14:23:39.230733"]]
6349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6350
+  (0.1ms) SAVEPOINT active_record_1
6351
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.231771"], ["updated_at", "2016-04-04 14:23:39.231771"]]
6352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6353
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6354
+ Processing by EmployeesController#destroy as HTML
6355
+ Parameters: {"id"=>"316"}
6356
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 316]]
6357
+  (0.1ms) SAVEPOINT active_record_1
6358
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 316]]
6359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6360
+ Redirected to http://test.host/employees
6361
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
6362
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6363
+  (0.1ms) ROLLBACK
6364
+  (0.1ms) BEGIN
6365
+ --------------------------------------------
6366
+ EmployeesControllerTest: test_should_get_new
6367
+ --------------------------------------------
6368
+  (0.1ms) SAVEPOINT active_record_1
6369
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.236966"], ["updated_at", "2016-04-04 14:23:39.236966"]]
6370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6371
+  (0.1ms) SAVEPOINT active_record_1
6372
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.238096"], ["updated_at", "2016-04-04 14:23:39.238096"]]
6373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6374
+ Processing by EmployeesController#new as HTML
6375
+ Rendered employees/_form.html.erb (1.3ms)
6376
+ Rendered employees/new.html.erb within layouts/application (1.8ms)
6377
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
6378
+  (0.1ms) ROLLBACK
6379
+  (0.1ms) BEGIN
6380
+ --------------------------------------------------------------
6381
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
6382
+ --------------------------------------------------------------
6383
+  (0.1ms) SAVEPOINT active_record_1
6384
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.245066"], ["updated_at", "2016-04-04 14:23:39.245066"]]
6385
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6386
+  (0.1ms) SAVEPOINT active_record_1
6387
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.267858"], ["updated_at", "2016-04-04 14:23:39.267858"]]
6388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6389
+ Processing by EmployeesController#edit as HTML
6390
+ Parameters: {"id"=>"320"}
6391
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 320]]
6392
+ Rendered employees/_form.html.erb (1.6ms)
6393
+ Rendered employees/edit.html.erb within layouts/application (1.8ms)
6394
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
6395
+  (0.1ms) ROLLBACK
6396
+  (0.1ms) BEGIN
6397
+ --------------------------------------------------
6398
+ EmployeesControllerTest: test_should_show_employee
6399
+ --------------------------------------------------
6400
+  (0.1ms) SAVEPOINT active_record_1
6401
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:23:39.275987"], ["updated_at", "2016-04-04 14:23:39.275987"]]
6402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6403
+  (0.1ms) SAVEPOINT active_record_1
6404
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.277292"], ["updated_at", "2016-04-04 14:23:39.277292"]]
6405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6406
+ Processing by EmployeesController#show as HTML
6407
+ Parameters: {"id"=>"322"}
6408
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 322]]
6409
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
6410
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
6411
+  (0.2ms) ROLLBACK
6412
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6413
+  (0.2ms) BEGIN
6414
+ ----------------------------------------------------------------------------------------------------------------------------------
6415
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
6416
+ ----------------------------------------------------------------------------------------------------------------------------------
6417
+  (0.1ms) ROLLBACK
6418
+  (0.1ms) BEGIN
6419
+ -----------------------------------------------------------------------------------------
6420
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
6421
+ -----------------------------------------------------------------------------------------
6422
+  (0.1ms) ROLLBACK
6423
+  (0.1ms) BEGIN
6424
+ ---------------------------------------------------------------------------------
6425
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
6426
+ ---------------------------------------------------------------------------------
6427
+  (0.1ms) ROLLBACK
6428
+  (0.1ms) BEGIN
6429
+ -----------------------------------------------------------------------------------------------
6430
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
6431
+ -----------------------------------------------------------------------------------------------
6432
+  (0.1ms) ROLLBACK
6433
+  (0.1ms) BEGIN
6434
+ ------------------------------------------------------------------------------------------
6435
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
6436
+ ------------------------------------------------------------------------------------------
6437
+  (0.1ms) ROLLBACK
6438
+  (0.1ms) BEGIN
6439
+ -------------------------------------------------------------------------------
6440
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
6441
+ -------------------------------------------------------------------------------
6442
+  (0.1ms) ROLLBACK
6443
+  (0.1ms) BEGIN
6444
+ ---------------------------------------------------------------------------------
6445
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
6446
+ ---------------------------------------------------------------------------------
6447
+  (0.1ms) ROLLBACK
6448
+  (0.1ms) BEGIN
6449
+ -----------------------------------------------------------
6450
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
6451
+ -----------------------------------------------------------
6452
+  (0.1ms) ROLLBACK
6453
+  (0.1ms) BEGIN
6454
+ ---------------------------------------------------------------------------------------------------------
6455
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
6456
+ ---------------------------------------------------------------------------------------------------------
6457
+  (0.1ms) ROLLBACK
6458
+  (0.1ms) BEGIN
6459
+ -----------------------------------------------------------
6460
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
6461
+ -----------------------------------------------------------
6462
+  (0.1ms) ROLLBACK
6463
+  (0.1ms) BEGIN
6464
+ ----------------------------------------------------------------------------------------------------------------
6465
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
6466
+ ----------------------------------------------------------------------------------------------------------------
6467
+  (0.1ms) ROLLBACK
6468
+  (0.1ms) BEGIN
6469
+ ----------------------------------------------------------------------------------------------
6470
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
6471
+ ----------------------------------------------------------------------------------------------
6472
+  (0.1ms) ROLLBACK
6473
+  (0.1ms) BEGIN
6474
+ -------------------------------------------
6475
+ EmployeeTest: test_invalid_day_raises_error
6476
+ -------------------------------------------
6477
+  (0.1ms) ROLLBACK
6478
+  (0.1ms) BEGIN
6479
+ ---------------------------------------------------------------------
6480
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
6481
+ ---------------------------------------------------------------------
6482
+  (0.1ms) SAVEPOINT active_record_1
6483
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:24:11.900636"], ["updated_at", "2016-04-04 14:24:11.900636"]]
6484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6485
+  (0.1ms) SAVEPOINT active_record_1
6486
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 14:24:11.904146"], ["id", 324]]
6487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6488
+  (0.1ms) ROLLBACK
6489
+  (0.1ms) BEGIN
6490
+ -------------------------------------------------------------------------
6491
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
6492
+ -------------------------------------------------------------------------
6493
+  (0.1ms) SAVEPOINT active_record_1
6494
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:24:11.908601"], ["updated_at", "2016-04-04 14:24:11.908601"]]
6495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6496
+  (0.1ms) SAVEPOINT active_record_1
6497
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
6498
+  (0.1ms) ROLLBACK
6499
+  (0.1ms) BEGIN
6500
+ ------------------------------------------------------------------------------------------
6501
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
6502
+ ------------------------------------------------------------------------------------------
6503
+  (0.1ms) ROLLBACK
6504
+  (0.1ms) BEGIN
6505
+ -------------------------------------------------------------------------------------------------------------------
6506
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
6507
+ -------------------------------------------------------------------------------------------------------------------
6508
+  (0.1ms) ROLLBACK
6509
+  (0.1ms) BEGIN
6510
+ ------------------------------------------------------------------------
6511
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
6512
+ ------------------------------------------------------------------------
6513
+  (0.1ms) ROLLBACK
6514
+  (0.1ms) BEGIN
6515
+ -----------------------------------------------------------------------
6516
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
6517
+ -----------------------------------------------------------------------
6518
+  (0.1ms) ROLLBACK
6519
+  (0.1ms) BEGIN
6520
+ --------------------------------------------
6521
+ EmployeeTest: test_nil_dates_raise_no_errors
6522
+ --------------------------------------------
6523
+  (0.1ms) ROLLBACK
6524
+  (0.1ms) BEGIN
6525
+ --------------------------------------------------------------------------
6526
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
6527
+ --------------------------------------------------------------------------
6528
+  (0.1ms) ROLLBACK
6529
+  (0.1ms) BEGIN
6530
+ -----------------------------------------------------------------
6531
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
6532
+ -----------------------------------------------------------------
6533
+  (0.1ms) ROLLBACK
6534
+  (0.0ms) BEGIN
6535
+ -----------------------------------------------------------------------------------
6536
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
6537
+ -----------------------------------------------------------------------------------
6538
+  (0.1ms) ROLLBACK
6539
+  (0.1ms) BEGIN
6540
+ ----------------------------------------------
6541
+ EmployeeTest: test_valid_dates_raise_no_errors
6542
+ ----------------------------------------------
6543
+  (0.1ms) ROLLBACK
6544
+  (0.1ms) BEGIN
6545
+ ---------------------------------------------------------------------
6546
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
6547
+ ---------------------------------------------------------------------
6548
+  (0.1ms) ROLLBACK
6549
+  (0.1ms) BEGIN
6550
+ ----------------------------------------------------
6551
+ EmployeesControllerTest: test_should_update_employee
6552
+ ----------------------------------------------------
6553
+  (0.2ms) SAVEPOINT active_record_1
6554
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:11.951454"], ["updated_at", "2016-04-04 14:24:11.951454"]]
6555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6556
+  (0.1ms) SAVEPOINT active_record_1
6557
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:11.952695"], ["updated_at", "2016-04-04 14:24:11.952695"]]
6558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6559
+ Processing by EmployeesController#update as HTML
6560
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"326"}
6561
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]
6562
+  (0.1ms) SAVEPOINT active_record_1
6563
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 14:24:11.958841"], ["id", 326]]
6564
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6565
+ Redirected to http://test.host/employees/326
6566
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
6567
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]
6568
+  (0.1ms) ROLLBACK
6569
+  (0.8ms) BEGIN
6570
+ ----------------------------------------------
6571
+ EmployeesControllerTest: test_should_get_index
6572
+ ----------------------------------------------
6573
+  (0.1ms) SAVEPOINT active_record_1
6574
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:11.963685"], ["updated_at", "2016-04-04 14:24:11.963685"]]
6575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6576
+  (0.1ms) SAVEPOINT active_record_1
6577
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:11.964895"], ["updated_at", "2016-04-04 14:24:11.964895"]]
6578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6579
+ Processing by EmployeesController#index as HTML
6580
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees"
6581
+ Rendered employees/index.html.erb within layouts/application (2.0ms)
6582
+ Completed 200 OK in 106ms (Views: 105.5ms | ActiveRecord: 0.1ms)
6583
+  (0.2ms) ROLLBACK
6584
+  (0.1ms) BEGIN
6585
+ --------------------------------------------------
6586
+ EmployeesControllerTest: test_should_show_employee
6587
+ --------------------------------------------------
6588
+  (0.1ms) SAVEPOINT active_record_1
6589
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.073577"], ["updated_at", "2016-04-04 14:24:12.073577"]]
6590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6591
+  (0.1ms) SAVEPOINT active_record_1
6592
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.074837"], ["updated_at", "2016-04-04 14:24:12.074837"]]
6593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6594
+ Processing by EmployeesController#show as HTML
6595
+ Parameters: {"id"=>"330"}
6596
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 330]]
6597
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
6598
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
6599
+  (0.1ms) ROLLBACK
6600
+  (0.1ms) BEGIN
6601
+ --------------------------------------------
6602
+ EmployeesControllerTest: test_should_get_new
6603
+ --------------------------------------------
6604
+  (0.1ms) SAVEPOINT active_record_1
6605
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.079608"], ["updated_at", "2016-04-04 14:24:12.079608"]]
6606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6607
+  (0.1ms) SAVEPOINT active_record_1
6608
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.080642"], ["updated_at", "2016-04-04 14:24:12.080642"]]
6609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6610
+ Processing by EmployeesController#new as HTML
6611
+ Rendered employees/_form.html.erb (7.0ms)
6612
+ Rendered employees/new.html.erb within layouts/application (9.1ms)
6613
+ Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)
6614
+  (0.2ms) ROLLBACK
6615
+  (0.1ms) BEGIN
6616
+ ----------------------------------------------------
6617
+ EmployeesControllerTest: test_should_create_employee
6618
+ ----------------------------------------------------
6619
+  (0.1ms) SAVEPOINT active_record_1
6620
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.093996"], ["updated_at", "2016-04-04 14:24:12.093996"]]
6621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6622
+  (0.1ms) SAVEPOINT active_record_1
6623
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.095198"], ["updated_at", "2016-04-04 14:24:12.095198"]]
6624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6625
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6626
+ Processing by EmployeesController#create as HTML
6627
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
6628
+  (0.1ms) SAVEPOINT active_record_1
6629
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 14:24:12.098813"], ["updated_at", "2016-04-04 14:24:12.098813"]]
6630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6631
+ Redirected to http://test.host/employees/336
6632
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
6633
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6634
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6635
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
6636
+  (0.1ms) ROLLBACK
6637
+  (0.1ms) BEGIN
6638
+ --------------------------------------------------------------
6639
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
6640
+ --------------------------------------------------------------
6641
+  (0.1ms) SAVEPOINT active_record_1
6642
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.102463"], ["updated_at", "2016-04-04 14:24:12.102463"]]
6643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6644
+  (0.1ms) SAVEPOINT active_record_1
6645
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.103474"], ["updated_at", "2016-04-04 14:24:12.103474"]]
6646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6647
+ Processing by EmployeesController#edit as HTML
6648
+ Parameters: {"id"=>"337"}
6649
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 337]]
6650
+ Rendered employees/_form.html.erb (1.4ms)
6651
+ Rendered employees/edit.html.erb within layouts/application (1.8ms)
6652
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
6653
+  (0.1ms) ROLLBACK
6654
+  (0.0ms) BEGIN
6655
+ ---------------------------------------------
6656
+ EmployeesControllerTest: test_should_get_edit
6657
+ ---------------------------------------------
6658
+  (0.1ms) SAVEPOINT active_record_1
6659
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.126600"], ["updated_at", "2016-04-04 14:24:12.126600"]]
6660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6661
+  (0.1ms) SAVEPOINT active_record_1
6662
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.127733"], ["updated_at", "2016-04-04 14:24:12.127733"]]
6663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6664
+ Processing by EmployeesController#edit as HTML
6665
+ Parameters: {"id"=>"339"}
6666
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 339]]
6667
+ Rendered employees/_form.html.erb (1.4ms)
6668
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
6669
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
6670
+  (0.1ms) ROLLBACK
6671
+  (0.0ms) BEGIN
6672
+ -----------------------------------------------------
6673
+ EmployeesControllerTest: test_should_destroy_employee
6674
+ -----------------------------------------------------
6675
+  (0.1ms) SAVEPOINT active_record_1
6676
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:24:12.133007"], ["updated_at", "2016-04-04 14:24:12.133007"]]
6677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6678
+  (0.1ms) SAVEPOINT active_record_1
6679
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:24:12.134078"], ["updated_at", "2016-04-04 14:24:12.134078"]]
6680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6681
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6682
+ Processing by EmployeesController#destroy as HTML
6683
+ Parameters: {"id"=>"341"}
6684
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 341]]
6685
+  (0.1ms) SAVEPOINT active_record_1
6686
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 341]]
6687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6688
+ Redirected to http://test.host/employees
6689
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
6690
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6691
+  (0.1ms) ROLLBACK
6692
+  (0.1ms) BEGIN
6693
+ ---------------------------------------------------------------
6694
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
6695
+ ---------------------------------------------------------------
6696
+  (0.1ms) ROLLBACK
6697
+  (0.1ms) BEGIN
6698
+ --------------------------------------------------------
6699
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
6700
+ --------------------------------------------------------
6701
+  (0.1ms) ROLLBACK
6702
+  (0.1ms) BEGIN
6703
+ -------------------------------------------------------
6704
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
6705
+ -------------------------------------------------------
6706
+  (0.1ms) ROLLBACK
6707
+  (0.1ms) BEGIN
6708
+ ------------------------------------------
6709
+ GovUkDateFieldsTest: test_fieldset_with_id
6710
+ ------------------------------------------
6711
+  (0.1ms) ROLLBACK
6712
+  (0.1ms) BEGIN
6713
+ -----------------------------------------------------------
6714
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
6715
+ -----------------------------------------------------------
6716
+  (0.1ms) ROLLBACK
6717
+  (0.1ms) BEGIN
6718
+ -------------------------------------
6719
+ GovUkDateFieldsTest: test_squash_html
6720
+ -------------------------------------
6721
+  (0.1ms) ROLLBACK
6722
+  (0.1ms) BEGIN
6723
+ -------------------------------------------------------------
6724
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
6725
+ -------------------------------------------------------------
6726
+  (0.1ms) ROLLBACK
6727
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6728
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
6729
+  (0.2ms) BEGIN
6730
+ -------------------------------------------------------------------------------
6731
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
6732
+ -------------------------------------------------------------------------------
6733
+  (0.1ms) ROLLBACK
6734
+  (0.1ms) BEGIN
6735
+ ---------------------------------------------------------------------------------
6736
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
6737
+ ---------------------------------------------------------------------------------
6738
+  (0.1ms) ROLLBACK
6739
+  (0.1ms) BEGIN
6740
+ ---------------------------------------------------------------------------------
6741
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
6742
+ ---------------------------------------------------------------------------------
6743
+  (0.1ms) ROLLBACK
6744
+  (0.1ms) BEGIN
6745
+ ----------------------------------------------------------------------------------------------------------------------------------
6746
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
6747
+ ----------------------------------------------------------------------------------------------------------------------------------
6748
+  (0.1ms) ROLLBACK
6749
+  (0.1ms) BEGIN
6750
+ -----------------------------------------------------------------------------------------
6751
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
6752
+ -----------------------------------------------------------------------------------------
6753
+  (0.1ms) ROLLBACK
6754
+  (0.1ms) BEGIN
6755
+ ------------------------------------------------------------------------------------------
6756
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
6757
+ ------------------------------------------------------------------------------------------
6758
+  (0.1ms) ROLLBACK
6759
+  (0.1ms) BEGIN
6760
+ -----------------------------------------------------------------------------------------------
6761
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
6762
+ -----------------------------------------------------------------------------------------------
6763
+  (0.1ms) ROLLBACK
6764
+  (0.1ms) BEGIN
6765
+ ------------------------------------------
6766
+ GovUkDateFieldsTest: test_fieldset_with_id
6767
+ ------------------------------------------
6768
+  (0.1ms) ROLLBACK
6769
+  (0.1ms) BEGIN
6770
+ ---------------------------------------------------
6771
+ GovUkDateFieldsTest: test_fieldset_with_error_class
6772
+ ---------------------------------------------------
6773
+  (0.1ms) ROLLBACK
6774
+  (0.1ms) BEGIN
6775
+ --------------------------------------------------------
6776
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
6777
+ --------------------------------------------------------
6778
+  (0.1ms) ROLLBACK
6779
+  (0.1ms) BEGIN
6780
+ -------------------------------------------------------------
6781
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
6782
+ -------------------------------------------------------------
6783
+  (0.1ms) ROLLBACK
6784
+  (0.1ms) BEGIN
6785
+ -------------------------------------
6786
+ GovUkDateFieldsTest: test_squash_html
6787
+ -------------------------------------
6788
+  (0.1ms) ROLLBACK
6789
+  (0.1ms) BEGIN
6790
+ -----------------------------------------------------------
6791
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
6792
+ -----------------------------------------------------------
6793
+  (0.1ms) ROLLBACK
6794
+  (0.1ms) BEGIN
6795
+ -------------------------------------------------------
6796
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
6797
+ -------------------------------------------------------
6798
+  (0.2ms) ROLLBACK
6799
+  (0.1ms) BEGIN
6800
+ ---------------------------------------------------------------
6801
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
6802
+ ---------------------------------------------------------------
6803
+  (0.1ms) ROLLBACK
6804
+  (0.1ms) BEGIN
6805
+ ----------------------------------------------------
6806
+ EmployeesControllerTest: test_should_create_employee
6807
+ ----------------------------------------------------
6808
+  (0.2ms) SAVEPOINT active_record_1
6809
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.030069"], ["updated_at", "2016-04-04 14:28:13.030069"]]
6810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6811
+  (0.1ms) SAVEPOINT active_record_1
6812
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.033123"], ["updated_at", "2016-04-04 14:28:13.033123"]]
6813
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6814
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6815
+ Processing by EmployeesController#create as HTML
6816
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
6817
+  (0.1ms) SAVEPOINT active_record_1
6818
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 14:28:13.037270"], ["updated_at", "2016-04-04 14:28:13.037270"]]
6819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6820
+ Redirected to http://test.host/employees/345
6821
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
6822
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6823
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6824
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
6825
+  (0.1ms) ROLLBACK
6826
+  (0.1ms) BEGIN
6827
+ --------------------------------------------------
6828
+ EmployeesControllerTest: test_should_show_employee
6829
+ --------------------------------------------------
6830
+  (0.1ms) SAVEPOINT active_record_1
6831
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.042315"], ["updated_at", "2016-04-04 14:28:13.042315"]]
6832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6833
+  (0.1ms) SAVEPOINT active_record_1
6834
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.043545"], ["updated_at", "2016-04-04 14:28:13.043545"]]
6835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6836
+ Processing by EmployeesController#show as HTML
6837
+ Parameters: {"id"=>"346"}
6838
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 346]]
6839
+ Rendered employees/show.html.erb within layouts/application (0.9ms)
6840
+ Completed 200 OK in 108ms (Views: 104.4ms | ActiveRecord: 0.2ms)
6841
+  (0.2ms) ROLLBACK
6842
+  (0.1ms) BEGIN
6843
+ --------------------------------------------
6844
+ EmployeesControllerTest: test_should_get_new
6845
+ --------------------------------------------
6846
+  (0.1ms) SAVEPOINT active_record_1
6847
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.154963"], ["updated_at", "2016-04-04 14:28:13.154963"]]
6848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6849
+  (0.1ms) SAVEPOINT active_record_1
6850
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.156182"], ["updated_at", "2016-04-04 14:28:13.156182"]]
6851
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6852
+ Processing by EmployeesController#new as HTML
6853
+ Rendered employees/_form.html.erb (5.4ms)
6854
+ Rendered employees/new.html.erb within layouts/application (7.5ms)
6855
+ Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)
6856
+  (0.1ms) ROLLBACK
6857
+  (0.1ms) BEGIN
6858
+ ----------------------------------------------
6859
+ EmployeesControllerTest: test_should_get_index
6860
+ ----------------------------------------------
6861
+  (0.1ms) SAVEPOINT active_record_1
6862
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.168461"], ["updated_at", "2016-04-04 14:28:13.168461"]]
6863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6864
+  (0.1ms) SAVEPOINT active_record_1
6865
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.169958"], ["updated_at", "2016-04-04 14:28:13.169958"]]
6866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6867
+ Processing by EmployeesController#index as HTML
6868
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
6869
+ Rendered employees/index.html.erb within layouts/application (1.7ms)
6870
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
6871
+  (0.1ms) ROLLBACK
6872
+  (0.1ms) BEGIN
6873
+ -----------------------------------------------------
6874
+ EmployeesControllerTest: test_should_destroy_employee
6875
+ -----------------------------------------------------
6876
+  (0.1ms) SAVEPOINT active_record_1
6877
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.176189"], ["updated_at", "2016-04-04 14:28:13.176189"]]
6878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6879
+  (0.1ms) SAVEPOINT active_record_1
6880
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.177211"], ["updated_at", "2016-04-04 14:28:13.177211"]]
6881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6882
+  (0.2ms) SELECT COUNT(*) FROM "employees"
6883
+ Processing by EmployeesController#destroy as HTML
6884
+ Parameters: {"id"=>"352"}
6885
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 352]]
6886
+  (0.1ms) SAVEPOINT active_record_1
6887
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 352]]
6888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6889
+ Redirected to http://test.host/employees
6890
+ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
6891
+  (0.1ms) SELECT COUNT(*) FROM "employees"
6892
+  (0.1ms) ROLLBACK
6893
+  (0.1ms) BEGIN
6894
+ --------------------------------------------------------------
6895
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
6896
+ --------------------------------------------------------------
6897
+  (0.1ms) SAVEPOINT active_record_1
6898
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.181888"], ["updated_at", "2016-04-04 14:28:13.181888"]]
6899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6900
+  (0.1ms) SAVEPOINT active_record_1
6901
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.182882"], ["updated_at", "2016-04-04 14:28:13.182882"]]
6902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6903
+ Processing by EmployeesController#edit as HTML
6904
+ Parameters: {"id"=>"354"}
6905
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 354]]
6906
+ Rendered employees/_form.html.erb (1.3ms)
6907
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
6908
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
6909
+  (0.2ms) ROLLBACK
6910
+  (0.1ms) BEGIN
6911
+ ---------------------------------------------
6912
+ EmployeesControllerTest: test_should_get_edit
6913
+ ---------------------------------------------
6914
+  (0.1ms) SAVEPOINT active_record_1
6915
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.191713"], ["updated_at", "2016-04-04 14:28:13.191713"]]
6916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6917
+  (0.1ms) SAVEPOINT active_record_1
6918
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.192943"], ["updated_at", "2016-04-04 14:28:13.192943"]]
6919
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6920
+ Processing by EmployeesController#edit as HTML
6921
+ Parameters: {"id"=>"356"}
6922
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 356]]
6923
+ Rendered employees/_form.html.erb (2.5ms)
6924
+ Rendered employees/edit.html.erb within layouts/application (2.7ms)
6925
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
6926
+  (0.2ms) ROLLBACK
6927
+  (0.1ms) BEGIN
6928
+ ----------------------------------------------------
6929
+ EmployeesControllerTest: test_should_update_employee
6930
+ ----------------------------------------------------
6931
+  (0.1ms) SAVEPOINT active_record_1
6932
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:28:13.199887"], ["updated_at", "2016-04-04 14:28:13.199887"]]
6933
+  (0.2ms) RELEASE SAVEPOINT active_record_1
6934
+  (0.1ms) SAVEPOINT active_record_1
6935
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.222717"], ["updated_at", "2016-04-04 14:28:13.222717"]]
6936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6937
+ Processing by EmployeesController#update as HTML
6938
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"358"}
6939
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]
6940
+  (0.1ms) SAVEPOINT active_record_1
6941
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 14:28:13.225986"], ["id", 358]]
6942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6943
+ Redirected to http://test.host/employees/358
6944
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
6945
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]
6946
+  (0.1ms) ROLLBACK
6947
+  (0.1ms) BEGIN
6948
+ ---------------------------------------------------------------------
6949
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
6950
+ ---------------------------------------------------------------------
6951
+  (0.1ms) ROLLBACK
6952
+  (0.1ms) BEGIN
6953
+ -------------------------------------------------------------------------
6954
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
6955
+ -------------------------------------------------------------------------
6956
+  (0.1ms) SAVEPOINT active_record_1
6957
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:28:13.230990"], ["updated_at", "2016-04-04 14:28:13.230990"]]
6958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6959
+  (0.1ms) SAVEPOINT active_record_1
6960
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
6961
+  (0.1ms) ROLLBACK
6962
+  (0.1ms) BEGIN
6963
+ ---------------------------------------------------------------------
6964
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
6965
+ ---------------------------------------------------------------------
6966
+  (0.1ms) SAVEPOINT active_record_1
6967
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:28:13.233467"], ["updated_at", "2016-04-04 14:28:13.233467"]]
6968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6969
+  (0.1ms) SAVEPOINT active_record_1
6970
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 14:28:13.234783"], ["id", 361]]
6971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
6972
+  (0.1ms) ROLLBACK
6973
+  (0.1ms) BEGIN
6974
+ -----------------------------------------------------------------------------------
6975
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
6976
+ -----------------------------------------------------------------------------------
6977
+  (0.1ms) ROLLBACK
6978
+  (0.1ms) BEGIN
6979
+ -------------------------------------------------------------------------------------------------------------------
6980
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
6981
+ -------------------------------------------------------------------------------------------------------------------
6982
+  (0.1ms) ROLLBACK
6983
+  (0.1ms) BEGIN
6984
+ -----------------------------------------------------------------
6985
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
6986
+ -----------------------------------------------------------------
6987
+  (0.1ms) ROLLBACK
6988
+  (0.0ms) BEGIN
6989
+ ----------------------------------------------------------------------------------------------
6990
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
6991
+ ----------------------------------------------------------------------------------------------
6992
+  (0.1ms) ROLLBACK
6993
+  (0.1ms) BEGIN
6994
+ -----------------------------------------------------------------------
6995
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
6996
+ -----------------------------------------------------------------------
6997
+  (0.1ms) ROLLBACK
6998
+  (0.1ms) BEGIN
6999
+ ----------------------------------------------
7000
+ EmployeeTest: test_valid_dates_raise_no_errors
7001
+ ----------------------------------------------
7002
+  (0.1ms) ROLLBACK
7003
+  (0.1ms) BEGIN
7004
+ -------------------------------------------
7005
+ EmployeeTest: test_invalid_day_raises_error
7006
+ -------------------------------------------
7007
+  (0.1ms) ROLLBACK
7008
+  (0.1ms) BEGIN
7009
+ -----------------------------------------------------------
7010
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
7011
+ -----------------------------------------------------------
7012
+  (0.1ms) ROLLBACK
7013
+  (0.1ms) BEGIN
7014
+ ----------------------------------------------------------------------------------------------------------------
7015
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
7016
+ ----------------------------------------------------------------------------------------------------------------
7017
+  (0.1ms) ROLLBACK
7018
+  (0.1ms) BEGIN
7019
+ --------------------------------------------
7020
+ EmployeeTest: test_nil_dates_raise_no_errors
7021
+ --------------------------------------------
7022
+  (0.1ms) ROLLBACK
7023
+  (0.1ms) BEGIN
7024
+ ---------------------------------------------------------------------------------------------------------
7025
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
7026
+ ---------------------------------------------------------------------------------------------------------
7027
+  (0.1ms) ROLLBACK
7028
+  (0.1ms) BEGIN
7029
+ --------------------------------------------------------------------------
7030
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
7031
+ --------------------------------------------------------------------------
7032
+  (0.1ms) ROLLBACK
7033
+  (0.1ms) BEGIN
7034
+ ------------------------------------------------------------------------------------------
7035
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
7036
+ ------------------------------------------------------------------------------------------
7037
+  (0.1ms) ROLLBACK
7038
+  (0.1ms) BEGIN
7039
+ ------------------------------------------------------------------------
7040
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
7041
+ ------------------------------------------------------------------------
7042
+  (0.1ms) ROLLBACK
7043
+  (0.1ms) BEGIN
7044
+ -----------------------------------------------------------
7045
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
7046
+ -----------------------------------------------------------
7047
+  (0.1ms) ROLLBACK
7048
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7049
+  (0.1ms) BEGIN
7050
+ ---------------------------------------------------------------
7051
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7052
+ ---------------------------------------------------------------
7053
+  (0.1ms) ROLLBACK
7054
+  (0.1ms) BEGIN
7055
+ -------------------------------------
7056
+ GovUkDateFieldsTest: test_squash_html
7057
+ -------------------------------------
7058
+  (0.1ms) ROLLBACK
7059
+  (0.1ms) BEGIN
7060
+ --------------------------------------------------------
7061
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7062
+ --------------------------------------------------------
7063
+  (0.1ms) ROLLBACK
7064
+  (0.1ms) BEGIN
7065
+ -------------------------------------------------------------
7066
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7067
+ -------------------------------------------------------------
7068
+  (0.1ms) ROLLBACK
7069
+  (0.1ms) BEGIN
7070
+ ---------------------------------------------------
7071
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7072
+ ---------------------------------------------------
7073
+  (0.1ms) ROLLBACK
7074
+  (0.1ms) BEGIN
7075
+ ------------------------------------------
7076
+ GovUkDateFieldsTest: test_fieldset_with_id
7077
+ ------------------------------------------
7078
+  (0.1ms) ROLLBACK
7079
+  (0.1ms) BEGIN
7080
+ -----------------------------------------------------------
7081
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7082
+ -----------------------------------------------------------
7083
+  (0.1ms) ROLLBACK
7084
+  (0.1ms) BEGIN
7085
+ -------------------------------------------------------
7086
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7087
+ -------------------------------------------------------
7088
+  (0.1ms) ROLLBACK
7089
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7090
+  (0.2ms) BEGIN
7091
+ -------------------------------------------------------
7092
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7093
+ -------------------------------------------------------
7094
+  (0.1ms) ROLLBACK
7095
+  (0.1ms) BEGIN
7096
+ ------------------------------------------
7097
+ GovUkDateFieldsTest: test_fieldset_with_id
7098
+ ------------------------------------------
7099
+  (0.1ms) ROLLBACK
7100
+  (0.1ms) BEGIN
7101
+ --------------------------------------------------------
7102
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7103
+ --------------------------------------------------------
7104
+  (0.1ms) ROLLBACK
7105
+  (0.1ms) BEGIN
7106
+ -------------------------------------------------------------
7107
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7108
+ -------------------------------------------------------------
7109
+  (0.1ms) ROLLBACK
7110
+  (0.1ms) BEGIN
7111
+ ---------------------------------------------------
7112
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7113
+ ---------------------------------------------------
7114
+  (0.1ms) ROLLBACK
7115
+  (0.1ms) BEGIN
7116
+ -----------------------------------------------------------
7117
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7118
+ -----------------------------------------------------------
7119
+  (0.1ms) ROLLBACK
7120
+  (0.1ms) BEGIN
7121
+ -------------------------------------
7122
+ GovUkDateFieldsTest: test_squash_html
7123
+ -------------------------------------
7124
+  (0.1ms) ROLLBACK
7125
+  (0.1ms) BEGIN
7126
+ ---------------------------------------------------------------
7127
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7128
+ ---------------------------------------------------------------
7129
+  (0.1ms) ROLLBACK
7130
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7131
+  (0.2ms) BEGIN
7132
+ --------------------------------------------------------
7133
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7134
+ --------------------------------------------------------
7135
+  (0.1ms) ROLLBACK
7136
+  (0.1ms) BEGIN
7137
+ -------------------------------------------------------------
7138
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7139
+ -------------------------------------------------------------
7140
+  (0.1ms) ROLLBACK
7141
+  (0.1ms) BEGIN
7142
+ ------------------------------------------
7143
+ GovUkDateFieldsTest: test_fieldset_with_id
7144
+ ------------------------------------------
7145
+  (0.1ms) ROLLBACK
7146
+  (0.1ms) BEGIN
7147
+ -------------------------------------------------------
7148
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7149
+ -------------------------------------------------------
7150
+  (0.1ms) ROLLBACK
7151
+  (0.1ms) BEGIN
7152
+ ---------------------------------------------------------------
7153
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7154
+ ---------------------------------------------------------------
7155
+  (0.1ms) ROLLBACK
7156
+  (0.1ms) BEGIN
7157
+ -----------------------------------------------------------
7158
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7159
+ -----------------------------------------------------------
7160
+  (0.1ms) ROLLBACK
7161
+  (0.1ms) BEGIN
7162
+ -------------------------------------
7163
+ GovUkDateFieldsTest: test_squash_html
7164
+ -------------------------------------
7165
+  (0.1ms) ROLLBACK
7166
+  (0.1ms) BEGIN
7167
+ ---------------------------------------------------
7168
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7169
+ ---------------------------------------------------
7170
+  (0.1ms) ROLLBACK
7171
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7172
+  (0.2ms) BEGIN
7173
+ -------------------------------------
7174
+ GovUkDateFieldsTest: test_squash_html
7175
+ -------------------------------------
7176
+  (0.2ms) ROLLBACK
7177
+  (0.1ms) BEGIN
7178
+ ------------------------------------------
7179
+ GovUkDateFieldsTest: test_fieldset_with_id
7180
+ ------------------------------------------
7181
+  (0.1ms) ROLLBACK
7182
+  (0.1ms) BEGIN
7183
+ -----------------------------------------------------------
7184
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7185
+ -----------------------------------------------------------
7186
+  (0.1ms) ROLLBACK
7187
+  (0.1ms) BEGIN
7188
+ --------------------------------------------------------
7189
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7190
+ --------------------------------------------------------
7191
+  (0.1ms) ROLLBACK
7192
+  (0.1ms) BEGIN
7193
+ -------------------------------------------------------------
7194
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7195
+ -------------------------------------------------------------
7196
+  (0.1ms) ROLLBACK
7197
+  (0.1ms) BEGIN
7198
+ -------------------------------------------------------
7199
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7200
+ -------------------------------------------------------
7201
+  (0.1ms) ROLLBACK
7202
+  (0.1ms) BEGIN
7203
+ ---------------------------------------------------
7204
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7205
+ ---------------------------------------------------
7206
+  (0.1ms) ROLLBACK
7207
+  (0.1ms) BEGIN
7208
+ ---------------------------------------------------------------
7209
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7210
+ ---------------------------------------------------------------
7211
+  (0.1ms) ROLLBACK
7212
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7213
+  (0.2ms) BEGIN
7214
+ ------------------------------------------
7215
+ GovUkDateFieldsTest: test_fieldset_with_id
7216
+ ------------------------------------------
7217
+  (0.1ms) ROLLBACK
7218
+  (0.1ms) BEGIN
7219
+ ---------------------------------------------------
7220
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7221
+ ---------------------------------------------------
7222
+  (0.1ms) ROLLBACK
7223
+  (0.1ms) BEGIN
7224
+ -------------------------------------
7225
+ GovUkDateFieldsTest: test_squash_html
7226
+ -------------------------------------
7227
+  (0.1ms) ROLLBACK
7228
+  (0.1ms) BEGIN
7229
+ -------------------------------------------------------------
7230
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7231
+ -------------------------------------------------------------
7232
+  (0.1ms) ROLLBACK
7233
+  (0.1ms) BEGIN
7234
+ -----------------------------------------------------------
7235
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7236
+ -----------------------------------------------------------
7237
+  (0.1ms) ROLLBACK
7238
+  (0.1ms) BEGIN
7239
+ --------------------------------------------------------
7240
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7241
+ --------------------------------------------------------
7242
+  (0.1ms) ROLLBACK
7243
+  (0.1ms) BEGIN
7244
+ ---------------------------------------------------------------
7245
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7246
+ ---------------------------------------------------------------
7247
+  (0.1ms) ROLLBACK
7248
+  (0.1ms) BEGIN
7249
+ -------------------------------------------------------
7250
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7251
+ -------------------------------------------------------
7252
+  (0.1ms) ROLLBACK
7253
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7254
+  (0.2ms) BEGIN
7255
+ ---------------------------------------------------------------
7256
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7257
+ ---------------------------------------------------------------
7258
+  (0.1ms) ROLLBACK
7259
+  (0.1ms) BEGIN
7260
+ -----------------------------------------------------------
7261
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7262
+ -----------------------------------------------------------
7263
+  (0.1ms) ROLLBACK
7264
+  (0.1ms) BEGIN
7265
+ ------------------------------------------
7266
+ GovUkDateFieldsTest: test_fieldset_with_id
7267
+ ------------------------------------------
7268
+  (0.1ms) ROLLBACK
7269
+  (0.1ms) BEGIN
7270
+ -------------------------------------------------------------
7271
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7272
+ -------------------------------------------------------------
7273
+  (0.1ms) ROLLBACK
7274
+  (0.1ms) BEGIN
7275
+ ---------------------------------------------------
7276
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7277
+ ---------------------------------------------------
7278
+  (0.1ms) ROLLBACK
7279
+  (0.1ms) BEGIN
7280
+ -------------------------------------
7281
+ GovUkDateFieldsTest: test_squash_html
7282
+ -------------------------------------
7283
+  (0.1ms) ROLLBACK
7284
+  (0.1ms) BEGIN
7285
+ --------------------------------------------------------
7286
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7287
+ --------------------------------------------------------
7288
+  (0.1ms) ROLLBACK
7289
+  (0.1ms) BEGIN
7290
+ -------------------------------------------------------
7291
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7292
+ -------------------------------------------------------
7293
+  (0.1ms) ROLLBACK
7294
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7295
+  (0.2ms) BEGIN
7296
+ -------------------------------------
7297
+ GovUkDateFieldsTest: test_squash_html
7298
+ -------------------------------------
7299
+  (0.1ms) ROLLBACK
7300
+  (0.1ms) BEGIN
7301
+ -------------------------------------------------------
7302
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7303
+ -------------------------------------------------------
7304
+  (0.1ms) ROLLBACK
7305
+  (0.1ms) BEGIN
7306
+ -------------------------------------------------------------
7307
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7308
+ -------------------------------------------------------------
7309
+  (0.1ms) ROLLBACK
7310
+  (0.1ms) BEGIN
7311
+ ---------------------------------------------------------------
7312
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7313
+ ---------------------------------------------------------------
7314
+  (0.1ms) ROLLBACK
7315
+  (0.1ms) BEGIN
7316
+ ---------------------------------------------------
7317
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7318
+ ---------------------------------------------------
7319
+  (0.6ms) ROLLBACK
7320
+  (0.1ms) BEGIN
7321
+ --------------------------------------------------------
7322
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7323
+ --------------------------------------------------------
7324
+  (0.1ms) ROLLBACK
7325
+  (0.1ms) BEGIN
7326
+ -----------------------------------------------------------
7327
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7328
+ -----------------------------------------------------------
7329
+  (0.1ms) ROLLBACK
7330
+  (0.1ms) BEGIN
7331
+ ------------------------------------------
7332
+ GovUkDateFieldsTest: test_fieldset_with_id
7333
+ ------------------------------------------
7334
+  (0.1ms) ROLLBACK
7335
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7336
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7337
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7338
+  (0.1ms) BEGIN
7339
+ -------------------------------------------------------------
7340
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7341
+ -------------------------------------------------------------
7342
+  (0.1ms) ROLLBACK
7343
+  (0.1ms) BEGIN
7344
+ ---------------------------------------------------
7345
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7346
+ ---------------------------------------------------
7347
+  (0.2ms) ROLLBACK
7348
+  (0.1ms) BEGIN
7349
+ -------------------------------------
7350
+ GovUkDateFieldsTest: test_squash_html
7351
+ -------------------------------------
7352
+  (0.1ms) ROLLBACK
7353
+  (0.1ms) BEGIN
7354
+ ---------------------------------------------------------------
7355
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7356
+ ---------------------------------------------------------------
7357
+  (0.1ms) ROLLBACK
7358
+  (0.1ms) BEGIN
7359
+ -------------------------------------------------------
7360
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7361
+ -------------------------------------------------------
7362
+  (0.1ms) ROLLBACK
7363
+  (0.1ms) BEGIN
7364
+ ------------------------------------------
7365
+ GovUkDateFieldsTest: test_fieldset_with_id
7366
+ ------------------------------------------
7367
+  (0.1ms) ROLLBACK
7368
+  (0.1ms) BEGIN
7369
+ -----------------------------------------------------------
7370
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7371
+ -----------------------------------------------------------
7372
+  (0.1ms) ROLLBACK
7373
+  (0.1ms) BEGIN
7374
+ --------------------------------------------------------
7375
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7376
+ --------------------------------------------------------
7377
+  (0.1ms) ROLLBACK
7378
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7379
+  (0.2ms) BEGIN
7380
+ ---------------------------------------------------
7381
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7382
+ ---------------------------------------------------
7383
+  (0.2ms) ROLLBACK
7384
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7385
+  (0.2ms) BEGIN
7386
+ ---------------------------------------------------
7387
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7388
+ ---------------------------------------------------
7389
+  (0.1ms) ROLLBACK
7390
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7391
+  (0.2ms) BEGIN
7392
+ ---------------------------------------------------
7393
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7394
+ ---------------------------------------------------
7395
+  (0.1ms) ROLLBACK
7396
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7397
+  (0.1ms) BEGIN
7398
+ ---------------------------------------------------
7399
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7400
+ ---------------------------------------------------
7401
+  (0.1ms) ROLLBACK
7402
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7403
+  (0.2ms) BEGIN
7404
+ ---------------------------------------------------
7405
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7406
+ ---------------------------------------------------
7407
+  (0.1ms) ROLLBACK
7408
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
7409
+  (0.1ms) BEGIN
7410
+ ---------------------------------------------------
7411
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7412
+ ---------------------------------------------------
7413
+  (0.1ms) ROLLBACK
7414
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7415
+  (0.2ms) BEGIN
7416
+ ---------------------------------------------------
7417
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7418
+ ---------------------------------------------------
7419
+  (0.2ms) ROLLBACK
7420
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
7421
+  (0.1ms) BEGIN
7422
+ ---------------------------------------------------
7423
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7424
+ ---------------------------------------------------
7425
+  (0.2ms) ROLLBACK
7426
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7427
+  (0.2ms) BEGIN
7428
+ ---------------------------------------------------------------
7429
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7430
+ ---------------------------------------------------------------
7431
+  (0.1ms) ROLLBACK
7432
+  (0.1ms) BEGIN
7433
+ -------------------------------------------------------
7434
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7435
+ -------------------------------------------------------
7436
+  (0.1ms) ROLLBACK
7437
+  (0.1ms) BEGIN
7438
+ -------------------------------------
7439
+ GovUkDateFieldsTest: test_squash_html
7440
+ -------------------------------------
7441
+  (0.1ms) ROLLBACK
7442
+  (0.1ms) BEGIN
7443
+ -------------------------------------------------------------
7444
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7445
+ -------------------------------------------------------------
7446
+  (0.1ms) ROLLBACK
7447
+  (0.1ms) BEGIN
7448
+ --------------------------------------------------------
7449
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7450
+ --------------------------------------------------------
7451
+  (0.1ms) ROLLBACK
7452
+  (0.1ms) BEGIN
7453
+ -----------------------------------------------------------
7454
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7455
+ -----------------------------------------------------------
7456
+  (0.1ms) ROLLBACK
7457
+  (0.1ms) BEGIN
7458
+ ---------------------------------------------------
7459
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7460
+ ---------------------------------------------------
7461
+  (0.1ms) ROLLBACK
7462
+  (0.1ms) BEGIN
7463
+ ------------------------------------------
7464
+ GovUkDateFieldsTest: test_fieldset_with_id
7465
+ ------------------------------------------
7466
+  (0.1ms) ROLLBACK
7467
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
7468
+  (0.2ms) BEGIN
7469
+ -----------------------------------------------------------------------------------
7470
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
7471
+ -----------------------------------------------------------------------------------
7472
+  (0.1ms) ROLLBACK
7473
+  (0.1ms) BEGIN
7474
+ -----------------------------------------------------------------------
7475
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
7476
+ -----------------------------------------------------------------------
7477
+  (0.1ms) ROLLBACK
7478
+  (0.1ms) BEGIN
7479
+ ---------------------------------------------------------------------
7480
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
7481
+ ---------------------------------------------------------------------
7482
+  (0.1ms) SAVEPOINT active_record_1
7483
+ SQL (0.9ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:53:38.284961"], ["updated_at", "2016-04-04 14:53:38.284961"]]
7484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7485
+  (0.1ms) SAVEPOINT active_record_1
7486
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 14:53:38.288635"], ["id", 362]]
7487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7488
+  (0.1ms) ROLLBACK
7489
+  (0.1ms) BEGIN
7490
+ ------------------------------------------------------------------------------------------
7491
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
7492
+ ------------------------------------------------------------------------------------------
7493
+  (0.1ms) ROLLBACK
7494
+  (0.1ms) BEGIN
7495
+ ----------------------------------------------------------------------------------------------------------------
7496
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
7497
+ ----------------------------------------------------------------------------------------------------------------
7498
+  (0.1ms) ROLLBACK
7499
+  (0.1ms) BEGIN
7500
+ -------------------------------------------
7501
+ EmployeeTest: test_invalid_day_raises_error
7502
+ -------------------------------------------
7503
+  (0.1ms) ROLLBACK
7504
+  (0.1ms) BEGIN
7505
+ ---------------------------------------------------------------------------------------------------------
7506
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
7507
+ ---------------------------------------------------------------------------------------------------------
7508
+  (0.1ms) ROLLBACK
7509
+  (0.1ms) BEGIN
7510
+ ----------------------------------------------
7511
+ EmployeeTest: test_valid_dates_raise_no_errors
7512
+ ----------------------------------------------
7513
+  (0.1ms) ROLLBACK
7514
+  (0.1ms) BEGIN
7515
+ -----------------------------------------------------------------
7516
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
7517
+ -----------------------------------------------------------------
7518
+  (0.1ms) ROLLBACK
7519
+  (0.1ms) BEGIN
7520
+ ------------------------------------------------------------------------
7521
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
7522
+ ------------------------------------------------------------------------
7523
+  (0.1ms) ROLLBACK
7524
+  (0.1ms) BEGIN
7525
+ -------------------------------------------------------------------------------------------------------------------
7526
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
7527
+ -------------------------------------------------------------------------------------------------------------------
7528
+  (0.1ms) ROLLBACK
7529
+  (0.1ms) BEGIN
7530
+ --------------------------------------------------------------------------
7531
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
7532
+ --------------------------------------------------------------------------
7533
+  (0.1ms) ROLLBACK
7534
+  (0.1ms) BEGIN
7535
+ -----------------------------------------------------------
7536
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
7537
+ -----------------------------------------------------------
7538
+  (0.1ms) ROLLBACK
7539
+  (0.1ms) BEGIN
7540
+ ----------------------------------------------------------------------------------------------
7541
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
7542
+ ----------------------------------------------------------------------------------------------
7543
+  (0.1ms) ROLLBACK
7544
+  (0.1ms) BEGIN
7545
+ --------------------------------------------
7546
+ EmployeeTest: test_nil_dates_raise_no_errors
7547
+ --------------------------------------------
7548
+  (0.1ms) ROLLBACK
7549
+  (0.1ms) BEGIN
7550
+ -------------------------------------------------------------------------
7551
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
7552
+ -------------------------------------------------------------------------
7553
+  (0.1ms) SAVEPOINT active_record_1
7554
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:53:38.302017"], ["updated_at", "2016-04-04 14:53:38.302017"]]
7555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7556
+  (0.1ms) SAVEPOINT active_record_1
7557
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
7558
+  (0.1ms) ROLLBACK
7559
+  (0.1ms) BEGIN
7560
+ -----------------------------------------------------------
7561
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
7562
+ -----------------------------------------------------------
7563
+  (0.1ms) ROLLBACK
7564
+  (0.1ms) BEGIN
7565
+ ---------------------------------------------------------------------
7566
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
7567
+ ---------------------------------------------------------------------
7568
+  (0.1ms) ROLLBACK
7569
+  (0.1ms) BEGIN
7570
+ --------------------------------------------
7571
+ EmployeesControllerTest: test_should_get_new
7572
+ --------------------------------------------
7573
+  (0.2ms) SAVEPOINT active_record_1
7574
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.330593"], ["updated_at", "2016-04-04 14:53:38.330593"]]
7575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7576
+  (0.1ms) SAVEPOINT active_record_1
7577
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.331852"], ["updated_at", "2016-04-04 14:53:38.331852"]]
7578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7579
+ Processing by EmployeesController#new as HTML
7580
+ Rendered employees/_form.html.erb (7.7ms)
7581
+ Rendered employees/new.html.erb within layouts/application (10.4ms)
7582
+ Completed 200 OK in 133ms (Views: 132.9ms | ActiveRecord: 0.0ms)
7583
+  (0.2ms) ROLLBACK
7584
+  (0.1ms) BEGIN
7585
+ ---------------------------------------------
7586
+ EmployeesControllerTest: test_should_get_edit
7587
+ ---------------------------------------------
7588
+  (0.1ms) SAVEPOINT active_record_1
7589
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.469073"], ["updated_at", "2016-04-04 14:53:38.469073"]]
7590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7591
+  (0.1ms) SAVEPOINT active_record_1
7592
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.470408"], ["updated_at", "2016-04-04 14:53:38.470408"]]
7593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7594
+ Processing by EmployeesController#edit as HTML
7595
+ Parameters: {"id"=>"366"}
7596
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 366]]
7597
+ Rendered employees/_form.html.erb (2.6ms)
7598
+ Rendered employees/edit.html.erb within layouts/application (3.2ms)
7599
+ Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.2ms)
7600
+  (0.2ms) ROLLBACK
7601
+  (0.1ms) BEGIN
7602
+ ----------------------------------------------------
7603
+ EmployeesControllerTest: test_should_update_employee
7604
+ ----------------------------------------------------
7605
+  (0.1ms) SAVEPOINT active_record_1
7606
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.481369"], ["updated_at", "2016-04-04 14:53:38.481369"]]
7607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7608
+  (0.1ms) SAVEPOINT active_record_1
7609
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.482701"], ["updated_at", "2016-04-04 14:53:38.482701"]]
7610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7611
+ Processing by EmployeesController#update as HTML
7612
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"368"}
7613
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 368]]
7614
+  (0.1ms) SAVEPOINT active_record_1
7615
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 14:53:38.485897"], ["id", 368]]
7616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7617
+ Redirected to http://test.host/employees/368
7618
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
7619
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 368]]
7620
+  (0.1ms) ROLLBACK
7621
+  (0.1ms) BEGIN
7622
+ ----------------------------------------------------
7623
+ EmployeesControllerTest: test_should_create_employee
7624
+ ----------------------------------------------------
7625
+  (0.2ms) SAVEPOINT active_record_1
7626
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.489531"], ["updated_at", "2016-04-04 14:53:38.489531"]]
7627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7628
+  (0.2ms) SAVEPOINT active_record_1
7629
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.491548"], ["updated_at", "2016-04-04 14:53:38.491548"]]
7630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7631
+  (0.2ms) SELECT COUNT(*) FROM "employees"
7632
+ Processing by EmployeesController#create as HTML
7633
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
7634
+  (0.1ms) SAVEPOINT active_record_1
7635
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 14:53:38.495709"], ["updated_at", "2016-04-04 14:53:38.495709"]]
7636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7637
+ Redirected to http://test.host/employees/372
7638
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
7639
+  (0.2ms) SELECT COUNT(*) FROM "employees"
7640
+  (0.1ms) SELECT COUNT(*) FROM "employees"
7641
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
7642
+  (0.1ms) ROLLBACK
7643
+  (0.1ms) BEGIN
7644
+ ----------------------------------------------
7645
+ EmployeesControllerTest: test_should_get_index
7646
+ ----------------------------------------------
7647
+  (0.1ms) SAVEPOINT active_record_1
7648
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.500086"], ["updated_at", "2016-04-04 14:53:38.500086"]]
7649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7650
+  (0.1ms) SAVEPOINT active_record_1
7651
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.501225"], ["updated_at", "2016-04-04 14:53:38.501225"]]
7652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7653
+ Processing by EmployeesController#index as HTML
7654
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees"
7655
+ Rendered employees/index.html.erb within layouts/application (1.9ms)
7656
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
7657
+  (0.2ms) ROLLBACK
7658
+  (0.1ms) BEGIN
7659
+ -----------------------------------------------------
7660
+ EmployeesControllerTest: test_should_destroy_employee
7661
+ -----------------------------------------------------
7662
+  (0.1ms) SAVEPOINT active_record_1
7663
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.508229"], ["updated_at", "2016-04-04 14:53:38.508229"]]
7664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7665
+  (0.1ms) SAVEPOINT active_record_1
7666
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.510262"], ["updated_at", "2016-04-04 14:53:38.510262"]]
7667
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7668
+  (0.1ms) SELECT COUNT(*) FROM "employees"
7669
+ Processing by EmployeesController#destroy as HTML
7670
+ Parameters: {"id"=>"375"}
7671
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 375]]
7672
+  (0.1ms) SAVEPOINT active_record_1
7673
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 375]]
7674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7675
+ Redirected to http://test.host/employees
7676
+ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
7677
+  (0.1ms) SELECT COUNT(*) FROM "employees"
7678
+  (0.1ms) ROLLBACK
7679
+  (0.1ms) BEGIN
7680
+ --------------------------------------------------------------
7681
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
7682
+ --------------------------------------------------------------
7683
+  (0.1ms) SAVEPOINT active_record_1
7684
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.515063"], ["updated_at", "2016-04-04 14:53:38.515063"]]
7685
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7686
+  (0.1ms) SAVEPOINT active_record_1
7687
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.516060"], ["updated_at", "2016-04-04 14:53:38.516060"]]
7688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7689
+ Processing by EmployeesController#edit as HTML
7690
+ Parameters: {"id"=>"377"}
7691
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 377]]
7692
+ Rendered employees/_form.html.erb (1.4ms)
7693
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
7694
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
7695
+  (0.1ms) ROLLBACK
7696
+  (0.1ms) BEGIN
7697
+ --------------------------------------------------
7698
+ EmployeesControllerTest: test_should_show_employee
7699
+ --------------------------------------------------
7700
+  (0.1ms) SAVEPOINT active_record_1
7701
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 14:53:38.523437"], ["updated_at", "2016-04-04 14:53:38.523437"]]
7702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7703
+  (0.1ms) SAVEPOINT active_record_1
7704
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.524602"], ["updated_at", "2016-04-04 14:53:38.524602"]]
7705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7706
+ Processing by EmployeesController#show as HTML
7707
+ Parameters: {"id"=>"379"}
7708
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 379]]
7709
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
7710
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
7711
+  (0.1ms) ROLLBACK
7712
+  (0.1ms) BEGIN
7713
+ ------------------------------------------
7714
+ GovUkDateFieldsTest: test_fieldset_with_id
7715
+ ------------------------------------------
7716
+  (0.1ms) ROLLBACK
7717
+  (0.1ms) BEGIN
7718
+ -------------------------------------
7719
+ GovUkDateFieldsTest: test_squash_html
7720
+ -------------------------------------
7721
+  (0.1ms) ROLLBACK
7722
+  (0.1ms) BEGIN
7723
+ ---------------------------------------------------
7724
+ GovUkDateFieldsTest: test_fieldset_with_error_class
7725
+ ---------------------------------------------------
7726
+  (0.1ms) ROLLBACK
7727
+  (0.1ms) BEGIN
7728
+ -----------------------------------------------------------
7729
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
7730
+ -----------------------------------------------------------
7731
+  (0.1ms) ROLLBACK
7732
+  (0.1ms) BEGIN
7733
+ -------------------------------------------------------------
7734
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
7735
+ -------------------------------------------------------------
7736
+  (0.1ms) ROLLBACK
7737
+  (0.1ms) BEGIN
7738
+ -------------------------------------------------------
7739
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
7740
+ -------------------------------------------------------
7741
+  (0.1ms) ROLLBACK
7742
+  (0.1ms) BEGIN
7743
+ --------------------------------------------------------
7744
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
7745
+ --------------------------------------------------------
7746
+  (0.1ms) ROLLBACK
7747
+  (0.1ms) BEGIN
7748
+ ---------------------------------------------------------------
7749
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
7750
+ ---------------------------------------------------------------
7751
+  (0.1ms) ROLLBACK
7752
+  (0.1ms) BEGIN
7753
+ -----------------------------------------------------------------------------------------
7754
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
7755
+ -----------------------------------------------------------------------------------------
7756
+  (0.1ms) ROLLBACK
7757
+  (0.1ms) BEGIN
7758
+ -----------------------------------------------------------------------------------------------
7759
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
7760
+ -----------------------------------------------------------------------------------------------
7761
+  (0.1ms) ROLLBACK
7762
+  (0.1ms) BEGIN
7763
+ ----------------------------------------------------------------------------------------------------------------------------------
7764
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
7765
+ ----------------------------------------------------------------------------------------------------------------------------------
7766
+  (0.1ms) ROLLBACK
7767
+  (0.1ms) BEGIN
7768
+ ------------------------------------------------------------------------------------------
7769
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
7770
+ ------------------------------------------------------------------------------------------
7771
+  (0.1ms) ROLLBACK
7772
+  (0.1ms) BEGIN
7773
+ -------------------------------------------------------------------------------
7774
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
7775
+ -------------------------------------------------------------------------------
7776
+  (0.1ms) ROLLBACK
7777
+  (0.1ms) BEGIN
7778
+ ---------------------------------------------------------------------------------
7779
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
7780
+ ---------------------------------------------------------------------------------
7781
+  (0.1ms) ROLLBACK
7782
+  (0.1ms) BEGIN
7783
+ ---------------------------------------------------------------------------------
7784
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
7785
+ ---------------------------------------------------------------------------------
7786
+  (0.1ms) ROLLBACK