gov_uk_date_fields 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e002365d94c5556f99089cf351e5cba2fa5a3e2
4
- data.tar.gz: c301e294c044baa1ca8cb3590658c8ff55149ddb
3
+ metadata.gz: b6abac7b6934a7b36e232dbd07781ad7bd3f4b9a
4
+ data.tar.gz: a47c8c9de6753239610d871d589cb9fac26247ff
5
5
  SHA512:
6
- metadata.gz: 6469764932adab92067b30a383f84e21e526f2e83c451558f2e7b99cc17be50f1a97c3e1eacf8f3bf856e1974e344714cefd70228fdd09c435901fb892b23b1f
7
- data.tar.gz: 0e6e7132eaadece9234e77210405f9dafb8a009ae54fc9ea00be6648cfab553c4a61112b882eb3062a5da41d5bf4271c2f8d273636f8b224d950063c6f899a33
6
+ metadata.gz: c6c7638c8b83397eb1a1da9460bf334c5dfb5b881dbb6ce0c65d5c3614f8c59046ef4d4655e4feb9f166960e52641ef83a3a17b7680c35aaf76c181ceffe7b21
7
+ data.tar.gz: a4e92d2a87d50ffe059770a00bf7e2808abb98190f8d528f441a72abf5e44f73ce26073ee1ef97c7d40426229539bbfa0d1915458d1fe2c7f0390bacc5b6ce8f
@@ -6,7 +6,7 @@ module GovUkDateFields
6
6
  DATE_SEGMENTS = {
7
7
  day: '_dd',
8
8
  month: '_mm',
9
- year: '_yyyy'
9
+ year: '_yyyy',
10
10
  }
11
11
 
12
12
  DEFAULT_PLACEHOLDERS = {
@@ -74,7 +74,8 @@ module GovUkDateFields
74
74
  result = "<fieldset"
75
75
  result += %Q| id="#{@fieldset_id}"| unless @fieldset_id.nil?
76
76
  result += %Q| class="error"| if error_for_attr?
77
- result ++ ">"
77
+ result += ">"
78
+ result
78
79
  end
79
80
 
80
81
  def generate_end_fieldset
@@ -96,8 +97,9 @@ module GovUkDateFields
96
97
  @object.errors[@attribute].each do |message|
97
98
  result += %Q|<li><span class="error-message">#{message}</span></li>|
98
99
  end
99
- result ++ "</ul>"
100
+ result += "</ul>"
100
101
  end
102
+ result
101
103
  end
102
104
 
103
105
  def generate_day_value
@@ -122,8 +124,8 @@ module GovUkDateFields
122
124
  def generate_day_input_field(day_value)
123
125
  %Q|
124
126
  <div class="form-group form-group-day">
125
- <label for="#{@attribute}-day">Day</label>
126
- <input class="form-control" id="#{html_name(:day)}" name="#{html_name(:day)}" type="number" pattern="[0-9]*" min="0" max="31" aria-describedby="#{@attribute}-hint" #{generate_day_value}>
127
+ <label for="#{html_id(:day)}">Day</label>
128
+ <input class="form-control" id="#{html_id(:day)}" name="#{html_name(:day)}" type="number" pattern="[0-9]*" min="0" max="31" aria-describedby="#{@attribute}-hint" #{generate_day_value}>
127
129
  </div>
128
130
  |
129
131
  end
@@ -131,8 +133,8 @@ module GovUkDateFields
131
133
  def generate_month_input_field(month_value)
132
134
  %Q|
133
135
  <div class="form-group form-group-month">
134
- <label for="#{@attribute}-month">Month</label>
135
- <input class="form-control" id="#{html_name(:month)}" name="#{html_name(:month)}" type="number" pattern="[0-9]*" min="0" max="12" #{generate_month_value}>
136
+ <label for="#{html_id(:month)}">Month</label>
137
+ <input class="form-control" id="#{html_id(:month)}" name="#{html_name(:month)}" type="number" pattern="[0-9]*" min="0" max="12" #{generate_month_value}>
136
138
  </div>
137
139
  |
138
140
  end
@@ -140,8 +142,8 @@ module GovUkDateFields
140
142
  def generate_year_input_field(year_value)
141
143
  %Q|
142
144
  <div class="form-group form-group-year">
143
- <label for="#{@attribute}-year">Year</label>
144
- <input class="form-control" id="#{html_name(:year)}" name="#{html_name(:year)}" type="number" pattern="[0-9]*" min="0" max="#{Date.today.year}" #{generate_year_value}>
145
+ <label for="#{html_id(:year)}">Year</label>
146
+ <input class="form-control" id="#{html_id(:year)}" name="#{html_name(:year)}" type="number" pattern="[0-9]*" min="0" max="#{Date.today.year}" #{generate_year_value}>
145
147
  </div>
146
148
  |
147
149
  end
@@ -175,7 +177,7 @@ module GovUkDateFields
175
177
  end
176
178
 
177
179
  def html_id(date_segment)
178
- html_name(date_segment).gsub(/\]\[|\[|\]|\(/, '_').gsub(/\_\z/, '').gsub(/\)/, '')
180
+ "#{@object_name}_#{@attribute}#{DATE_SEGMENTS[date_segment]}"
179
181
  end
180
182
 
181
183
  def html_name(date_segment)
@@ -1,3 +1,3 @@
1
1
  module GovUkDateFields
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -9814,3 +9814,1484 @@ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_dat
9814
9814
  GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
9815
9815
  ----------------------------------------------------------------------------------------------------------------------------------
9816
9816
   (0.1ms) ROLLBACK
9817
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
9818
+  (0.2ms) BEGIN
9819
+ ----------------------------------------------------------------------------------------------------------------------------------
9820
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
9821
+ ----------------------------------------------------------------------------------------------------------------------------------
9822
+  (0.3ms) ROLLBACK
9823
+  (0.1ms) BEGIN
9824
+ -----------------------------------------------------------------------------------------
9825
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
9826
+ -----------------------------------------------------------------------------------------
9827
+  (0.1ms) ROLLBACK
9828
+  (0.1ms) BEGIN
9829
+ ---------------------------------------------------------------------------------
9830
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
9831
+ ---------------------------------------------------------------------------------
9832
+  (0.1ms) ROLLBACK
9833
+  (0.1ms) BEGIN
9834
+ -----------------------------------------------------------------------------------------------
9835
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
9836
+ -----------------------------------------------------------------------------------------------
9837
+  (0.1ms) ROLLBACK
9838
+  (0.1ms) BEGIN
9839
+ -------------------------------------------------------------------------------
9840
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
9841
+ -------------------------------------------------------------------------------
9842
+  (0.1ms) ROLLBACK
9843
+  (0.1ms) BEGIN
9844
+ ---------------------------------------------------------------------------------
9845
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
9846
+ ---------------------------------------------------------------------------------
9847
+  (0.1ms) ROLLBACK
9848
+  (0.1ms) BEGIN
9849
+ ------------------------------------------------------------------------------------------
9850
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
9851
+ ------------------------------------------------------------------------------------------
9852
+  (0.1ms) ROLLBACK
9853
+  (0.1ms) BEGIN
9854
+ ---------------------------------------------------------------
9855
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
9856
+ ---------------------------------------------------------------
9857
+  (0.1ms) ROLLBACK
9858
+  (0.1ms) BEGIN
9859
+ -------------------------------------
9860
+ GovUkDateFieldsTest: test_squash_html
9861
+ -------------------------------------
9862
+  (0.1ms) ROLLBACK
9863
+  (0.1ms) BEGIN
9864
+ ------------------------------------------
9865
+ GovUkDateFieldsTest: test_fieldset_with_id
9866
+ ------------------------------------------
9867
+  (0.1ms) ROLLBACK
9868
+  (0.1ms) BEGIN
9869
+ -----------------------------------------------------------
9870
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
9871
+ -----------------------------------------------------------
9872
+  (0.1ms) ROLLBACK
9873
+  (0.0ms) BEGIN
9874
+ ---------------------------------------------------------------
9875
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
9876
+ ---------------------------------------------------------------
9877
+  (0.1ms) ROLLBACK
9878
+  (0.1ms) BEGIN
9879
+ -------------------------------------------------------------
9880
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
9881
+ -------------------------------------------------------------
9882
+  (0.1ms) ROLLBACK
9883
+  (0.1ms) BEGIN
9884
+ -------------------------------------------------------
9885
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
9886
+ -------------------------------------------------------
9887
+  (0.1ms) ROLLBACK
9888
+  (0.1ms) BEGIN
9889
+ --------------------------------------------------------
9890
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
9891
+ --------------------------------------------------------
9892
+  (0.1ms) ROLLBACK
9893
+  (0.1ms) BEGIN
9894
+ -----------------------------------------------------------
9895
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
9896
+ -----------------------------------------------------------
9897
+  (0.1ms) ROLLBACK
9898
+  (0.1ms) BEGIN
9899
+ ---------------------------------------------------------------------------------------------------------
9900
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
9901
+ ---------------------------------------------------------------------------------------------------------
9902
+  (0.1ms) ROLLBACK
9903
+  (0.1ms) BEGIN
9904
+ -------------------------------------------------------------------------
9905
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
9906
+ -------------------------------------------------------------------------
9907
+  (0.1ms) SAVEPOINT active_record_1
9908
+ SQL (0.5ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:29:23.626945"], ["updated_at", "2016-04-05 12:29:23.626945"]]
9909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9910
+  (0.0ms) SAVEPOINT active_record_1
9911
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9912
+  (0.1ms) ROLLBACK
9913
+  (0.1ms) BEGIN
9914
+ --------------------------------------------
9915
+ EmployeeTest: test_nil_dates_raise_no_errors
9916
+ --------------------------------------------
9917
+  (0.1ms) ROLLBACK
9918
+  (0.1ms) BEGIN
9919
+ -----------------------------------------------------------
9920
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
9921
+ -----------------------------------------------------------
9922
+  (0.1ms) ROLLBACK
9923
+  (0.1ms) BEGIN
9924
+ ------------------------------------------------------------------------------------------
9925
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
9926
+ ------------------------------------------------------------------------------------------
9927
+  (0.1ms) ROLLBACK
9928
+  (0.1ms) BEGIN
9929
+ ----------------------------------------------
9930
+ EmployeeTest: test_valid_dates_raise_no_errors
9931
+ ----------------------------------------------
9932
+  (0.1ms) ROLLBACK
9933
+  (0.1ms) BEGIN
9934
+ ---------------------------------------------------------------------
9935
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
9936
+ ---------------------------------------------------------------------
9937
+  (0.1ms) SAVEPOINT active_record_1
9938
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:29:23.634069"], ["updated_at", "2016-04-05 12:29:23.634069"]]
9939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9940
+  (0.0ms) SAVEPOINT active_record_1
9941
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 12:29:23.635082"], ["id", 515]]
9942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9943
+  (0.1ms) ROLLBACK
9944
+  (0.1ms) BEGIN
9945
+ -------------------------------------------
9946
+ EmployeeTest: test_invalid_day_raises_error
9947
+ -------------------------------------------
9948
+  (0.1ms) ROLLBACK
9949
+  (0.1ms) BEGIN
9950
+ ---------------------------------------------------------------------
9951
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
9952
+ ---------------------------------------------------------------------
9953
+  (0.1ms) ROLLBACK
9954
+  (0.1ms) BEGIN
9955
+ -----------------------------------------------------------------------
9956
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
9957
+ -----------------------------------------------------------------------
9958
+  (0.1ms) ROLLBACK
9959
+  (0.1ms) BEGIN
9960
+ ----------------------------------------------------------------------------------------------
9961
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
9962
+ ----------------------------------------------------------------------------------------------
9963
+  (0.1ms) ROLLBACK
9964
+  (0.1ms) BEGIN
9965
+ -------------------------------------------------------------------------------------------------------------------
9966
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
9967
+ -------------------------------------------------------------------------------------------------------------------
9968
+  (0.1ms) ROLLBACK
9969
+  (0.1ms) BEGIN
9970
+ ----------------------------------------------------------------------------------------------------------------
9971
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
9972
+ ----------------------------------------------------------------------------------------------------------------
9973
+  (0.1ms) ROLLBACK
9974
+  (0.1ms) BEGIN
9975
+ --------------------------------------------------------------------------
9976
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
9977
+ --------------------------------------------------------------------------
9978
+  (0.1ms) ROLLBACK
9979
+  (0.1ms) BEGIN
9980
+ ------------------------------------------------------------------------
9981
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
9982
+ ------------------------------------------------------------------------
9983
+  (0.1ms) ROLLBACK
9984
+  (0.0ms) BEGIN
9985
+ -----------------------------------------------------------------
9986
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
9987
+ -----------------------------------------------------------------
9988
+  (0.1ms) ROLLBACK
9989
+  (0.1ms) BEGIN
9990
+ -----------------------------------------------------------------------------------
9991
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
9992
+ -----------------------------------------------------------------------------------
9993
+  (0.1ms) ROLLBACK
9994
+  (0.0ms) BEGIN
9995
+ --------------------------------------------
9996
+ EmployeesControllerTest: test_should_get_new
9997
+ --------------------------------------------
9998
+  (0.1ms) SAVEPOINT active_record_1
9999
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.670529"], ["updated_at", "2016-04-05 12:29:23.670529"]]
10000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10001
+  (0.1ms) SAVEPOINT active_record_1
10002
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.671765"], ["updated_at", "2016-04-05 12:29:23.671765"]]
10003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10004
+ Processing by EmployeesController#new as HTML
10005
+ Rendered employees/_form.html.erb (6.3ms)
10006
+ Rendered employees/new.html.erb within layouts/application (9.8ms)
10007
+ Completed 200 OK in 129ms (Views: 128.2ms | ActiveRecord: 0.0ms)
10008
+  (0.2ms) ROLLBACK
10009
+  (0.1ms) BEGIN
10010
+ --------------------------------------------------
10011
+ EmployeesControllerTest: test_should_show_employee
10012
+ --------------------------------------------------
10013
+  (0.1ms) SAVEPOINT active_record_1
10014
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.804200"], ["updated_at", "2016-04-05 12:29:23.804200"]]
10015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10016
+  (0.1ms) SAVEPOINT active_record_1
10017
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.805485"], ["updated_at", "2016-04-05 12:29:23.805485"]]
10018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10019
+ Processing by EmployeesController#show as HTML
10020
+ Parameters: {"id"=>"518"}
10021
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 518]]
10022
+ Rendered employees/show.html.erb within layouts/application (0.8ms)
10023
+ Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
10024
+  (0.1ms) ROLLBACK
10025
+  (0.1ms) BEGIN
10026
+ ----------------------------------------------------
10027
+ EmployeesControllerTest: test_should_create_employee
10028
+ ----------------------------------------------------
10029
+  (0.1ms) SAVEPOINT active_record_1
10030
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.813126"], ["updated_at", "2016-04-05 12:29:23.813126"]]
10031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10032
+  (0.1ms) SAVEPOINT active_record_1
10033
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.814284"], ["updated_at", "2016-04-05 12:29:23.814284"]]
10034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10035
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10036
+ Processing by EmployeesController#create as HTML
10037
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
10038
+  (0.1ms) SAVEPOINT active_record_1
10039
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-05 12:29:23.817313"], ["updated_at", "2016-04-05 12:29:23.817313"]]
10040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10041
+ Redirected to http://test.host/employees/522
10042
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
10043
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10044
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10045
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
10046
+  (0.1ms) ROLLBACK
10047
+  (0.1ms) BEGIN
10048
+ -----------------------------------------------------
10049
+ EmployeesControllerTest: test_should_destroy_employee
10050
+ -----------------------------------------------------
10051
+  (0.1ms) SAVEPOINT active_record_1
10052
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.821044"], ["updated_at", "2016-04-05 12:29:23.821044"]]
10053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10054
+  (0.2ms) SAVEPOINT active_record_1
10055
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.822266"], ["updated_at", "2016-04-05 12:29:23.822266"]]
10056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10057
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10058
+ Processing by EmployeesController#destroy as HTML
10059
+ Parameters: {"id"=>"523"}
10060
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 523]]
10061
+  (0.1ms) SAVEPOINT active_record_1
10062
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 523]]
10063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10064
+ Redirected to http://test.host/employees
10065
+ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
10066
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10067
+  (0.1ms) ROLLBACK
10068
+  (0.1ms) BEGIN
10069
+ ----------------------------------------------
10070
+ EmployeesControllerTest: test_should_get_index
10071
+ ----------------------------------------------
10072
+  (0.1ms) SAVEPOINT active_record_1
10073
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.827008"], ["updated_at", "2016-04-05 12:29:23.827008"]]
10074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10075
+  (0.1ms) SAVEPOINT active_record_1
10076
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.828039"], ["updated_at", "2016-04-05 12:29:23.828039"]]
10077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10078
+ Processing by EmployeesController#index as HTML
10079
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
10080
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
10081
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
10082
+  (0.1ms) ROLLBACK
10083
+  (0.1ms) BEGIN
10084
+ --------------------------------------------------------------
10085
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
10086
+ --------------------------------------------------------------
10087
+  (0.1ms) SAVEPOINT active_record_1
10088
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.833697"], ["updated_at", "2016-04-05 12:29:23.833697"]]
10089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10090
+  (0.1ms) SAVEPOINT active_record_1
10091
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.834762"], ["updated_at", "2016-04-05 12:29:23.834762"]]
10092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10093
+ Processing by EmployeesController#edit as HTML
10094
+ Parameters: {"id"=>"527"}
10095
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 527]]
10096
+ Rendered employees/_form.html.erb (1.5ms)
10097
+ Rendered employees/edit.html.erb within layouts/application (2.0ms)
10098
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
10099
+  (0.1ms) ROLLBACK
10100
+  (0.1ms) BEGIN
10101
+ ---------------------------------------------
10102
+ EmployeesControllerTest: test_should_get_edit
10103
+ ---------------------------------------------
10104
+  (0.1ms) SAVEPOINT active_record_1
10105
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.849028"], ["updated_at", "2016-04-05 12:29:23.849028"]]
10106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10107
+  (0.1ms) SAVEPOINT active_record_1
10108
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.850195"], ["updated_at", "2016-04-05 12:29:23.850195"]]
10109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10110
+ Processing by EmployeesController#edit as HTML
10111
+ Parameters: {"id"=>"529"}
10112
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 529]]
10113
+ Rendered employees/_form.html.erb (1.4ms)
10114
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
10115
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
10116
+  (0.1ms) ROLLBACK
10117
+  (0.1ms) BEGIN
10118
+ ----------------------------------------------------
10119
+ EmployeesControllerTest: test_should_update_employee
10120
+ ----------------------------------------------------
10121
+  (0.1ms) SAVEPOINT active_record_1
10122
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:29:23.855475"], ["updated_at", "2016-04-05 12:29:23.855475"]]
10123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10124
+  (0.1ms) SAVEPOINT active_record_1
10125
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:29:23.856693"], ["updated_at", "2016-04-05 12:29:23.856693"]]
10126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10127
+ Processing by EmployeesController#update as HTML
10128
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"531"}
10129
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 531]]
10130
+  (0.1ms) SAVEPOINT active_record_1
10131
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-05 12:29:23.859463"], ["id", 531]]
10132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10133
+ Redirected to http://test.host/employees/531
10134
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
10135
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 531]]
10136
+  (0.1ms) ROLLBACK
10137
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10138
+  (0.2ms) BEGIN
10139
+ -------------------------------------------
10140
+ EmployeeTest: test_invalid_day_raises_error
10141
+ -------------------------------------------
10142
+  (0.1ms) ROLLBACK
10143
+  (0.1ms) BEGIN
10144
+ ---------------------------------------------------------------------
10145
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
10146
+ ---------------------------------------------------------------------
10147
+  (0.1ms) SAVEPOINT active_record_1
10148
+ SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:30:11.508486"], ["updated_at", "2016-04-05 12:30:11.508486"]]
10149
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10150
+  (0.1ms) SAVEPOINT active_record_1
10151
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 12:30:11.511812"], ["id", 533]]
10152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10153
+  (0.1ms) ROLLBACK
10154
+  (0.1ms) BEGIN
10155
+ -----------------------------------------------------------------------------------
10156
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
10157
+ -----------------------------------------------------------------------------------
10158
+  (0.1ms) ROLLBACK
10159
+  (0.1ms) BEGIN
10160
+ ------------------------------------------------------------------------
10161
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
10162
+ ------------------------------------------------------------------------
10163
+  (0.1ms) ROLLBACK
10164
+  (0.1ms) BEGIN
10165
+ ------------------------------------------------------------------------------------------
10166
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
10167
+ ------------------------------------------------------------------------------------------
10168
+  (0.1ms) ROLLBACK
10169
+  (0.1ms) BEGIN
10170
+ ----------------------------------------------------------------------------------------------
10171
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
10172
+ ----------------------------------------------------------------------------------------------
10173
+  (0.1ms) ROLLBACK
10174
+  (0.1ms) BEGIN
10175
+ ---------------------------------------------------------------------------------------------------------
10176
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
10177
+ ---------------------------------------------------------------------------------------------------------
10178
+  (0.1ms) ROLLBACK
10179
+  (0.1ms) BEGIN
10180
+ -----------------------------------------------------------------
10181
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
10182
+ -----------------------------------------------------------------
10183
+  (0.1ms) ROLLBACK
10184
+  (0.1ms) BEGIN
10185
+ ----------------------------------------------------------------------------------------------------------------
10186
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
10187
+ ----------------------------------------------------------------------------------------------------------------
10188
+  (0.1ms) ROLLBACK
10189
+  (0.1ms) BEGIN
10190
+ -------------------------------------------------------------------------------------------------------------------
10191
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
10192
+ -------------------------------------------------------------------------------------------------------------------
10193
+  (0.1ms) ROLLBACK
10194
+  (0.1ms) BEGIN
10195
+ ----------------------------------------------
10196
+ EmployeeTest: test_valid_dates_raise_no_errors
10197
+ ----------------------------------------------
10198
+  (0.1ms) ROLLBACK
10199
+  (0.1ms) BEGIN
10200
+ ---------------------------------------------------------------------
10201
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
10202
+ ---------------------------------------------------------------------
10203
+  (0.2ms) ROLLBACK
10204
+  (0.1ms) BEGIN
10205
+ -----------------------------------------------------------
10206
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
10207
+ -----------------------------------------------------------
10208
+  (0.1ms) ROLLBACK
10209
+  (0.1ms) BEGIN
10210
+ --------------------------------------------
10211
+ EmployeeTest: test_nil_dates_raise_no_errors
10212
+ --------------------------------------------
10213
+  (0.2ms) ROLLBACK
10214
+  (0.1ms) BEGIN
10215
+ -----------------------------------------------------------
10216
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
10217
+ -----------------------------------------------------------
10218
+  (0.1ms) ROLLBACK
10219
+  (0.1ms) BEGIN
10220
+ --------------------------------------------------------------------------
10221
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
10222
+ --------------------------------------------------------------------------
10223
+  (0.1ms) ROLLBACK
10224
+  (0.1ms) BEGIN
10225
+ -----------------------------------------------------------------------
10226
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
10227
+ -----------------------------------------------------------------------
10228
+  (0.1ms) ROLLBACK
10229
+  (0.1ms) BEGIN
10230
+ -------------------------------------------------------------------------
10231
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
10232
+ -------------------------------------------------------------------------
10233
+  (0.1ms) SAVEPOINT active_record_1
10234
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:30:11.537473"], ["updated_at", "2016-04-05 12:30:11.537473"]]
10235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10236
+  (0.1ms) SAVEPOINT active_record_1
10237
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10238
+  (0.1ms) ROLLBACK
10239
+  (0.1ms) BEGIN
10240
+ ---------------------------------------------------------------------------------
10241
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
10242
+ ---------------------------------------------------------------------------------
10243
+  (0.1ms) ROLLBACK
10244
+  (0.1ms) BEGIN
10245
+ ---------------------------------------------------------------------------------
10246
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
10247
+ ---------------------------------------------------------------------------------
10248
+  (0.1ms) ROLLBACK
10249
+  (0.1ms) BEGIN
10250
+ -----------------------------------------------------------------------------------------------
10251
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
10252
+ -----------------------------------------------------------------------------------------------
10253
+  (0.1ms) ROLLBACK
10254
+  (0.1ms) BEGIN
10255
+ ------------------------------------------------------------------------------------------
10256
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
10257
+ ------------------------------------------------------------------------------------------
10258
+  (0.1ms) ROLLBACK
10259
+  (0.1ms) BEGIN
10260
+ ----------------------------------------------------------------------------------------------------------------------------------
10261
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
10262
+ ----------------------------------------------------------------------------------------------------------------------------------
10263
+  (0.1ms) ROLLBACK
10264
+  (0.1ms) BEGIN
10265
+ -----------------------------------------------------------------------------------------
10266
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
10267
+ -----------------------------------------------------------------------------------------
10268
+  (0.1ms) ROLLBACK
10269
+  (0.1ms) BEGIN
10270
+ -------------------------------------------------------------------------------
10271
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
10272
+ -------------------------------------------------------------------------------
10273
+  (0.1ms) ROLLBACK
10274
+  (0.1ms) BEGIN
10275
+ ---------------------------------------------
10276
+ EmployeesControllerTest: test_should_get_edit
10277
+ ---------------------------------------------
10278
+  (0.2ms) SAVEPOINT active_record_1
10279
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.570324"], ["updated_at", "2016-04-05 12:30:11.570324"]]
10280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10281
+  (0.1ms) SAVEPOINT active_record_1
10282
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.571741"], ["updated_at", "2016-04-05 12:30:11.571741"]]
10283
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10284
+ Processing by EmployeesController#edit as HTML
10285
+ Parameters: {"id"=>"535"}
10286
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 535]]
10287
+ Rendered employees/_form.html.erb (8.3ms)
10288
+ Rendered employees/edit.html.erb within layouts/application (11.2ms)
10289
+ Completed 200 OK in 114ms (Views: 111.3ms | ActiveRecord: 0.2ms)
10290
+  (0.2ms) ROLLBACK
10291
+  (0.1ms) BEGIN
10292
+ ----------------------------------------------------
10293
+ EmployeesControllerTest: test_should_create_employee
10294
+ ----------------------------------------------------
10295
+  (0.1ms) SAVEPOINT active_record_1
10296
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.690517"], ["updated_at", "2016-04-05 12:30:11.690517"]]
10297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10298
+  (0.1ms) SAVEPOINT active_record_1
10299
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.691781"], ["updated_at", "2016-04-05 12:30:11.691781"]]
10300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10301
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10302
+ Processing by EmployeesController#create as HTML
10303
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
10304
+  (0.1ms) SAVEPOINT active_record_1
10305
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-05 12:30:11.694819"], ["updated_at", "2016-04-05 12:30:11.694819"]]
10306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10307
+ Redirected to http://test.host/employees/539
10308
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
10309
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10310
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10311
+ Employee Load (0.4ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
10312
+  (0.1ms) ROLLBACK
10313
+  (0.1ms) BEGIN
10314
+ --------------------------------------------
10315
+ EmployeesControllerTest: test_should_get_new
10316
+ --------------------------------------------
10317
+  (0.1ms) SAVEPOINT active_record_1
10318
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.698766"], ["updated_at", "2016-04-05 12:30:11.698766"]]
10319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10320
+  (0.1ms) SAVEPOINT active_record_1
10321
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.699805"], ["updated_at", "2016-04-05 12:30:11.699805"]]
10322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10323
+ Processing by EmployeesController#new as HTML
10324
+ Rendered employees/_form.html.erb (1.4ms)
10325
+ Rendered employees/new.html.erb within layouts/application (1.8ms)
10326
+ Completed 200 OK in 3ms (Views: 3.3ms | ActiveRecord: 0.0ms)
10327
+  (0.1ms) ROLLBACK
10328
+  (0.1ms) BEGIN
10329
+ -----------------------------------------------------
10330
+ EmployeesControllerTest: test_should_destroy_employee
10331
+ -----------------------------------------------------
10332
+  (0.1ms) SAVEPOINT active_record_1
10333
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.705909"], ["updated_at", "2016-04-05 12:30:11.705909"]]
10334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10335
+  (0.1ms) SAVEPOINT active_record_1
10336
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.706975"], ["updated_at", "2016-04-05 12:30:11.706975"]]
10337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10338
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10339
+ Processing by EmployeesController#destroy as HTML
10340
+ Parameters: {"id"=>"542"}
10341
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 542]]
10342
+  (0.1ms) SAVEPOINT active_record_1
10343
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 542]]
10344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10345
+ Redirected to http://test.host/employees
10346
+ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
10347
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10348
+  (0.1ms) ROLLBACK
10349
+  (0.1ms) BEGIN
10350
+ ----------------------------------------------------
10351
+ EmployeesControllerTest: test_should_update_employee
10352
+ ----------------------------------------------------
10353
+  (0.1ms) SAVEPOINT active_record_1
10354
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.711815"], ["updated_at", "2016-04-05 12:30:11.711815"]]
10355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10356
+  (0.1ms) SAVEPOINT active_record_1
10357
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.712823"], ["updated_at", "2016-04-05 12:30:11.712823"]]
10358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10359
+ Processing by EmployeesController#update as HTML
10360
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"544"}
10361
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]
10362
+  (0.1ms) SAVEPOINT active_record_1
10363
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-05 12:30:11.715408"], ["id", 544]]
10364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10365
+ Redirected to http://test.host/employees/544
10366
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
10367
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]
10368
+  (0.1ms) ROLLBACK
10369
+  (0.1ms) BEGIN
10370
+ --------------------------------------------------------------
10371
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
10372
+ --------------------------------------------------------------
10373
+  (0.1ms) SAVEPOINT active_record_1
10374
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.718271"], ["updated_at", "2016-04-05 12:30:11.718271"]]
10375
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10376
+  (0.1ms) SAVEPOINT active_record_1
10377
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.719253"], ["updated_at", "2016-04-05 12:30:11.719253"]]
10378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10379
+ Processing by EmployeesController#edit as HTML
10380
+ Parameters: {"id"=>"546"}
10381
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 546]]
10382
+ Rendered employees/_form.html.erb (1.4ms)
10383
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
10384
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
10385
+  (0.1ms) ROLLBACK
10386
+  (0.1ms) BEGIN
10387
+ --------------------------------------------------
10388
+ EmployeesControllerTest: test_should_show_employee
10389
+ --------------------------------------------------
10390
+  (0.1ms) SAVEPOINT active_record_1
10391
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.726423"], ["updated_at", "2016-04-05 12:30:11.726423"]]
10392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10393
+  (0.1ms) SAVEPOINT active_record_1
10394
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.727786"], ["updated_at", "2016-04-05 12:30:11.727786"]]
10395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10396
+ Processing by EmployeesController#show as HTML
10397
+ Parameters: {"id"=>"548"}
10398
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 548]]
10399
+ Rendered employees/show.html.erb within layouts/application (1.6ms)
10400
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
10401
+  (0.2ms) ROLLBACK
10402
+  (0.1ms) BEGIN
10403
+ ----------------------------------------------
10404
+ EmployeesControllerTest: test_should_get_index
10405
+ ----------------------------------------------
10406
+  (0.1ms) SAVEPOINT active_record_1
10407
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:11.734203"], ["updated_at", "2016-04-05 12:30:11.734203"]]
10408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10409
+  (0.1ms) SAVEPOINT active_record_1
10410
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:11.735196"], ["updated_at", "2016-04-05 12:30:11.735196"]]
10411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10412
+ Processing by EmployeesController#index as HTML
10413
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees"
10414
+ Rendered employees/index.html.erb within layouts/application (1.3ms)
10415
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
10416
+  (0.1ms) ROLLBACK
10417
+  (0.1ms) BEGIN
10418
+ ---------------------------------------------------------------
10419
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
10420
+ ---------------------------------------------------------------
10421
+  (0.1ms) ROLLBACK
10422
+  (0.0ms) BEGIN
10423
+ -------------------------------------------------------
10424
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
10425
+ -------------------------------------------------------
10426
+  (0.1ms) ROLLBACK
10427
+  (0.1ms) BEGIN
10428
+ -----------------------------------------------------------
10429
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
10430
+ -----------------------------------------------------------
10431
+  (0.1ms) ROLLBACK
10432
+  (0.1ms) BEGIN
10433
+ -------------------------------------------------------------
10434
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
10435
+ -------------------------------------------------------------
10436
+  (0.1ms) ROLLBACK
10437
+  (0.1ms) BEGIN
10438
+ --------------------------------------------------------
10439
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
10440
+ --------------------------------------------------------
10441
+  (0.1ms) ROLLBACK
10442
+  (0.1ms) BEGIN
10443
+ -------------------------------------
10444
+ GovUkDateFieldsTest: test_squash_html
10445
+ -------------------------------------
10446
+  (0.1ms) ROLLBACK
10447
+  (0.1ms) BEGIN
10448
+ ------------------------------------------
10449
+ GovUkDateFieldsTest: test_fieldset_with_id
10450
+ ------------------------------------------
10451
+  (0.1ms) ROLLBACK
10452
+  (0.1ms) BEGIN
10453
+ ---------------------------------------------------------------
10454
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10455
+ ---------------------------------------------------------------
10456
+  (0.1ms) ROLLBACK
10457
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10458
+  (0.2ms) BEGIN
10459
+ ---------------------------------------------
10460
+ EmployeesControllerTest: test_should_get_edit
10461
+ ---------------------------------------------
10462
+  (0.1ms) SAVEPOINT active_record_1
10463
+ SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.851478"], ["updated_at", "2016-04-05 12:30:33.851478"]]
10464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10465
+  (0.1ms) SAVEPOINT active_record_1
10466
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:33.854993"], ["updated_at", "2016-04-05 12:30:33.854993"]]
10467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10468
+ Processing by EmployeesController#edit as HTML
10469
+ Parameters: {"id"=>"552"}
10470
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 552]]
10471
+ Rendered employees/_form.html.erb (7.8ms)
10472
+ Rendered employees/edit.html.erb within layouts/application (10.5ms)
10473
+ Completed 200 OK in 119ms (Views: 115.8ms | ActiveRecord: 0.2ms)
10474
+  (0.2ms) ROLLBACK
10475
+  (0.1ms) BEGIN
10476
+ ----------------------------------------------
10477
+ EmployeesControllerTest: test_should_get_index
10478
+ ----------------------------------------------
10479
+  (0.1ms) SAVEPOINT active_record_1
10480
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.978650"], ["updated_at", "2016-04-05 12:30:33.978650"]]
10481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10482
+  (0.1ms) SAVEPOINT active_record_1
10483
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:33.979918"], ["updated_at", "2016-04-05 12:30:33.979918"]]
10484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10485
+ Processing by EmployeesController#index as HTML
10486
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
10487
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
10488
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
10489
+  (0.1ms) ROLLBACK
10490
+  (0.1ms) BEGIN
10491
+ --------------------------------------------
10492
+ EmployeesControllerTest: test_should_get_new
10493
+ --------------------------------------------
10494
+  (0.1ms) SAVEPOINT active_record_1
10495
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.985616"], ["updated_at", "2016-04-05 12:30:33.985616"]]
10496
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10497
+  (0.1ms) SAVEPOINT active_record_1
10498
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:33.986759"], ["updated_at", "2016-04-05 12:30:33.986759"]]
10499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10500
+ Processing by EmployeesController#new as HTML
10501
+ Rendered employees/_form.html.erb (1.3ms)
10502
+ Rendered employees/new.html.erb within layouts/application (1.7ms)
10503
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
10504
+  (0.1ms) ROLLBACK
10505
+  (0.1ms) BEGIN
10506
+ -----------------------------------------------------
10507
+ EmployeesControllerTest: test_should_destroy_employee
10508
+ -----------------------------------------------------
10509
+  (0.1ms) SAVEPOINT active_record_1
10510
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.992397"], ["updated_at", "2016-04-05 12:30:33.992397"]]
10511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10512
+  (0.1ms) SAVEPOINT active_record_1
10513
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:33.993454"], ["updated_at", "2016-04-05 12:30:33.993454"]]
10514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10515
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10516
+ Processing by EmployeesController#destroy as HTML
10517
+ Parameters: {"id"=>"558"}
10518
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 558]]
10519
+  (0.1ms) SAVEPOINT active_record_1
10520
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 558]]
10521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10522
+ Redirected to http://test.host/employees
10523
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
10524
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10525
+  (0.1ms) ROLLBACK
10526
+  (0.1ms) BEGIN
10527
+ --------------------------------------------------------------
10528
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
10529
+ --------------------------------------------------------------
10530
+  (0.1ms) SAVEPOINT active_record_1
10531
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.998632"], ["updated_at", "2016-04-05 12:30:33.998632"]]
10532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10533
+  (0.1ms) SAVEPOINT active_record_1
10534
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:33.999699"], ["updated_at", "2016-04-05 12:30:33.999699"]]
10535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10536
+ Processing by EmployeesController#edit as HTML
10537
+ Parameters: {"id"=>"560"}
10538
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 560]]
10539
+ Rendered employees/_form.html.erb (1.3ms)
10540
+ Rendered employees/edit.html.erb within layouts/application (1.5ms)
10541
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
10542
+  (0.1ms) ROLLBACK
10543
+  (0.1ms) BEGIN
10544
+ ----------------------------------------------------
10545
+ EmployeesControllerTest: test_should_create_employee
10546
+ ----------------------------------------------------
10547
+  (0.1ms) SAVEPOINT active_record_1
10548
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:34.006573"], ["updated_at", "2016-04-05 12:30:34.006573"]]
10549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10550
+  (0.1ms) SAVEPOINT active_record_1
10551
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:34.007672"], ["updated_at", "2016-04-05 12:30:34.007672"]]
10552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10553
+  (0.2ms) SELECT COUNT(*) FROM "employees"
10554
+ Processing by EmployeesController#create as HTML
10555
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
10556
+  (0.1ms) SAVEPOINT active_record_1
10557
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-05 12:30:34.010363"], ["updated_at", "2016-04-05 12:30:34.010363"]]
10558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10559
+ Redirected to http://test.host/employees/564
10560
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
10561
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10562
+  (0.1ms) SELECT COUNT(*) FROM "employees"
10563
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
10564
+  (0.1ms) ROLLBACK
10565
+  (0.1ms) BEGIN
10566
+ --------------------------------------------------
10567
+ EmployeesControllerTest: test_should_show_employee
10568
+ --------------------------------------------------
10569
+  (0.1ms) SAVEPOINT active_record_1
10570
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:34.014195"], ["updated_at", "2016-04-05 12:30:34.014195"]]
10571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10572
+  (0.1ms) SAVEPOINT active_record_1
10573
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:34.015375"], ["updated_at", "2016-04-05 12:30:34.015375"]]
10574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10575
+ Processing by EmployeesController#show as HTML
10576
+ Parameters: {"id"=>"565"}
10577
+ Employee Load (0.5ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 565]]
10578
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
10579
+ Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
10580
+  (0.1ms) ROLLBACK
10581
+  (0.1ms) BEGIN
10582
+ ----------------------------------------------------
10583
+ EmployeesControllerTest: test_should_update_employee
10584
+ ----------------------------------------------------
10585
+  (0.1ms) SAVEPOINT active_record_1
10586
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:34.021992"], ["updated_at", "2016-04-05 12:30:34.021992"]]
10587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10588
+  (0.1ms) SAVEPOINT active_record_1
10589
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 12:30:34.022958"], ["updated_at", "2016-04-05 12:30:34.022958"]]
10590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10591
+ Processing by EmployeesController#update as HTML
10592
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"567"}
10593
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]
10594
+  (0.1ms) SAVEPOINT active_record_1
10595
+ SQL (0.1ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-05 12:30:34.025506"], ["id", 567]]
10596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10597
+ Redirected to http://test.host/employees/567
10598
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
10599
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]
10600
+  (0.1ms) ROLLBACK
10601
+  (0.1ms) BEGIN
10602
+ ----------------------------------------------------------------------------------------------------------------------------------
10603
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
10604
+ ----------------------------------------------------------------------------------------------------------------------------------
10605
+  (0.1ms) ROLLBACK
10606
+  (0.1ms) BEGIN
10607
+ -----------------------------------------------------------------------------------------
10608
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
10609
+ -----------------------------------------------------------------------------------------
10610
+  (0.1ms) ROLLBACK
10611
+  (0.1ms) BEGIN
10612
+ -------------------------------------------------------------------------------
10613
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
10614
+ -------------------------------------------------------------------------------
10615
+  (0.1ms) ROLLBACK
10616
+  (0.1ms) BEGIN
10617
+ ------------------------------------------------------------------------------------------
10618
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
10619
+ ------------------------------------------------------------------------------------------
10620
+  (0.1ms) ROLLBACK
10621
+  (0.1ms) BEGIN
10622
+ ---------------------------------------------------------------------------------
10623
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
10624
+ ---------------------------------------------------------------------------------
10625
+  (0.1ms) ROLLBACK
10626
+  (0.1ms) BEGIN
10627
+ ---------------------------------------------------------------------------------
10628
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
10629
+ ---------------------------------------------------------------------------------
10630
+  (0.1ms) ROLLBACK
10631
+  (0.0ms) BEGIN
10632
+ -----------------------------------------------------------------------------------------------
10633
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
10634
+ -----------------------------------------------------------------------------------------------
10635
+  (0.1ms) ROLLBACK
10636
+  (0.1ms) BEGIN
10637
+ ---------------------------------------------------------------------------------------------------------
10638
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
10639
+ ---------------------------------------------------------------------------------------------------------
10640
+  (0.1ms) ROLLBACK
10641
+  (0.1ms) BEGIN
10642
+ ------------------------------------------------------------------------------------------
10643
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
10644
+ ------------------------------------------------------------------------------------------
10645
+  (0.1ms) ROLLBACK
10646
+  (0.1ms) BEGIN
10647
+ ---------------------------------------------------------------------
10648
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
10649
+ ---------------------------------------------------------------------
10650
+  (0.1ms) SAVEPOINT active_record_1
10651
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:30:34.035999"], ["updated_at", "2016-04-05 12:30:34.035999"]]
10652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10653
+  (0.0ms) SAVEPOINT active_record_1
10654
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 12:30:34.037082"], ["id", 569]]
10655
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10656
+  (0.1ms) ROLLBACK
10657
+  (0.1ms) BEGIN
10658
+ -----------------------------------------------------------------------
10659
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
10660
+ -----------------------------------------------------------------------
10661
+  (0.1ms) ROLLBACK
10662
+  (0.1ms) BEGIN
10663
+ ---------------------------------------------------------------------
10664
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
10665
+ ---------------------------------------------------------------------
10666
+  (0.1ms) ROLLBACK
10667
+  (0.1ms) BEGIN
10668
+ ----------------------------------------------
10669
+ EmployeeTest: test_valid_dates_raise_no_errors
10670
+ ----------------------------------------------
10671
+  (0.1ms) ROLLBACK
10672
+  (0.0ms) BEGIN
10673
+ -----------------------------------------------------------------
10674
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
10675
+ -----------------------------------------------------------------
10676
+  (0.1ms) ROLLBACK
10677
+  (0.1ms) BEGIN
10678
+ ----------------------------------------------------------------------------------------------------------------
10679
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
10680
+ ----------------------------------------------------------------------------------------------------------------
10681
+  (0.1ms) ROLLBACK
10682
+  (0.1ms) BEGIN
10683
+ -------------------------------------------------------------------------------------------------------------------
10684
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
10685
+ -------------------------------------------------------------------------------------------------------------------
10686
+  (0.1ms) ROLLBACK
10687
+  (0.1ms) BEGIN
10688
+ -----------------------------------------------------------------------------------
10689
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
10690
+ -----------------------------------------------------------------------------------
10691
+  (0.1ms) ROLLBACK
10692
+  (0.1ms) BEGIN
10693
+ --------------------------------------------------------------------------
10694
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
10695
+ --------------------------------------------------------------------------
10696
+  (0.1ms) ROLLBACK
10697
+  (0.0ms) BEGIN
10698
+ -----------------------------------------------------------
10699
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
10700
+ -----------------------------------------------------------
10701
+  (0.1ms) ROLLBACK
10702
+  (0.1ms) BEGIN
10703
+ --------------------------------------------
10704
+ EmployeeTest: test_nil_dates_raise_no_errors
10705
+ --------------------------------------------
10706
+  (0.1ms) ROLLBACK
10707
+  (0.1ms) BEGIN
10708
+ ------------------------------------------------------------------------
10709
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
10710
+ ------------------------------------------------------------------------
10711
+  (0.1ms) ROLLBACK
10712
+  (0.1ms) BEGIN
10713
+ -----------------------------------------------------------
10714
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
10715
+ -----------------------------------------------------------
10716
+  (0.1ms) ROLLBACK
10717
+  (0.1ms) BEGIN
10718
+ -------------------------------------------------------------------------
10719
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
10720
+ -------------------------------------------------------------------------
10721
+  (0.1ms) SAVEPOINT active_record_1
10722
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 12:30:34.046036"], ["updated_at", "2016-04-05 12:30:34.046036"]]
10723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10724
+  (0.1ms) SAVEPOINT active_record_1
10725
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10726
+  (0.1ms) ROLLBACK
10727
+  (0.1ms) BEGIN
10728
+ -------------------------------------------
10729
+ EmployeeTest: test_invalid_day_raises_error
10730
+ -------------------------------------------
10731
+  (0.1ms) ROLLBACK
10732
+  (0.0ms) BEGIN
10733
+ ----------------------------------------------------------------------------------------------
10734
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
10735
+ ----------------------------------------------------------------------------------------------
10736
+  (0.1ms) ROLLBACK
10737
+  (0.0ms) BEGIN
10738
+ -----------------------------------------------------------
10739
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
10740
+ -----------------------------------------------------------
10741
+  (0.1ms) ROLLBACK
10742
+  (0.1ms) BEGIN
10743
+ -------------------------------------------------------------
10744
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
10745
+ -------------------------------------------------------------
10746
+  (0.1ms) ROLLBACK
10747
+  (0.1ms) BEGIN
10748
+ ---------------------------------------------------------------
10749
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
10750
+ ---------------------------------------------------------------
10751
+  (0.1ms) ROLLBACK
10752
+  (0.0ms) BEGIN
10753
+ -------------------------------------
10754
+ GovUkDateFieldsTest: test_squash_html
10755
+ -------------------------------------
10756
+  (0.1ms) ROLLBACK
10757
+  (0.1ms) BEGIN
10758
+ ---------------------------------------------------------------
10759
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10760
+ ---------------------------------------------------------------
10761
+  (0.1ms) ROLLBACK
10762
+  (0.1ms) BEGIN
10763
+ -------------------------------------------------------
10764
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
10765
+ -------------------------------------------------------
10766
+  (0.1ms) ROLLBACK
10767
+  (0.1ms) BEGIN
10768
+ --------------------------------------------------------
10769
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
10770
+ --------------------------------------------------------
10771
+  (0.1ms) ROLLBACK
10772
+  (0.1ms) BEGIN
10773
+ ------------------------------------------
10774
+ GovUkDateFieldsTest: test_fieldset_with_id
10775
+ ------------------------------------------
10776
+  (0.1ms) ROLLBACK
10777
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10778
+  (0.2ms) BEGIN
10779
+ ---------------------------------------------------------------
10780
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10781
+ ---------------------------------------------------------------
10782
+  (0.1ms) ROLLBACK
10783
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10784
+  (0.2ms) BEGIN
10785
+ ---------------------------------------------------------------
10786
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10787
+ ---------------------------------------------------------------
10788
+  (0.2ms) ROLLBACK
10789
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10790
+  (0.2ms) BEGIN
10791
+ ------------------------------------------
10792
+ GovUkDateFieldsTest: test_fieldset_with_id
10793
+ ------------------------------------------
10794
+  (0.2ms) ROLLBACK
10795
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10796
+  (0.2ms) BEGIN
10797
+ ------------------------------------------
10798
+ GovUkDateFieldsTest: test_fieldset_with_id
10799
+ ------------------------------------------
10800
+  (0.2ms) ROLLBACK
10801
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
10802
+  (0.2ms) BEGIN
10803
+ ------------------------------------------
10804
+ GovUkDateFieldsTest: test_fieldset_with_id
10805
+ ------------------------------------------
10806
+  (0.4ms) ROLLBACK
10807
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10808
+  (0.1ms) BEGIN
10809
+ ------------------------------------------
10810
+ GovUkDateFieldsTest: test_fieldset_with_id
10811
+ ------------------------------------------
10812
+  (0.2ms) ROLLBACK
10813
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10814
+  (0.2ms) BEGIN
10815
+ ------------------------------------------
10816
+ GovUkDateFieldsTest: test_fieldset_with_id
10817
+ ------------------------------------------
10818
+  (0.2ms) ROLLBACK
10819
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10820
+  (0.2ms) BEGIN
10821
+ ------------------------------------------
10822
+ GovUkDateFieldsTest: test_fieldset_with_id
10823
+ ------------------------------------------
10824
+  (0.2ms) ROLLBACK
10825
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10826
+  (0.2ms) BEGIN
10827
+ ------------------------------------------
10828
+ GovUkDateFieldsTest: test_fieldset_with_id
10829
+ ------------------------------------------
10830
+  (0.2ms) ROLLBACK
10831
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10832
+  (0.2ms) BEGIN
10833
+ ------------------------------------------
10834
+ GovUkDateFieldsTest: test_fieldset_with_id
10835
+ ------------------------------------------
10836
+  (0.2ms) ROLLBACK
10837
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10838
+  (0.2ms) BEGIN
10839
+ ------------------------------------------
10840
+ GovUkDateFieldsTest: test_fieldset_with_id
10841
+ ------------------------------------------
10842
+  (0.3ms) ROLLBACK
10843
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10844
+  (0.1ms) BEGIN
10845
+ ------------------------------------------
10846
+ GovUkDateFieldsTest: test_fieldset_with_id
10847
+ ------------------------------------------
10848
+  (0.2ms) ROLLBACK
10849
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10850
+  (0.2ms) BEGIN
10851
+ ------------------------------------------
10852
+ GovUkDateFieldsTest: test_fieldset_with_id
10853
+ ------------------------------------------
10854
+  (0.1ms) ROLLBACK
10855
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10856
+  (0.1ms) BEGIN
10857
+ ---------------------------------------------------------------
10858
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10859
+ ---------------------------------------------------------------
10860
+  (0.2ms) ROLLBACK
10861
+  (0.0ms) BEGIN
10862
+ -------------------------------------------------------------
10863
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
10864
+ -------------------------------------------------------------
10865
+  (0.1ms) ROLLBACK
10866
+  (0.1ms) BEGIN
10867
+ ------------------------------------------
10868
+ GovUkDateFieldsTest: test_fieldset_with_id
10869
+ ------------------------------------------
10870
+  (0.1ms) ROLLBACK
10871
+  (0.1ms) BEGIN
10872
+ --------------------------------------------------------
10873
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
10874
+ --------------------------------------------------------
10875
+  (0.1ms) ROLLBACK
10876
+  (0.1ms) BEGIN
10877
+ ---------------------------------------------------------------
10878
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
10879
+ ---------------------------------------------------------------
10880
+  (0.1ms) ROLLBACK
10881
+  (0.0ms) BEGIN
10882
+ -----------------------------------------------------------
10883
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
10884
+ -----------------------------------------------------------
10885
+  (0.2ms) ROLLBACK
10886
+  (0.1ms) BEGIN
10887
+ -------------------------------------------------------
10888
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
10889
+ -------------------------------------------------------
10890
+  (0.1ms) ROLLBACK
10891
+  (0.1ms) BEGIN
10892
+ -------------------------------------
10893
+ GovUkDateFieldsTest: test_squash_html
10894
+ -------------------------------------
10895
+  (0.1ms) ROLLBACK
10896
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10897
+  (0.2ms) BEGIN
10898
+ -------------------------------------------------------------
10899
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
10900
+ -------------------------------------------------------------
10901
+  (0.1ms) ROLLBACK
10902
+  (0.1ms) BEGIN
10903
+ --------------------------------------------------------
10904
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
10905
+ --------------------------------------------------------
10906
+  (0.1ms) ROLLBACK
10907
+  (0.1ms) BEGIN
10908
+ ---------------------------------------------------------------
10909
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
10910
+ ---------------------------------------------------------------
10911
+  (0.1ms) ROLLBACK
10912
+  (0.1ms) BEGIN
10913
+ -------------------------------------------------------
10914
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
10915
+ -------------------------------------------------------
10916
+  (0.1ms) ROLLBACK
10917
+  (0.1ms) BEGIN
10918
+ -----------------------------------------------------------
10919
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
10920
+ -----------------------------------------------------------
10921
+  (0.2ms) ROLLBACK
10922
+  (0.1ms) BEGIN
10923
+ ------------------------------------------
10924
+ GovUkDateFieldsTest: test_fieldset_with_id
10925
+ ------------------------------------------
10926
+  (0.1ms) ROLLBACK
10927
+  (0.1ms) BEGIN
10928
+ -------------------------------------
10929
+ GovUkDateFieldsTest: test_squash_html
10930
+ -------------------------------------
10931
+  (0.1ms) ROLLBACK
10932
+  (0.1ms) BEGIN
10933
+ ---------------------------------------------------------------
10934
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10935
+ ---------------------------------------------------------------
10936
+  (0.1ms) ROLLBACK
10937
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10938
+  (0.2ms) BEGIN
10939
+ ---------------------------------------------------------------
10940
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
10941
+ ---------------------------------------------------------------
10942
+  (0.1ms) ROLLBACK
10943
+  (0.1ms) BEGIN
10944
+ -------------------------------------------------------------
10945
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
10946
+ -------------------------------------------------------------
10947
+  (0.1ms) ROLLBACK
10948
+  (0.1ms) BEGIN
10949
+ ---------------------------------------------------------------
10950
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
10951
+ ---------------------------------------------------------------
10952
+  (0.1ms) ROLLBACK
10953
+  (0.1ms) BEGIN
10954
+ ------------------------------------------
10955
+ GovUkDateFieldsTest: test_fieldset_with_id
10956
+ ------------------------------------------
10957
+  (0.1ms) ROLLBACK
10958
+  (0.1ms) BEGIN
10959
+ -------------------------------------------------------
10960
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
10961
+ -------------------------------------------------------
10962
+  (0.1ms) ROLLBACK
10963
+  (0.1ms) BEGIN
10964
+ -------------------------------------
10965
+ GovUkDateFieldsTest: test_squash_html
10966
+ -------------------------------------
10967
+  (0.1ms) ROLLBACK
10968
+  (0.1ms) BEGIN
10969
+ --------------------------------------------------------
10970
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
10971
+ --------------------------------------------------------
10972
+  (0.1ms) ROLLBACK
10973
+  (0.1ms) BEGIN
10974
+ -----------------------------------------------------------
10975
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
10976
+ -----------------------------------------------------------
10977
+  (0.1ms) ROLLBACK
10978
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
10979
+  (0.2ms) BEGIN
10980
+ ---------------------------------------------
10981
+ EmployeesControllerTest: test_should_get_edit
10982
+ ---------------------------------------------
10983
+  (0.1ms) SAVEPOINT active_record_1
10984
+ SQL (0.4ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.641664"], ["updated_at", "2016-04-05 13:15:01.641664"]]
10985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10986
+  (0.1ms) SAVEPOINT active_record_1
10987
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.645888"], ["updated_at", "2016-04-05 13:15:01.645888"]]
10988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10989
+ Processing by EmployeesController#edit as HTML
10990
+ Parameters: {"id"=>"571"}
10991
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 571]]
10992
+ Rendered employees/_form.html.erb (8.2ms)
10993
+ Rendered employees/edit.html.erb within layouts/application (11.1ms)
10994
+ Completed 200 OK in 118ms (Views: 114.3ms | ActiveRecord: 0.2ms)
10995
+  (0.3ms) ROLLBACK
10996
+  (0.1ms) BEGIN
10997
+ ----------------------------------------------------
10998
+ EmployeesControllerTest: test_should_update_employee
10999
+ ----------------------------------------------------
11000
+  (0.1ms) SAVEPOINT active_record_1
11001
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.768289"], ["updated_at", "2016-04-05 13:15:01.768289"]]
11002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11003
+  (0.1ms) SAVEPOINT active_record_1
11004
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.769567"], ["updated_at", "2016-04-05 13:15:01.769567"]]
11005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11006
+ Processing by EmployeesController#update as HTML
11007
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"573"}
11008
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]
11009
+  (0.1ms) SAVEPOINT active_record_1
11010
+ SQL (0.2ms) UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-05 13:15:01.772425"], ["id", 573]]
11011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11012
+ Redirected to http://test.host/employees/573
11013
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
11014
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]
11015
+  (0.1ms) ROLLBACK
11016
+  (0.1ms) BEGIN
11017
+ ----------------------------------------------
11018
+ EmployeesControllerTest: test_should_get_index
11019
+ ----------------------------------------------
11020
+  (0.1ms) SAVEPOINT active_record_1
11021
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.776274"], ["updated_at", "2016-04-05 13:15:01.776274"]]
11022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11023
+  (0.1ms) SAVEPOINT active_record_1
11024
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.777387"], ["updated_at", "2016-04-05 13:15:01.777387"]]
11025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11026
+ Processing by EmployeesController#index as HTML
11027
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
11028
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
11029
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
11030
+  (0.1ms) ROLLBACK
11031
+  (0.1ms) BEGIN
11032
+ --------------------------------------------------------------
11033
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
11034
+ --------------------------------------------------------------
11035
+  (0.1ms) SAVEPOINT active_record_1
11036
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.782929"], ["updated_at", "2016-04-05 13:15:01.782929"]]
11037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11038
+  (0.1ms) SAVEPOINT active_record_1
11039
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.784002"], ["updated_at", "2016-04-05 13:15:01.784002"]]
11040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11041
+ Processing by EmployeesController#edit as HTML
11042
+ Parameters: {"id"=>"577"}
11043
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 577]]
11044
+ Rendered employees/_form.html.erb (1.3ms)
11045
+ Rendered employees/edit.html.erb within layouts/application (1.5ms)
11046
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
11047
+  (0.1ms) ROLLBACK
11048
+  (0.1ms) BEGIN
11049
+ --------------------------------------------------
11050
+ EmployeesControllerTest: test_should_show_employee
11051
+ --------------------------------------------------
11052
+  (0.1ms) SAVEPOINT active_record_1
11053
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.790999"], ["updated_at", "2016-04-05 13:15:01.790999"]]
11054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11055
+  (0.1ms) SAVEPOINT active_record_1
11056
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.792158"], ["updated_at", "2016-04-05 13:15:01.792158"]]
11057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11058
+ Processing by EmployeesController#show as HTML
11059
+ Parameters: {"id"=>"579"}
11060
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 579]]
11061
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
11062
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
11063
+  (0.1ms) ROLLBACK
11064
+  (0.1ms) BEGIN
11065
+ ----------------------------------------------------
11066
+ EmployeesControllerTest: test_should_create_employee
11067
+ ----------------------------------------------------
11068
+  (0.1ms) SAVEPOINT active_record_1
11069
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.797158"], ["updated_at", "2016-04-05 13:15:01.797158"]]
11070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11071
+  (0.1ms) SAVEPOINT active_record_1
11072
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.798234"], ["updated_at", "2016-04-05 13:15:01.798234"]]
11073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11074
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11075
+ Processing by EmployeesController#create as HTML
11076
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
11077
+  (0.1ms) SAVEPOINT active_record_1
11078
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-05 13:15:01.801053"], ["updated_at", "2016-04-05 13:15:01.801053"]]
11079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11080
+ Redirected to http://test.host/employees/583
11081
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
11082
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11083
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11084
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
11085
+  (0.1ms) ROLLBACK
11086
+  (0.1ms) BEGIN
11087
+ -----------------------------------------------------
11088
+ EmployeesControllerTest: test_should_destroy_employee
11089
+ -----------------------------------------------------
11090
+  (0.1ms) SAVEPOINT active_record_1
11091
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.805018"], ["updated_at", "2016-04-05 13:15:01.805018"]]
11092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11093
+  (0.1ms) SAVEPOINT active_record_1
11094
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.806232"], ["updated_at", "2016-04-05 13:15:01.806232"]]
11095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11096
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11097
+ Processing by EmployeesController#destroy as HTML
11098
+ Parameters: {"id"=>"584"}
11099
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 584]]
11100
+  (0.1ms) SAVEPOINT active_record_1
11101
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 584]]
11102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11103
+ Redirected to http://test.host/employees
11104
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
11105
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11106
+  (0.1ms) ROLLBACK
11107
+  (0.1ms) BEGIN
11108
+ --------------------------------------------
11109
+ EmployeesControllerTest: test_should_get_new
11110
+ --------------------------------------------
11111
+  (0.1ms) SAVEPOINT active_record_1
11112
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.811958"], ["updated_at", "2016-04-05 13:15:01.811958"]]
11113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11114
+  (0.1ms) SAVEPOINT active_record_1
11115
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-05 13:15:01.812896"], ["updated_at", "2016-04-05 13:15:01.812896"]]
11116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11117
+ Processing by EmployeesController#new as HTML
11118
+ Rendered employees/_form.html.erb (1.3ms)
11119
+ Rendered employees/new.html.erb within layouts/application (1.7ms)
11120
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
11121
+  (0.1ms) ROLLBACK
11122
+  (0.1ms) BEGIN
11123
+ ---------------------------------------------------------------
11124
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
11125
+ ---------------------------------------------------------------
11126
+  (0.1ms) ROLLBACK
11127
+  (0.1ms) BEGIN
11128
+ -------------------------------------
11129
+ GovUkDateFieldsTest: test_squash_html
11130
+ -------------------------------------
11131
+  (0.1ms) ROLLBACK
11132
+  (0.1ms) BEGIN
11133
+ -----------------------------------------------------------
11134
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
11135
+ -----------------------------------------------------------
11136
+  (0.1ms) ROLLBACK
11137
+  (0.1ms) BEGIN
11138
+ ------------------------------------------
11139
+ GovUkDateFieldsTest: test_fieldset_with_id
11140
+ ------------------------------------------
11141
+  (0.1ms) ROLLBACK
11142
+  (0.1ms) BEGIN
11143
+ ---------------------------------------------------------------
11144
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
11145
+ ---------------------------------------------------------------
11146
+  (0.1ms) ROLLBACK
11147
+  (0.1ms) BEGIN
11148
+ --------------------------------------------------------
11149
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
11150
+ --------------------------------------------------------
11151
+  (0.1ms) ROLLBACK
11152
+  (0.1ms) BEGIN
11153
+ -------------------------------------------------------------
11154
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
11155
+ -------------------------------------------------------------
11156
+  (0.1ms) ROLLBACK
11157
+  (0.1ms) BEGIN
11158
+ -------------------------------------------------------
11159
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
11160
+ -------------------------------------------------------
11161
+  (0.1ms) ROLLBACK
11162
+  (0.1ms) BEGIN
11163
+ ---------------------------------------------------------------------------------------------------------
11164
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
11165
+ ---------------------------------------------------------------------------------------------------------
11166
+  (0.1ms) ROLLBACK
11167
+  (0.1ms) BEGIN
11168
+ --------------------------------------------------------------------------
11169
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
11170
+ --------------------------------------------------------------------------
11171
+  (0.1ms) ROLLBACK
11172
+  (0.1ms) BEGIN
11173
+ ------------------------------------------------------------------------
11174
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
11175
+ ------------------------------------------------------------------------
11176
+  (0.1ms) ROLLBACK
11177
+  (0.0ms) BEGIN
11178
+ -----------------------------------------------------------------------------------
11179
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
11180
+ -----------------------------------------------------------------------------------
11181
+  (0.1ms) ROLLBACK
11182
+  (0.1ms) BEGIN
11183
+ ----------------------------------------------
11184
+ EmployeeTest: test_valid_dates_raise_no_errors
11185
+ ----------------------------------------------
11186
+  (0.1ms) ROLLBACK
11187
+  (0.1ms) BEGIN
11188
+ ---------------------------------------------------------------------
11189
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
11190
+ ---------------------------------------------------------------------
11191
+  (0.1ms) ROLLBACK
11192
+  (0.1ms) BEGIN
11193
+ -------------------------------------------------------------------------------------------------------------------
11194
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
11195
+ -------------------------------------------------------------------------------------------------------------------
11196
+  (0.1ms) ROLLBACK
11197
+  (0.1ms) BEGIN
11198
+ ----------------------------------------------------------------------------------------------
11199
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
11200
+ ----------------------------------------------------------------------------------------------
11201
+  (0.1ms) ROLLBACK
11202
+  (0.1ms) BEGIN
11203
+ ----------------------------------------------------------------------------------------------------------------
11204
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
11205
+ ----------------------------------------------------------------------------------------------------------------
11206
+  (0.1ms) ROLLBACK
11207
+  (0.1ms) BEGIN
11208
+ -----------------------------------------------------------------
11209
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
11210
+ -----------------------------------------------------------------
11211
+  (0.1ms) ROLLBACK
11212
+  (0.1ms) BEGIN
11213
+ ---------------------------------------------------------------------
11214
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
11215
+ ---------------------------------------------------------------------
11216
+  (0.1ms) SAVEPOINT active_record_1
11217
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 13:15:01.833296"], ["updated_at", "2016-04-05 13:15:01.833296"]]
11218
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11219
+  (0.0ms) SAVEPOINT active_record_1
11220
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-05 13:15:01.834414"], ["id", 588]]
11221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11222
+  (0.1ms) ROLLBACK
11223
+  (0.1ms) BEGIN
11224
+ -----------------------------------------------------------
11225
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
11226
+ -----------------------------------------------------------
11227
+  (0.1ms) ROLLBACK
11228
+  (0.1ms) BEGIN
11229
+ -------------------------------------------------------------------------
11230
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
11231
+ -------------------------------------------------------------------------
11232
+  (0.1ms) SAVEPOINT active_record_1
11233
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-05 13:15:01.836723"], ["updated_at", "2016-04-05 13:15:01.836723"]]
11234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11235
+  (0.0ms) SAVEPOINT active_record_1
11236
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11237
+  (0.1ms) ROLLBACK
11238
+  (0.1ms) BEGIN
11239
+ ------------------------------------------------------------------------------------------
11240
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
11241
+ ------------------------------------------------------------------------------------------
11242
+  (0.1ms) ROLLBACK
11243
+  (0.1ms) BEGIN
11244
+ -------------------------------------------
11245
+ EmployeeTest: test_invalid_day_raises_error
11246
+ -------------------------------------------
11247
+  (0.1ms) ROLLBACK
11248
+  (0.0ms) BEGIN
11249
+ -----------------------------------------------------------
11250
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
11251
+ -----------------------------------------------------------
11252
+  (0.1ms) ROLLBACK
11253
+  (0.0ms) BEGIN
11254
+ --------------------------------------------
11255
+ EmployeeTest: test_nil_dates_raise_no_errors
11256
+ --------------------------------------------
11257
+  (0.1ms) ROLLBACK
11258
+  (0.0ms) BEGIN
11259
+ -----------------------------------------------------------------------
11260
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
11261
+ -----------------------------------------------------------------------
11262
+  (0.1ms) ROLLBACK
11263
+  (0.1ms) BEGIN
11264
+ -------------------------------------------------------------------------------
11265
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
11266
+ -------------------------------------------------------------------------------
11267
+  (0.1ms) ROLLBACK
11268
+  (0.1ms) BEGIN
11269
+ ---------------------------------------------------------------------------------
11270
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
11271
+ ---------------------------------------------------------------------------------
11272
+  (0.1ms) ROLLBACK
11273
+  (0.1ms) BEGIN
11274
+ -----------------------------------------------------------------------------------------------
11275
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
11276
+ -----------------------------------------------------------------------------------------------
11277
+  (0.1ms) ROLLBACK
11278
+  (0.1ms) BEGIN
11279
+ ---------------------------------------------------------------------------------
11280
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
11281
+ ---------------------------------------------------------------------------------
11282
+  (0.1ms) ROLLBACK
11283
+  (0.1ms) BEGIN
11284
+ ----------------------------------------------------------------------------------------------------------------------------------
11285
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
11286
+ ----------------------------------------------------------------------------------------------------------------------------------
11287
+  (0.1ms) ROLLBACK
11288
+  (0.1ms) BEGIN
11289
+ ------------------------------------------------------------------------------------------
11290
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
11291
+ ------------------------------------------------------------------------------------------
11292
+  (0.1ms) ROLLBACK
11293
+  (0.1ms) BEGIN
11294
+ -----------------------------------------------------------------------------------------
11295
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
11296
+ -----------------------------------------------------------------------------------------
11297
+  (0.1ms) ROLLBACK