gov_uk_date_fields 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1938,3 +1938,1464 @@ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
1938
1938
  DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
1939
1939
  --------------------------------------------------------------------------
1940
1940
   (0.1ms) ROLLBACK
1941
+  (0.2ms) ROLLBACK
1942
+ ActiveRecord::SchemaMigration Load (2.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1943
+  (0.2ms) BEGIN
1944
+ ----------------------------------------------------------------------------------------------------------------
1945
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
1946
+ ----------------------------------------------------------------------------------------------------------------
1947
+  (0.1ms) ROLLBACK
1948
+  (0.1ms) BEGIN
1949
+ -----------------------------------------------------------------------
1950
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
1951
+ -----------------------------------------------------------------------
1952
+  (0.1ms) ROLLBACK
1953
+  (0.1ms) BEGIN
1954
+ -----------------------------------------------------------------
1955
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
1956
+ -----------------------------------------------------------------
1957
+  (0.1ms) ROLLBACK
1958
+  (0.1ms) BEGIN
1959
+ -------------------------------------------------------------------------------------------------------------------
1960
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
1961
+ -------------------------------------------------------------------------------------------------------------------
1962
+  (0.1ms) ROLLBACK
1963
+  (0.1ms) BEGIN
1964
+ ---------------------------------------------------------------------
1965
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
1966
+ ---------------------------------------------------------------------
1967
+  (0.5ms) SAVEPOINT active_record_1
1968
+ SQL (4.0ms) 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-08-22 15:03:04.869171"], ["updated_at", "2016-08-22 15:03:04.869171"]]
1969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1970
+  (0.1ms) SAVEPOINT active_record_1
1971
+ SQL (0.3ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-08-22 15:03:04.877371"], ["id", 787]]
1972
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1973
+  (0.1ms) ROLLBACK
1974
+  (0.1ms) BEGIN
1975
+ -----------------------------------------------------------------------------------
1976
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
1977
+ -----------------------------------------------------------------------------------
1978
+  (0.1ms) ROLLBACK
1979
+  (0.1ms) BEGIN
1980
+ -------------------------------------------
1981
+ EmployeeTest: test_invalid_day_raises_error
1982
+ -------------------------------------------
1983
+  (0.1ms) ROLLBACK
1984
+  (0.1ms) BEGIN
1985
+ -----------------------------------------------------------
1986
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
1987
+ -----------------------------------------------------------
1988
+  (0.1ms) ROLLBACK
1989
+  (0.1ms) BEGIN
1990
+ --------------------------------------------------------------------------
1991
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
1992
+ --------------------------------------------------------------------------
1993
+  (0.1ms) ROLLBACK
1994
+  (0.1ms) BEGIN
1995
+ -------------------------------------------------------------------------
1996
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
1997
+ -------------------------------------------------------------------------
1998
+  (0.1ms) SAVEPOINT active_record_1
1999
+ 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-08-22 15:03:04.886170"], ["updated_at", "2016-08-22 15:03:04.886170"]]
2000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2001
+  (0.1ms) SAVEPOINT active_record_1
2002
+  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1
2003
+  (0.1ms) ROLLBACK
2004
+  (0.1ms) BEGIN
2005
+ ---------------------------------------------------------------------------------------------------------
2006
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
2007
+ ---------------------------------------------------------------------------------------------------------
2008
+  (0.1ms) ROLLBACK
2009
+  (0.1ms) BEGIN
2010
+ ------------------------------------------------------------------------
2011
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
2012
+ ------------------------------------------------------------------------
2013
+  (0.1ms) ROLLBACK
2014
+  (0.1ms) BEGIN
2015
+ ------------------------------------------------------------------------------------------
2016
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
2017
+ ------------------------------------------------------------------------------------------
2018
+  (0.1ms) ROLLBACK
2019
+  (0.1ms) BEGIN
2020
+ ---------------------------------------------------------------------
2021
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
2022
+ ---------------------------------------------------------------------
2023
+  (0.1ms) ROLLBACK
2024
+  (0.1ms) BEGIN
2025
+ ----------------------------------------------------------------------------------------------
2026
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
2027
+ ----------------------------------------------------------------------------------------------
2028
+  (0.1ms) ROLLBACK
2029
+  (0.1ms) BEGIN
2030
+ -----------------------------------------------------------
2031
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
2032
+ -----------------------------------------------------------
2033
+  (0.1ms) ROLLBACK
2034
+  (0.1ms) BEGIN
2035
+ --------------------------------------------
2036
+ EmployeeTest: test_nil_dates_raise_no_errors
2037
+ --------------------------------------------
2038
+  (0.1ms) ROLLBACK
2039
+  (0.1ms) BEGIN
2040
+ ----------------------------------------------
2041
+ EmployeeTest: test_valid_dates_raise_no_errors
2042
+ ----------------------------------------------
2043
+  (0.1ms) ROLLBACK
2044
+  (0.1ms) BEGIN
2045
+ -----------------------------------------------------------------------
2046
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
2047
+ -----------------------------------------------------------------------
2048
+  (0.1ms) ROLLBACK
2049
+  (0.1ms) BEGIN
2050
+ -----------------------------------------------------------------
2051
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
2052
+ -----------------------------------------------------------------
2053
+  (0.1ms) ROLLBACK
2054
+  (0.1ms) BEGIN
2055
+ ---------------------------------------------------------------------
2056
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
2057
+ ---------------------------------------------------------------------
2058
+  (0.6ms) ROLLBACK
2059
+  (0.1ms) BEGIN
2060
+ -----------------------------------------------------------------------
2061
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
2062
+ -----------------------------------------------------------------------
2063
+  (0.1ms) ROLLBACK
2064
+  (0.1ms) BEGIN
2065
+ --------------------------------------------------------------------------
2066
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
2067
+ --------------------------------------------------------------------------
2068
+  (0.1ms) ROLLBACK
2069
+  (0.1ms) BEGIN
2070
+ -----------------------------------------------------------------------------------------------
2071
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
2072
+ -----------------------------------------------------------------------------------------------
2073
+  (0.1ms) ROLLBACK
2074
+  (0.1ms) BEGIN
2075
+ ------------------------------------------------------------------------------------------------
2076
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
2077
+ ------------------------------------------------------------------------------------------------
2078
+  (0.1ms) SAVEPOINT active_record_1
2079
+ 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-08-22 15:03:04.905271"], ["updated_at", "2016-08-22 15:03:04.905271"]]
2080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2081
+  (0.1ms) SAVEPOINT active_record_1
2082
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2083
+  (0.1ms) ROLLBACK
2084
+  (0.1ms) BEGIN
2085
+ -----------------------------------------------------------
2086
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
2087
+ -----------------------------------------------------------
2088
+  (0.1ms) ROLLBACK
2089
+  (0.1ms) BEGIN
2090
+ -------------------------------------------------------------------------------
2091
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
2092
+ -------------------------------------------------------------------------------
2093
+  (0.2ms) ROLLBACK
2094
+  (0.1ms) BEGIN
2095
+ -------------------------------------
2096
+ GovUkDateFieldsTest: test_squash_html
2097
+ -------------------------------------
2098
+  (0.1ms) ROLLBACK
2099
+  (0.1ms) BEGIN
2100
+ ------------------------------------------
2101
+ GovUkDateFieldsTest: test_fieldset_with_id
2102
+ ------------------------------------------
2103
+  (0.2ms) ROLLBACK
2104
+  (0.1ms) BEGIN
2105
+ ---------------------------------------------------------------
2106
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
2107
+ ---------------------------------------------------------------
2108
+  (0.1ms) ROLLBACK
2109
+  (0.1ms) BEGIN
2110
+ -------------------------------------------------------------
2111
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
2112
+ -------------------------------------------------------------
2113
+  (0.1ms) ROLLBACK
2114
+  (0.1ms) BEGIN
2115
+ --------------------------------------------------------
2116
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
2117
+ --------------------------------------------------------
2118
+  (0.1ms) ROLLBACK
2119
+  (0.1ms) BEGIN
2120
+ ---------------------------------------------------------------
2121
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
2122
+ ---------------------------------------------------------------
2123
+  (0.1ms) ROLLBACK
2124
+  (0.1ms) BEGIN
2125
+ -------------------------------------------------------
2126
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
2127
+ -------------------------------------------------------
2128
+  (0.1ms) ROLLBACK
2129
+  (0.1ms) BEGIN
2130
+ --------------------------------------------------------------
2131
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
2132
+ --------------------------------------------------------------
2133
+  (0.2ms) SAVEPOINT active_record_1
2134
+ 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-08-22 15:03:04.997169"], ["updated_at", "2016-08-22 15:03:04.997169"]]
2135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2136
+  (0.1ms) SAVEPOINT active_record_1
2137
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:04.998765"], ["updated_at", "2016-08-22 15:03:04.998765"]]
2138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2139
+ Processing by EmployeesController#edit as HTML
2140
+ Parameters: {"id"=>"790"}
2141
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 790]]
2142
+ Rendered employees/_form.html.erb (13.0ms)
2143
+ Rendered employees/edit.html.erb within layouts/application (18.2ms)
2144
+ Completed 200 OK in 232ms (Views: 228.3ms | ActiveRecord: 0.2ms)
2145
+  (0.2ms) ROLLBACK
2146
+  (0.1ms) BEGIN
2147
+ -----------------------------------------------------
2148
+ EmployeesControllerTest: test_should_destroy_employee
2149
+ -----------------------------------------------------
2150
+  (0.1ms) SAVEPOINT active_record_1
2151
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:03:05.245848"], ["updated_at", "2016-08-22 15:03:05.245848"]]
2152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2153
+  (0.1ms) SAVEPOINT active_record_1
2154
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.247244"], ["updated_at", "2016-08-22 15:03:05.247244"]]
2155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2156
+  (1.1ms) SELECT COUNT(*) FROM "employees"
2157
+ Processing by EmployeesController#destroy as HTML
2158
+ Parameters: {"id"=>"792"}
2159
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 792]]
2160
+  (0.1ms) SAVEPOINT active_record_1
2161
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 792]]
2162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2163
+ Redirected to http://test.host/employees
2164
+ Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
2165
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2166
+  (0.1ms) ROLLBACK
2167
+  (0.1ms) BEGIN
2168
+ ----------------------------------------------------
2169
+ EmployeesControllerTest: test_should_update_employee
2170
+ ----------------------------------------------------
2171
+  (0.1ms) SAVEPOINT active_record_1
2172
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:03:05.256222"], ["updated_at", "2016-08-22 15:03:05.256222"]]
2173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2174
+  (0.1ms) SAVEPOINT active_record_1
2175
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.257644"], ["updated_at", "2016-08-22 15:03:05.257644"]]
2176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2177
+ Processing by EmployeesController#update as HTML
2178
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"794"}
2179
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 794]]
2180
+  (0.1ms) SAVEPOINT active_record_1
2181
+ 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-08-22 15:03:05.260880"], ["id", 794]]
2182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2183
+ Redirected to http://test.host/employees/794
2184
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
2185
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 794]]
2186
+  (0.1ms) ROLLBACK
2187
+  (0.1ms) BEGIN
2188
+ --------------------------------------------
2189
+ EmployeesControllerTest: test_should_get_new
2190
+ --------------------------------------------
2191
+  (0.1ms) SAVEPOINT active_record_1
2192
+ 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-08-22 15:03:05.264658"], ["updated_at", "2016-08-22 15:03:05.264658"]]
2193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2194
+  (0.1ms) SAVEPOINT active_record_1
2195
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.265958"], ["updated_at", "2016-08-22 15:03:05.265958"]]
2196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2197
+ Processing by EmployeesController#new as HTML
2198
+ Rendered employees/_form.html.erb (2.3ms)
2199
+ Rendered employees/new.html.erb within layouts/application (2.8ms)
2200
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
2201
+  (0.1ms) ROLLBACK
2202
+  (0.1ms) BEGIN
2203
+ ----------------------------------------------------
2204
+ EmployeesControllerTest: test_should_create_employee
2205
+ ----------------------------------------------------
2206
+  (0.1ms) SAVEPOINT active_record_1
2207
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:03:05.273044"], ["updated_at", "2016-08-22 15:03:05.273044"]]
2208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2209
+  (0.1ms) SAVEPOINT active_record_1
2210
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.274069"], ["updated_at", "2016-08-22 15:03:05.274069"]]
2211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2212
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2213
+ Processing by EmployeesController#create as HTML
2214
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
2215
+  (0.1ms) SAVEPOINT active_record_1
2216
+ 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-08-22 15:03:05.276752"], ["updated_at", "2016-08-22 15:03:05.276752"]]
2217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2218
+ Redirected to http://test.host/employees/800
2219
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
2220
+  (0.1ms) SELECT COUNT(*) FROM "employees"
2221
+  (0.1ms) SELECT COUNT(*) FROM "employees"
2222
+ Employee Load (1.0ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
2223
+  (0.2ms) ROLLBACK
2224
+  (0.1ms) BEGIN
2225
+ ---------------------------------------------
2226
+ EmployeesControllerTest: test_should_get_edit
2227
+ ---------------------------------------------
2228
+  (0.1ms) SAVEPOINT active_record_1
2229
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:03:05.281685"], ["updated_at", "2016-08-22 15:03:05.281685"]]
2230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2231
+  (0.1ms) SAVEPOINT active_record_1
2232
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.282842"], ["updated_at", "2016-08-22 15:03:05.282842"]]
2233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2234
+ Processing by EmployeesController#edit as HTML
2235
+ Parameters: {"id"=>"801"}
2236
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 801]]
2237
+ Rendered employees/_form.html.erb (1.4ms)
2238
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
2239
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
2240
+  (0.1ms) ROLLBACK
2241
+  (0.1ms) BEGIN
2242
+ --------------------------------------------------
2243
+ EmployeesControllerTest: test_should_show_employee
2244
+ --------------------------------------------------
2245
+  (0.1ms) SAVEPOINT active_record_1
2246
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:03:05.288368"], ["updated_at", "2016-08-22 15:03:05.288368"]]
2247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2248
+  (0.1ms) SAVEPOINT active_record_1
2249
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.289527"], ["updated_at", "2016-08-22 15:03:05.289527"]]
2250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2251
+ Processing by EmployeesController#show as HTML
2252
+ Parameters: {"id"=>"803"}
2253
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 803]]
2254
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
2255
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
2256
+  (0.1ms) ROLLBACK
2257
+  (0.1ms) BEGIN
2258
+ ----------------------------------------------
2259
+ EmployeesControllerTest: test_should_get_index
2260
+ ----------------------------------------------
2261
+  (0.1ms) SAVEPOINT active_record_1
2262
+ 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-08-22 15:03:05.294762"], ["updated_at", "2016-08-22 15:03:05.294762"]]
2263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2264
+  (0.1ms) SAVEPOINT active_record_1
2265
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:03:05.296221"], ["updated_at", "2016-08-22 15:03:05.296221"]]
2266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2267
+ Processing by EmployeesController#index as HTML
2268
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
2269
+ Rendered employees/index.html.erb within layouts/application (1.5ms)
2270
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)
2271
+  (0.1ms) ROLLBACK
2272
+  (0.1ms) BEGIN
2273
+ -------------------------------------------------------------------------------
2274
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
2275
+ -------------------------------------------------------------------------------
2276
+  (0.1ms) ROLLBACK
2277
+  (0.0ms) BEGIN
2278
+ ------------------------------------------------------------------------------------------
2279
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
2280
+ ------------------------------------------------------------------------------------------
2281
+  (0.1ms) ROLLBACK
2282
+  (0.0ms) BEGIN
2283
+ ---------------------------------------------------------------------------------
2284
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
2285
+ ---------------------------------------------------------------------------------
2286
+  (0.1ms) ROLLBACK
2287
+  (0.1ms) BEGIN
2288
+ -----------------------------------------------------------------------------------------------
2289
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
2290
+ -----------------------------------------------------------------------------------------------
2291
+  (0.1ms) ROLLBACK
2292
+  (0.1ms) BEGIN
2293
+ ---------------------------------------------------------------------------------
2294
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
2295
+ ---------------------------------------------------------------------------------
2296
+  (0.1ms) ROLLBACK
2297
+  (0.0ms) BEGIN
2298
+ -----------------------------------------------------------------------------------------
2299
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
2300
+ -----------------------------------------------------------------------------------------
2301
+  (0.1ms) ROLLBACK
2302
+  (0.0ms) BEGIN
2303
+ ----------------------------------------------------------------------------------------------------------------------------------
2304
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
2305
+ ----------------------------------------------------------------------------------------------------------------------------------
2306
+  (0.1ms) ROLLBACK
2307
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2308
+  (0.1ms) BEGIN
2309
+ ------------------------------------------------------------------------------------------
2310
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
2311
+ ------------------------------------------------------------------------------------------
2312
+  (0.1ms) ROLLBACK
2313
+  (0.1ms) BEGIN
2314
+ -----------------------------------------------------------------------------------------------
2315
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
2316
+ -----------------------------------------------------------------------------------------------
2317
+  (0.1ms) ROLLBACK
2318
+  (0.1ms) BEGIN
2319
+ ---------------------------------------------------------------------------------
2320
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
2321
+ ---------------------------------------------------------------------------------
2322
+  (0.1ms) ROLLBACK
2323
+  (0.1ms) BEGIN
2324
+ -------------------------------------------------------------------------------
2325
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
2326
+ -------------------------------------------------------------------------------
2327
+  (0.1ms) ROLLBACK
2328
+  (0.1ms) BEGIN
2329
+ -----------------------------------------------------------------------------------------
2330
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
2331
+ -----------------------------------------------------------------------------------------
2332
+  (0.1ms) ROLLBACK
2333
+  (0.1ms) BEGIN
2334
+ ---------------------------------------------------------------------------------
2335
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
2336
+ ---------------------------------------------------------------------------------
2337
+  (0.1ms) ROLLBACK
2338
+  (0.1ms) BEGIN
2339
+ ----------------------------------------------------------------------------------------------------------------------------------
2340
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
2341
+ ----------------------------------------------------------------------------------------------------------------------------------
2342
+  (0.1ms) ROLLBACK
2343
+  (0.1ms) BEGIN
2344
+ --------------------------------------------
2345
+ EmployeeTest: test_nil_dates_raise_no_errors
2346
+ --------------------------------------------
2347
+  (0.1ms) ROLLBACK
2348
+  (0.1ms) BEGIN
2349
+ -----------------------------------------------------------------------------------
2350
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
2351
+ -----------------------------------------------------------------------------------
2352
+  (0.1ms) ROLLBACK
2353
+  (0.1ms) BEGIN
2354
+ -------------------------------------------------------------------------------------------------------------------
2355
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
2356
+ -------------------------------------------------------------------------------------------------------------------
2357
+  (0.1ms) ROLLBACK
2358
+  (0.1ms) BEGIN
2359
+ ----------------------------------------------
2360
+ EmployeeTest: test_valid_dates_raise_no_errors
2361
+ ----------------------------------------------
2362
+  (0.1ms) ROLLBACK
2363
+  (0.0ms) BEGIN
2364
+ ---------------------------------------------------------------------------------------------------------
2365
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
2366
+ ---------------------------------------------------------------------------------------------------------
2367
+  (0.1ms) ROLLBACK
2368
+  (0.0ms) BEGIN
2369
+ -----------------------------------------------------------------------
2370
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
2371
+ -----------------------------------------------------------------------
2372
+  (0.0ms) ROLLBACK
2373
+  (0.0ms) BEGIN
2374
+ -----------------------------------------------------------
2375
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
2376
+ -----------------------------------------------------------
2377
+  (0.0ms) ROLLBACK
2378
+  (0.0ms) BEGIN
2379
+ --------------------------------------------------------------------------
2380
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
2381
+ --------------------------------------------------------------------------
2382
+  (0.0ms) ROLLBACK
2383
+  (0.0ms) BEGIN
2384
+ ----------------------------------------------------------------------------------------------
2385
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
2386
+ ----------------------------------------------------------------------------------------------
2387
+  (0.0ms) ROLLBACK
2388
+  (0.0ms) BEGIN
2389
+ ----------------------------------------------------------------------------------------------------------------
2390
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
2391
+ ----------------------------------------------------------------------------------------------------------------
2392
+  (0.0ms) ROLLBACK
2393
+  (0.0ms) BEGIN
2394
+ -----------------------------------------------------------------
2395
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
2396
+ -----------------------------------------------------------------
2397
+  (0.0ms) ROLLBACK
2398
+  (0.0ms) BEGIN
2399
+ ------------------------------------------------------------------------------------------
2400
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
2401
+ ------------------------------------------------------------------------------------------
2402
+  (0.0ms) ROLLBACK
2403
+  (0.0ms) BEGIN
2404
+ ---------------------------------------------------------------------
2405
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
2406
+ ---------------------------------------------------------------------
2407
+  (0.0ms) ROLLBACK
2408
+  (0.0ms) BEGIN
2409
+ -----------------------------------------------------------
2410
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
2411
+ -----------------------------------------------------------
2412
+  (0.0ms) ROLLBACK
2413
+  (0.1ms) BEGIN
2414
+ -------------------------------------------
2415
+ EmployeeTest: test_invalid_day_raises_error
2416
+ -------------------------------------------
2417
+  (0.1ms) ROLLBACK
2418
+  (0.0ms) BEGIN
2419
+ -------------------------------------------------------------------------
2420
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
2421
+ -------------------------------------------------------------------------
2422
+  (0.0ms) SAVEPOINT active_record_1
2423
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-08-22 15:06:52.224420"], ["updated_at", "2016-08-22 15:06:52.224420"]]
2424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2425
+  (0.1ms) SAVEPOINT active_record_1
2426
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2427
+  (0.1ms) ROLLBACK
2428
+  (0.1ms) BEGIN
2429
+ ------------------------------------------------------------------------
2430
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
2431
+ ------------------------------------------------------------------------
2432
+  (0.1ms) ROLLBACK
2433
+  (0.1ms) BEGIN
2434
+ ---------------------------------------------------------------------
2435
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
2436
+ ---------------------------------------------------------------------
2437
+  (0.1ms) SAVEPOINT active_record_1
2438
+ 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-08-22 15:06:52.229604"], ["updated_at", "2016-08-22 15:06:52.229604"]]
2439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2440
+  (0.0ms) SAVEPOINT active_record_1
2441
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-08-22 15:06:52.230640"], ["id", 808]]
2442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2443
+  (0.1ms) ROLLBACK
2444
+  (0.1ms) BEGIN
2445
+ ---------------------------------------------------------------------
2446
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
2447
+ ---------------------------------------------------------------------
2448
+  (0.1ms) ROLLBACK
2449
+  (0.0ms) BEGIN
2450
+ ------------------------------------------------------------------------------------------------
2451
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
2452
+ ------------------------------------------------------------------------------------------------
2453
+  (0.1ms) SAVEPOINT active_record_1
2454
+ 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-08-22 15:06:52.240069"], ["updated_at", "2016-08-22 15:06:52.240069"]]
2455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2456
+  (0.0ms) SAVEPOINT active_record_1
2457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2458
+  (0.1ms) ROLLBACK
2459
+  (0.1ms) BEGIN
2460
+ -----------------------------------------------------------------------
2461
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
2462
+ -----------------------------------------------------------------------
2463
+  (0.1ms) ROLLBACK
2464
+  (0.0ms) BEGIN
2465
+ -----------------------------------------------------------------
2466
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
2467
+ -----------------------------------------------------------------
2468
+  (0.1ms) ROLLBACK
2469
+  (0.1ms) BEGIN
2470
+ -----------------------------------------------------------------------------------------------
2471
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
2472
+ -----------------------------------------------------------------------------------------------
2473
+  (0.1ms) ROLLBACK
2474
+  (0.0ms) BEGIN
2475
+ -----------------------------------------------------------------------
2476
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
2477
+ -----------------------------------------------------------------------
2478
+  (0.1ms) ROLLBACK
2479
+  (0.1ms) BEGIN
2480
+ --------------------------------------------------------------------------
2481
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
2482
+ --------------------------------------------------------------------------
2483
+  (0.1ms) ROLLBACK
2484
+  (0.1ms) BEGIN
2485
+ -------------------------------------------------------
2486
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
2487
+ -------------------------------------------------------
2488
+  (0.2ms) ROLLBACK
2489
+  (0.1ms) BEGIN
2490
+ ---------------------------------------------------------------
2491
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
2492
+ ---------------------------------------------------------------
2493
+  (0.1ms) ROLLBACK
2494
+  (0.1ms) BEGIN
2495
+ -------------------------------------------------------------
2496
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
2497
+ -------------------------------------------------------------
2498
+  (0.1ms) ROLLBACK
2499
+  (0.1ms) BEGIN
2500
+ ------------------------------------------
2501
+ GovUkDateFieldsTest: test_fieldset_with_id
2502
+ ------------------------------------------
2503
+  (0.1ms) ROLLBACK
2504
+  (0.1ms) BEGIN
2505
+ -------------------------------------------------------------------------------
2506
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
2507
+ -------------------------------------------------------------------------------
2508
+  (0.1ms) ROLLBACK
2509
+  (0.1ms) BEGIN
2510
+ -------------------------------------
2511
+ GovUkDateFieldsTest: test_squash_html
2512
+ -------------------------------------
2513
+  (0.1ms) ROLLBACK
2514
+  (0.1ms) BEGIN
2515
+ ---------------------------------------------------------------
2516
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
2517
+ ---------------------------------------------------------------
2518
+  (0.1ms) ROLLBACK
2519
+  (0.1ms) BEGIN
2520
+ --------------------------------------------------------
2521
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
2522
+ --------------------------------------------------------
2523
+  (0.1ms) ROLLBACK
2524
+  (0.1ms) BEGIN
2525
+ -----------------------------------------------------------
2526
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
2527
+ -----------------------------------------------------------
2528
+  (0.1ms) ROLLBACK
2529
+  (0.1ms) BEGIN
2530
+ ----------------------------------------------------
2531
+ EmployeesControllerTest: test_should_create_employee
2532
+ ----------------------------------------------------
2533
+  (0.1ms) SAVEPOINT active_record_1
2534
+ 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-08-22 15:06:52.312850"], ["updated_at", "2016-08-22 15:06:52.312850"]]
2535
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2536
+  (0.1ms) SAVEPOINT active_record_1
2537
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.314625"], ["updated_at", "2016-08-22 15:06:52.314625"]]
2538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2539
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2540
+ Processing by EmployeesController#create as HTML
2541
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
2542
+  (0.1ms) SAVEPOINT active_record_1
2543
+ SQL (0.2ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-08-22 15:06:52.320175"], ["updated_at", "2016-08-22 15:06:52.320175"]]
2544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2545
+ Redirected to http://test.host/employees/812
2546
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
2547
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2548
+  (0.1ms) SELECT COUNT(*) FROM "employees"
2549
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
2550
+  (0.1ms) ROLLBACK
2551
+  (0.1ms) BEGIN
2552
+ --------------------------------------------------
2553
+ EmployeesControllerTest: test_should_show_employee
2554
+ --------------------------------------------------
2555
+  (0.1ms) SAVEPOINT active_record_1
2556
+ 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-08-22 15:06:52.325898"], ["updated_at", "2016-08-22 15:06:52.325898"]]
2557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2558
+  (0.1ms) SAVEPOINT active_record_1
2559
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.327485"], ["updated_at", "2016-08-22 15:06:52.327485"]]
2560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2561
+ Processing by EmployeesController#show as HTML
2562
+ Parameters: {"id"=>"813"}
2563
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 813]]
2564
+ Rendered employees/show.html.erb within layouts/application (2.1ms)
2565
+ Completed 200 OK in 212ms (Views: 209.1ms | ActiveRecord: 0.2ms)
2566
+  (0.2ms) ROLLBACK
2567
+  (0.1ms) BEGIN
2568
+ --------------------------------------------------------------
2569
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
2570
+ --------------------------------------------------------------
2571
+  (0.1ms) SAVEPOINT active_record_1
2572
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:06:52.542983"], ["updated_at", "2016-08-22 15:06:52.542983"]]
2573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2574
+  (0.1ms) SAVEPOINT active_record_1
2575
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.544504"], ["updated_at", "2016-08-22 15:06:52.544504"]]
2576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2577
+ Processing by EmployeesController#edit as HTML
2578
+ Parameters: {"id"=>"815"}
2579
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 815]]
2580
+ Rendered employees/_form.html.erb (8.3ms)
2581
+ Rendered employees/edit.html.erb within layouts/application (11.8ms)
2582
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.2ms)
2583
+  (0.2ms) ROLLBACK
2584
+  (0.1ms) BEGIN
2585
+ --------------------------------------------
2586
+ EmployeesControllerTest: test_should_get_new
2587
+ --------------------------------------------
2588
+  (0.1ms) SAVEPOINT active_record_1
2589
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:06:52.563295"], ["updated_at", "2016-08-22 15:06:52.563295"]]
2590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2591
+  (0.1ms) SAVEPOINT active_record_1
2592
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.564575"], ["updated_at", "2016-08-22 15:06:52.564575"]]
2593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2594
+ Processing by EmployeesController#new as HTML
2595
+ Rendered employees/_form.html.erb (1.3ms)
2596
+ Rendered employees/new.html.erb within layouts/application (1.7ms)
2597
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
2598
+  (0.1ms) ROLLBACK
2599
+  (0.1ms) BEGIN
2600
+ ----------------------------------------------
2601
+ EmployeesControllerTest: test_should_get_index
2602
+ ----------------------------------------------
2603
+  (0.1ms) SAVEPOINT active_record_1
2604
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:06:52.570458"], ["updated_at", "2016-08-22 15:06:52.570458"]]
2605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2606
+  (0.1ms) SAVEPOINT active_record_1
2607
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.571541"], ["updated_at", "2016-08-22 15:06:52.571541"]]
2608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2609
+ Processing by EmployeesController#index as HTML
2610
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
2611
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
2612
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
2613
+  (0.1ms) ROLLBACK
2614
+  (0.1ms) BEGIN
2615
+ -----------------------------------------------------
2616
+ EmployeesControllerTest: test_should_destroy_employee
2617
+ -----------------------------------------------------
2618
+  (0.1ms) SAVEPOINT active_record_1
2619
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:06:52.576818"], ["updated_at", "2016-08-22 15:06:52.576818"]]
2620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2621
+  (0.1ms) SAVEPOINT active_record_1
2622
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.577940"], ["updated_at", "2016-08-22 15:06:52.577940"]]
2623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2624
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2625
+ Processing by EmployeesController#destroy as HTML
2626
+ Parameters: {"id"=>"821"}
2627
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 821]]
2628
+  (0.1ms) SAVEPOINT active_record_1
2629
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 821]]
2630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2631
+ Redirected to http://test.host/employees
2632
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
2633
+  (0.1ms) SELECT COUNT(*) FROM "employees"
2634
+  (0.1ms) ROLLBACK
2635
+  (0.1ms) BEGIN
2636
+ ----------------------------------------------------
2637
+ EmployeesControllerTest: test_should_update_employee
2638
+ ----------------------------------------------------
2639
+  (0.1ms) SAVEPOINT active_record_1
2640
+ 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-08-22 15:06:52.582873"], ["updated_at", "2016-08-22 15:06:52.582873"]]
2641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2642
+  (0.1ms) SAVEPOINT active_record_1
2643
+ 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-08-22 15:06:52.584135"], ["updated_at", "2016-08-22 15:06:52.584135"]]
2644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2645
+ Processing by EmployeesController#update as HTML
2646
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"823"}
2647
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 823]]
2648
+  (0.1ms) SAVEPOINT active_record_1
2649
+ 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-08-22 15:06:52.587370"], ["id", 823]]
2650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2651
+ Redirected to http://test.host/employees/823
2652
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
2653
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 823]]
2654
+  (0.2ms) ROLLBACK
2655
+  (0.1ms) BEGIN
2656
+ ---------------------------------------------
2657
+ EmployeesControllerTest: test_should_get_edit
2658
+ ---------------------------------------------
2659
+  (0.1ms) SAVEPOINT active_record_1
2660
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:06:52.591232"], ["updated_at", "2016-08-22 15:06:52.591232"]]
2661
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2662
+  (0.1ms) SAVEPOINT active_record_1
2663
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:06:52.592266"], ["updated_at", "2016-08-22 15:06:52.592266"]]
2664
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2665
+ Processing by EmployeesController#edit as HTML
2666
+ Parameters: {"id"=>"825"}
2667
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 825]]
2668
+ Rendered employees/_form.html.erb (1.4ms)
2669
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
2670
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)
2671
+  (0.1ms) ROLLBACK
2672
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2673
+  (0.2ms) BEGIN
2674
+ ----------------------------------------------------
2675
+ EmployeesControllerTest: test_should_create_employee
2676
+ ----------------------------------------------------
2677
+  (0.1ms) SAVEPOINT active_record_1
2678
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.547929"], ["updated_at", "2016-08-22 15:07:56.547929"]]
2679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2680
+  (0.1ms) SAVEPOINT active_record_1
2681
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.550785"], ["updated_at", "2016-08-22 15:07:56.550785"]]
2682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2683
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2684
+ Processing by EmployeesController#create as HTML
2685
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
2686
+  (0.1ms) SAVEPOINT active_record_1
2687
+ 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-08-22 15:07:56.554933"], ["updated_at", "2016-08-22 15:07:56.554933"]]
2688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2689
+ Redirected to http://test.host/employees/829
2690
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
2691
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2692
+  (0.1ms) SELECT COUNT(*) FROM "employees"
2693
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
2694
+  (0.1ms) ROLLBACK
2695
+  (0.1ms) BEGIN
2696
+ ----------------------------------------------------
2697
+ EmployeesControllerTest: test_should_update_employee
2698
+ ----------------------------------------------------
2699
+  (0.1ms) SAVEPOINT active_record_1
2700
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.560003"], ["updated_at", "2016-08-22 15:07:56.560003"]]
2701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2702
+  (0.1ms) SAVEPOINT active_record_1
2703
+ 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-08-22 15:07:56.561131"], ["updated_at", "2016-08-22 15:07:56.561131"]]
2704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2705
+ Processing by EmployeesController#update as HTML
2706
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"830"}
2707
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 830]]
2708
+  (0.1ms) SAVEPOINT active_record_1
2709
+ 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-08-22 15:07:56.566528"], ["id", 830]]
2710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2711
+ Redirected to http://test.host/employees/830
2712
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
2713
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 830]]
2714
+  (0.1ms) ROLLBACK
2715
+  (0.1ms) BEGIN
2716
+ --------------------------------------------
2717
+ EmployeesControllerTest: test_should_get_new
2718
+ --------------------------------------------
2719
+  (0.1ms) SAVEPOINT active_record_1
2720
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.570933"], ["updated_at", "2016-08-22 15:07:56.570933"]]
2721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2722
+  (0.1ms) SAVEPOINT active_record_1
2723
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.572141"], ["updated_at", "2016-08-22 15:07:56.572141"]]
2724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2725
+ Processing by EmployeesController#new as HTML
2726
+ Rendered employees/_form.html.erb (7.8ms)
2727
+ Rendered employees/new.html.erb within layouts/application (10.3ms)
2728
+ Completed 200 OK in 125ms (Views: 124.9ms | ActiveRecord: 0.0ms)
2729
+  (0.2ms) ROLLBACK
2730
+  (0.1ms) BEGIN
2731
+ --------------------------------------------------
2732
+ EmployeesControllerTest: test_should_show_employee
2733
+ --------------------------------------------------
2734
+  (0.1ms) SAVEPOINT active_record_1
2735
+ 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-08-22 15:07:56.700394"], ["updated_at", "2016-08-22 15:07:56.700394"]]
2736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2737
+  (0.1ms) SAVEPOINT active_record_1
2738
+ 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-08-22 15:07:56.701842"], ["updated_at", "2016-08-22 15:07:56.701842"]]
2739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2740
+ Processing by EmployeesController#show as HTML
2741
+ Parameters: {"id"=>"834"}
2742
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 834]]
2743
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
2744
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
2745
+  (0.1ms) ROLLBACK
2746
+  (0.1ms) BEGIN
2747
+ ----------------------------------------------
2748
+ EmployeesControllerTest: test_should_get_index
2749
+ ----------------------------------------------
2750
+  (0.1ms) SAVEPOINT active_record_1
2751
+ 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-08-22 15:07:56.707384"], ["updated_at", "2016-08-22 15:07:56.707384"]]
2752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2753
+  (0.1ms) SAVEPOINT active_record_1
2754
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.709163"], ["updated_at", "2016-08-22 15:07:56.709163"]]
2755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2756
+ Processing by EmployeesController#index as HTML
2757
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees"
2758
+ Rendered employees/index.html.erb within layouts/application (1.3ms)
2759
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
2760
+  (0.1ms) ROLLBACK
2761
+  (0.1ms) BEGIN
2762
+ --------------------------------------------------------------
2763
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
2764
+ --------------------------------------------------------------
2765
+  (0.1ms) SAVEPOINT active_record_1
2766
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.714216"], ["updated_at", "2016-08-22 15:07:56.714216"]]
2767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2768
+  (0.1ms) SAVEPOINT active_record_1
2769
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.715237"], ["updated_at", "2016-08-22 15:07:56.715237"]]
2770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2771
+ Processing by EmployeesController#edit as HTML
2772
+ Parameters: {"id"=>"838"}
2773
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 838]]
2774
+ Rendered employees/_form.html.erb (1.4ms)
2775
+ Rendered employees/edit.html.erb within layouts/application (1.9ms)
2776
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
2777
+  (0.1ms) ROLLBACK
2778
+  (0.1ms) BEGIN
2779
+ ---------------------------------------------
2780
+ EmployeesControllerTest: test_should_get_edit
2781
+ ---------------------------------------------
2782
+  (0.1ms) SAVEPOINT active_record_1
2783
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.723012"], ["updated_at", "2016-08-22 15:07:56.723012"]]
2784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2785
+  (0.1ms) SAVEPOINT active_record_1
2786
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.724181"], ["updated_at", "2016-08-22 15:07:56.724181"]]
2787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2788
+ Processing by EmployeesController#edit as HTML
2789
+ Parameters: {"id"=>"840"}
2790
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 840]]
2791
+ Rendered employees/_form.html.erb (1.3ms)
2792
+ Rendered employees/edit.html.erb within layouts/application (1.5ms)
2793
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
2794
+  (0.1ms) ROLLBACK
2795
+  (0.1ms) BEGIN
2796
+ -----------------------------------------------------
2797
+ EmployeesControllerTest: test_should_destroy_employee
2798
+ -----------------------------------------------------
2799
+  (0.1ms) SAVEPOINT active_record_1
2800
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:07:56.729552"], ["updated_at", "2016-08-22 15:07:56.729552"]]
2801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2802
+  (0.1ms) SAVEPOINT active_record_1
2803
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:07:56.730730"], ["updated_at", "2016-08-22 15:07:56.730730"]]
2804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2805
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2806
+ Processing by EmployeesController#destroy as HTML
2807
+ Parameters: {"id"=>"842"}
2808
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 842]]
2809
+  (0.2ms) SAVEPOINT active_record_1
2810
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 842]]
2811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2812
+ Redirected to http://test.host/employees
2813
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
2814
+  (0.2ms) SELECT COUNT(*) FROM "employees"
2815
+  (0.1ms) ROLLBACK
2816
+  (0.1ms) BEGIN
2817
+ ------------------------------------------
2818
+ GovUkDateFieldsTest: test_fieldset_with_id
2819
+ ------------------------------------------
2820
+  (0.1ms) ROLLBACK
2821
+  (0.1ms) BEGIN
2822
+ --------------------------------------------------------
2823
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
2824
+ --------------------------------------------------------
2825
+  (0.1ms) ROLLBACK
2826
+  (0.1ms) BEGIN
2827
+ ---------------------------------------------------------------
2828
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
2829
+ ---------------------------------------------------------------
2830
+  (0.1ms) ROLLBACK
2831
+  (0.1ms) BEGIN
2832
+ -----------------------------------------------------------
2833
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
2834
+ -----------------------------------------------------------
2835
+  (0.1ms) ROLLBACK
2836
+  (0.1ms) BEGIN
2837
+ -------------------------------------
2838
+ GovUkDateFieldsTest: test_squash_html
2839
+ -------------------------------------
2840
+  (0.1ms) ROLLBACK
2841
+  (0.1ms) BEGIN
2842
+ ---------------------------------------------------------------
2843
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
2844
+ ---------------------------------------------------------------
2845
+  (0.1ms) ROLLBACK
2846
+  (0.1ms) BEGIN
2847
+ -------------------------------------------------------
2848
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
2849
+ -------------------------------------------------------
2850
+  (0.1ms) ROLLBACK
2851
+  (0.1ms) BEGIN
2852
+ -------------------------------------------------------------
2853
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
2854
+ -------------------------------------------------------------
2855
+  (0.1ms) ROLLBACK
2856
+  (0.1ms) BEGIN
2857
+ -------------------------------------------------------------------------------
2858
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
2859
+ -------------------------------------------------------------------------------
2860
+  (0.1ms) ROLLBACK
2861
+  (0.1ms) BEGIN
2862
+ ---------------------------------------------------------------------
2863
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
2864
+ ---------------------------------------------------------------------
2865
+  (0.1ms) ROLLBACK
2866
+  (0.1ms) BEGIN
2867
+ -----------------------------------------------------------------------
2868
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
2869
+ -----------------------------------------------------------------------
2870
+  (0.1ms) ROLLBACK
2871
+  (0.1ms) BEGIN
2872
+ -----------------------------------------------------------------
2873
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
2874
+ -----------------------------------------------------------------
2875
+  (0.1ms) ROLLBACK
2876
+  (0.1ms) BEGIN
2877
+ ------------------------------------------------------------------------------------------------
2878
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
2879
+ ------------------------------------------------------------------------------------------------
2880
+  (0.1ms) SAVEPOINT active_record_1
2881
+ 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-08-22 15:07:56.767401"], ["updated_at", "2016-08-22 15:07:56.767401"]]
2882
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2883
+  (0.1ms) SAVEPOINT active_record_1
2884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2885
+  (0.1ms) ROLLBACK
2886
+  (0.1ms) BEGIN
2887
+ -----------------------------------------------------------------------
2888
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
2889
+ -----------------------------------------------------------------------
2890
+  (0.0ms) ROLLBACK
2891
+  (0.0ms) BEGIN
2892
+ -----------------------------------------------------------------------------------------------
2893
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
2894
+ -----------------------------------------------------------------------------------------------
2895
+  (0.1ms) ROLLBACK
2896
+  (0.1ms) BEGIN
2897
+ --------------------------------------------------------------------------
2898
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
2899
+ --------------------------------------------------------------------------
2900
+  (0.1ms) ROLLBACK
2901
+  (0.1ms) BEGIN
2902
+ -----------------------------------------------------------------------------------------
2903
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
2904
+ -----------------------------------------------------------------------------------------
2905
+  (0.1ms) ROLLBACK
2906
+  (0.1ms) BEGIN
2907
+ ---------------------------------------------------------------------------------
2908
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
2909
+ ---------------------------------------------------------------------------------
2910
+  (0.1ms) ROLLBACK
2911
+  (0.1ms) BEGIN
2912
+ -----------------------------------------------------------------------------------------------
2913
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
2914
+ -----------------------------------------------------------------------------------------------
2915
+  (0.1ms) ROLLBACK
2916
+  (0.1ms) BEGIN
2917
+ ------------------------------------------------------------------------------------------
2918
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
2919
+ ------------------------------------------------------------------------------------------
2920
+  (0.1ms) ROLLBACK
2921
+  (0.1ms) BEGIN
2922
+ ----------------------------------------------------------------------------------------------------------------------------------
2923
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
2924
+ ----------------------------------------------------------------------------------------------------------------------------------
2925
+  (0.1ms) ROLLBACK
2926
+  (0.1ms) BEGIN
2927
+ -------------------------------------------------------------------------------
2928
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
2929
+ -------------------------------------------------------------------------------
2930
+  (0.1ms) ROLLBACK
2931
+  (0.1ms) BEGIN
2932
+ ---------------------------------------------------------------------------------
2933
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
2934
+ ---------------------------------------------------------------------------------
2935
+  (0.1ms) ROLLBACK
2936
+  (0.1ms) BEGIN
2937
+ ----------------------------------------------------------------------------------------------
2938
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
2939
+ ----------------------------------------------------------------------------------------------
2940
+  (0.1ms) ROLLBACK
2941
+  (0.0ms) BEGIN
2942
+ -----------------------------------------------------------------------------------
2943
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
2944
+ -----------------------------------------------------------------------------------
2945
+  (0.1ms) ROLLBACK
2946
+  (0.1ms) BEGIN
2947
+ ------------------------------------------------------------------------
2948
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
2949
+ ------------------------------------------------------------------------
2950
+  (0.1ms) ROLLBACK
2951
+  (0.1ms) BEGIN
2952
+ ---------------------------------------------------------------------------------------------------------
2953
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
2954
+ ---------------------------------------------------------------------------------------------------------
2955
+  (0.1ms) ROLLBACK
2956
+  (0.1ms) BEGIN
2957
+ ---------------------------------------------------------------------
2958
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
2959
+ ---------------------------------------------------------------------
2960
+  (0.1ms) SAVEPOINT active_record_1
2961
+ 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-08-22 15:07:56.783212"], ["updated_at", "2016-08-22 15:07:56.783212"]]
2962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2963
+  (0.0ms) SAVEPOINT active_record_1
2964
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-08-22 15:07:56.784356"], ["id", 845]]
2965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2966
+  (0.1ms) ROLLBACK
2967
+  (0.1ms) BEGIN
2968
+ ----------------------------------------------
2969
+ EmployeeTest: test_valid_dates_raise_no_errors
2970
+ ----------------------------------------------
2971
+  (0.1ms) ROLLBACK
2972
+  (0.1ms) BEGIN
2973
+ -----------------------------------------------------------
2974
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
2975
+ -----------------------------------------------------------
2976
+  (0.1ms) ROLLBACK
2977
+  (0.1ms) BEGIN
2978
+ --------------------------------------------
2979
+ EmployeeTest: test_nil_dates_raise_no_errors
2980
+ --------------------------------------------
2981
+  (0.1ms) ROLLBACK
2982
+  (0.1ms) BEGIN
2983
+ ---------------------------------------------------------------------
2984
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
2985
+ ---------------------------------------------------------------------
2986
+  (0.1ms) ROLLBACK
2987
+  (0.1ms) BEGIN
2988
+ -----------------------------------------------------------------
2989
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
2990
+ -----------------------------------------------------------------
2991
+  (0.1ms) ROLLBACK
2992
+  (0.0ms) BEGIN
2993
+ ----------------------------------------------------------------------------------------------------------------
2994
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
2995
+ ----------------------------------------------------------------------------------------------------------------
2996
+  (0.1ms) ROLLBACK
2997
+  (0.1ms) BEGIN
2998
+ --------------------------------------------------------------------------
2999
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
3000
+ --------------------------------------------------------------------------
3001
+  (0.1ms) ROLLBACK
3002
+  (0.1ms) BEGIN
3003
+ ------------------------------------------------------------------------------------------
3004
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
3005
+ ------------------------------------------------------------------------------------------
3006
+  (0.1ms) ROLLBACK
3007
+  (0.1ms) BEGIN
3008
+ -------------------------------------------------------------------------------------------------------------------
3009
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
3010
+ -------------------------------------------------------------------------------------------------------------------
3011
+  (0.1ms) ROLLBACK
3012
+  (0.1ms) BEGIN
3013
+ -----------------------------------------------------------------------
3014
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
3015
+ -----------------------------------------------------------------------
3016
+  (0.1ms) ROLLBACK
3017
+  (0.1ms) BEGIN
3018
+ -------------------------------------------------------------------------
3019
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
3020
+ -------------------------------------------------------------------------
3021
+  (0.1ms) SAVEPOINT active_record_1
3022
+ 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-08-22 15:07:56.792523"], ["updated_at", "2016-08-22 15:07:56.792523"]]
3023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3024
+  (0.1ms) SAVEPOINT active_record_1
3025
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3026
+  (0.1ms) ROLLBACK
3027
+  (0.1ms) BEGIN
3028
+ -----------------------------------------------------------
3029
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
3030
+ -----------------------------------------------------------
3031
+  (0.1ms) ROLLBACK
3032
+  (0.1ms) BEGIN
3033
+ -------------------------------------------
3034
+ EmployeeTest: test_invalid_day_raises_error
3035
+ -------------------------------------------
3036
+  (0.1ms) ROLLBACK
3037
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
3038
+  (0.2ms) BEGIN
3039
+ -----------------------------------------------------------------
3040
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
3041
+ -----------------------------------------------------------------
3042
+  (0.1ms) ROLLBACK
3043
+  (0.1ms) BEGIN
3044
+ --------------------------------------------------------------------------
3045
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
3046
+ --------------------------------------------------------------------------
3047
+  (0.1ms) ROLLBACK
3048
+  (0.1ms) BEGIN
3049
+ ---------------------------------------------------------------------
3050
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
3051
+ ---------------------------------------------------------------------
3052
+  (0.1ms) ROLLBACK
3053
+  (0.1ms) BEGIN
3054
+ -----------------------------------------------------------------------
3055
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
3056
+ -----------------------------------------------------------------------
3057
+  (0.1ms) ROLLBACK
3058
+  (0.1ms) BEGIN
3059
+ -----------------------------------------------------------------------
3060
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
3061
+ -----------------------------------------------------------------------
3062
+  (0.1ms) ROLLBACK
3063
+  (0.1ms) BEGIN
3064
+ ------------------------------------------------------------------------------------------------
3065
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
3066
+ ------------------------------------------------------------------------------------------------
3067
+  (0.1ms) SAVEPOINT active_record_1
3068
+ SQL (0.3ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-08-22 15:09:09.103487"], ["updated_at", "2016-08-22 15:09:09.103487"]]
3069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3070
+  (0.1ms) SAVEPOINT active_record_1
3071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3072
+  (0.1ms) ROLLBACK
3073
+  (0.1ms) BEGIN
3074
+ -----------------------------------------------------------------------------------------------
3075
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
3076
+ -----------------------------------------------------------------------------------------------
3077
+  (0.1ms) ROLLBACK
3078
+  (0.1ms) BEGIN
3079
+ -----------------------------------------------------
3080
+ EmployeesControllerTest: test_should_destroy_employee
3081
+ -----------------------------------------------------
3082
+  (0.1ms) SAVEPOINT active_record_1
3083
+ 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-08-22 15:09:09.133717"], ["updated_at", "2016-08-22 15:09:09.133717"]]
3084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3085
+  (0.1ms) SAVEPOINT active_record_1
3086
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.135100"], ["updated_at", "2016-08-22 15:09:09.135100"]]
3087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.2ms) SELECT COUNT(*) FROM "employees"
3089
+ Processing by EmployeesController#destroy as HTML
3090
+ Parameters: {"id"=>"848"}
3091
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 848]]
3092
+  (0.1ms) SAVEPOINT active_record_1
3093
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 848]]
3094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3095
+ Redirected to http://test.host/employees
3096
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
3097
+  (0.1ms) SELECT COUNT(*) FROM "employees"
3098
+  (0.1ms) ROLLBACK
3099
+  (0.1ms) BEGIN
3100
+ ----------------------------------------------
3101
+ EmployeesControllerTest: test_should_get_index
3102
+ ----------------------------------------------
3103
+  (0.1ms) SAVEPOINT active_record_1
3104
+ 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-08-22 15:09:09.144710"], ["updated_at", "2016-08-22 15:09:09.144710"]]
3105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3106
+  (0.1ms) SAVEPOINT active_record_1
3107
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.145953"], ["updated_at", "2016-08-22 15:09:09.145953"]]
3108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3109
+ Processing by EmployeesController#index as HTML
3110
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
3111
+ Rendered employees/index.html.erb within layouts/application (2.5ms)
3112
+ Completed 200 OK in 120ms (Views: 119.4ms | ActiveRecord: 0.2ms)
3113
+  (0.2ms) ROLLBACK
3114
+  (0.1ms) BEGIN
3115
+ --------------------------------------------------------------
3116
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
3117
+ --------------------------------------------------------------
3118
+  (0.1ms) SAVEPOINT active_record_1
3119
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:09:09.268874"], ["updated_at", "2016-08-22 15:09:09.268874"]]
3120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3121
+  (0.1ms) SAVEPOINT active_record_1
3122
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.270278"], ["updated_at", "2016-08-22 15:09:09.270278"]]
3123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3124
+ Processing by EmployeesController#edit as HTML
3125
+ Parameters: {"id"=>"852"}
3126
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 852]]
3127
+ Rendered employees/_form.html.erb (8.3ms)
3128
+ Rendered employees/edit.html.erb within layouts/application (10.6ms)
3129
+ Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.1ms)
3130
+  (0.2ms) ROLLBACK
3131
+  (0.1ms) BEGIN
3132
+ --------------------------------------------
3133
+ EmployeesControllerTest: test_should_get_new
3134
+ --------------------------------------------
3135
+  (0.1ms) SAVEPOINT active_record_1
3136
+ 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-08-22 15:09:09.288648"], ["updated_at", "2016-08-22 15:09:09.288648"]]
3137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3138
+  (0.1ms) SAVEPOINT active_record_1
3139
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.290108"], ["updated_at", "2016-08-22 15:09:09.290108"]]
3140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3141
+ Processing by EmployeesController#new as HTML
3142
+ Rendered employees/_form.html.erb (1.4ms)
3143
+ Rendered employees/new.html.erb within layouts/application (1.8ms)
3144
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
3145
+  (0.1ms) ROLLBACK
3146
+  (0.1ms) BEGIN
3147
+ ----------------------------------------------------
3148
+ EmployeesControllerTest: test_should_create_employee
3149
+ ----------------------------------------------------
3150
+  (0.1ms) SAVEPOINT active_record_1
3151
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:09:09.295869"], ["updated_at", "2016-08-22 15:09:09.295869"]]
3152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3153
+  (0.1ms) SAVEPOINT active_record_1
3154
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.296989"], ["updated_at", "2016-08-22 15:09:09.296989"]]
3155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3156
+  (0.2ms) SELECT COUNT(*) FROM "employees"
3157
+ Processing by EmployeesController#create as HTML
3158
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
3159
+  (0.1ms) SAVEPOINT active_record_1
3160
+ 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-08-22 15:09:09.299741"], ["updated_at", "2016-08-22 15:09:09.299741"]]
3161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3162
+ Redirected to http://test.host/employees/858
3163
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
3164
+  (0.1ms) SELECT COUNT(*) FROM "employees"
3165
+  (0.1ms) SELECT COUNT(*) FROM "employees"
3166
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
3167
+  (0.1ms) ROLLBACK
3168
+  (0.1ms) BEGIN
3169
+ ----------------------------------------------------
3170
+ EmployeesControllerTest: test_should_update_employee
3171
+ ----------------------------------------------------
3172
+  (0.1ms) SAVEPOINT active_record_1
3173
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:09:09.303529"], ["updated_at", "2016-08-22 15:09:09.303529"]]
3174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3175
+  (0.1ms) SAVEPOINT active_record_1
3176
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.304638"], ["updated_at", "2016-08-22 15:09:09.304638"]]
3177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3178
+ Processing by EmployeesController#update as HTML
3179
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"859"}
3180
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 859]]
3181
+  (0.1ms) SAVEPOINT active_record_1
3182
+ 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-08-22 15:09:09.307379"], ["id", 859]]
3183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3184
+ Redirected to http://test.host/employees/859
3185
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
3186
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 859]]
3187
+  (0.1ms) ROLLBACK
3188
+  (0.1ms) BEGIN
3189
+ --------------------------------------------------
3190
+ EmployeesControllerTest: test_should_show_employee
3191
+ --------------------------------------------------
3192
+  (0.1ms) SAVEPOINT active_record_1
3193
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:09:09.310976"], ["updated_at", "2016-08-22 15:09:09.310976"]]
3194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3195
+  (0.1ms) SAVEPOINT active_record_1
3196
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.312165"], ["updated_at", "2016-08-22 15:09:09.312165"]]
3197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3198
+ Processing by EmployeesController#show as HTML
3199
+ Parameters: {"id"=>"861"}
3200
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 861]]
3201
+ Rendered employees/show.html.erb within layouts/application (0.6ms)
3202
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
3203
+  (0.1ms) ROLLBACK
3204
+  (0.1ms) BEGIN
3205
+ ---------------------------------------------
3206
+ EmployeesControllerTest: test_should_get_edit
3207
+ ---------------------------------------------
3208
+  (0.1ms) SAVEPOINT active_record_1
3209
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-08-22 15:09:09.317915"], ["updated_at", "2016-08-22 15:09:09.317915"]]
3210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3211
+  (0.1ms) SAVEPOINT active_record_1
3212
+ SQL (0.1ms) INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-08-22 15:09:09.319912"], ["updated_at", "2016-08-22 15:09:09.319912"]]
3213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3214
+ Processing by EmployeesController#edit as HTML
3215
+ Parameters: {"id"=>"863"}
3216
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 863]]
3217
+ Rendered employees/_form.html.erb (1.5ms)
3218
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
3219
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
3220
+  (0.1ms) ROLLBACK
3221
+  (0.1ms) BEGIN
3222
+ -----------------------------------------------------------------------------------------------
3223
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
3224
+ -----------------------------------------------------------------------------------------------
3225
+  (0.1ms) ROLLBACK
3226
+  (0.1ms) BEGIN
3227
+ ------------------------------------------------------------------------------------------
3228
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
3229
+ ------------------------------------------------------------------------------------------
3230
+  (0.1ms) ROLLBACK
3231
+  (0.1ms) BEGIN
3232
+ ---------------------------------------------------------------------------------
3233
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
3234
+ ---------------------------------------------------------------------------------
3235
+  (0.1ms) ROLLBACK
3236
+  (0.0ms) BEGIN
3237
+ -----------------------------------------------------------------------------------------
3238
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
3239
+ -----------------------------------------------------------------------------------------
3240
+  (0.1ms) ROLLBACK
3241
+  (0.1ms) BEGIN
3242
+ ----------------------------------------------------------------------------------------------------------------------------------
3243
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
3244
+ ----------------------------------------------------------------------------------------------------------------------------------
3245
+  (0.1ms) ROLLBACK
3246
+  (0.1ms) BEGIN
3247
+ -------------------------------------------------------------------------------
3248
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
3249
+ -------------------------------------------------------------------------------
3250
+  (0.1ms) ROLLBACK
3251
+  (0.1ms) BEGIN
3252
+ ---------------------------------------------------------------------------------
3253
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
3254
+ ---------------------------------------------------------------------------------
3255
+  (0.1ms) ROLLBACK
3256
+  (0.1ms) BEGIN
3257
+ ----------------------------------------------------------------------------------------------------------------
3258
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
3259
+ ----------------------------------------------------------------------------------------------------------------
3260
+  (0.1ms) ROLLBACK
3261
+  (0.1ms) BEGIN
3262
+ ---------------------------------------------------------------------------------------------------------
3263
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
3264
+ ---------------------------------------------------------------------------------------------------------
3265
+  (0.1ms) ROLLBACK
3266
+  (0.1ms) BEGIN
3267
+ ---------------------------------------------------------------------
3268
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
3269
+ ---------------------------------------------------------------------
3270
+  (0.1ms) SAVEPOINT active_record_1
3271
+ 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-08-22 15:09:09.332578"], ["updated_at", "2016-08-22 15:09:09.332578"]]
3272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3273
+  (0.1ms) SAVEPOINT active_record_1
3274
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-08-22 15:09:09.333869"], ["id", 865]]
3275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3276
+  (0.1ms) ROLLBACK
3277
+  (0.1ms) BEGIN
3278
+ ------------------------------------------------------------------------------------------
3279
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
3280
+ ------------------------------------------------------------------------------------------
3281
+  (0.1ms) ROLLBACK
3282
+  (0.1ms) BEGIN
3283
+ --------------------------------------------------------------------------
3284
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
3285
+ --------------------------------------------------------------------------
3286
+  (0.1ms) ROLLBACK
3287
+  (0.1ms) BEGIN
3288
+ ------------------------------------------------------------------------
3289
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
3290
+ ------------------------------------------------------------------------
3291
+  (0.1ms) ROLLBACK
3292
+  (0.1ms) BEGIN
3293
+ -------------------------------------------------------------------------------------------------------------------
3294
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
3295
+ -------------------------------------------------------------------------------------------------------------------
3296
+  (0.1ms) ROLLBACK
3297
+  (0.0ms) BEGIN
3298
+ -----------------------------------------------------------
3299
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
3300
+ -----------------------------------------------------------
3301
+  (0.1ms) ROLLBACK
3302
+  (0.1ms) BEGIN
3303
+ --------------------------------------------
3304
+ EmployeeTest: test_nil_dates_raise_no_errors
3305
+ --------------------------------------------
3306
+  (0.1ms) ROLLBACK
3307
+  (0.1ms) BEGIN
3308
+ -------------------------------------------------------------------------
3309
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
3310
+ -------------------------------------------------------------------------
3311
+  (0.1ms) SAVEPOINT active_record_1
3312
+ 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-08-22 15:09:09.339248"], ["updated_at", "2016-08-22 15:09:09.339248"]]
3313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3314
+  (0.1ms) SAVEPOINT active_record_1
3315
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3316
+  (0.1ms) ROLLBACK
3317
+  (0.0ms) BEGIN
3318
+ -----------------------------------------------------------------------------------
3319
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
3320
+ -----------------------------------------------------------------------------------
3321
+  (0.1ms) ROLLBACK
3322
+  (0.1ms) BEGIN
3323
+ ---------------------------------------------------------------------
3324
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
3325
+ ---------------------------------------------------------------------
3326
+  (0.1ms) ROLLBACK
3327
+  (0.1ms) BEGIN
3328
+ -------------------------------------------
3329
+ EmployeeTest: test_invalid_day_raises_error
3330
+ -------------------------------------------
3331
+  (0.1ms) ROLLBACK
3332
+  (0.1ms) BEGIN
3333
+ -----------------------------------------------------------
3334
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
3335
+ -----------------------------------------------------------
3336
+  (0.1ms) ROLLBACK
3337
+  (0.1ms) BEGIN
3338
+ -----------------------------------------------------------------------
3339
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
3340
+ -----------------------------------------------------------------------
3341
+  (0.1ms) ROLLBACK
3342
+  (0.1ms) BEGIN
3343
+ ----------------------------------------------------------------------------------------------
3344
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
3345
+ ----------------------------------------------------------------------------------------------
3346
+  (0.1ms) ROLLBACK
3347
+  (0.0ms) BEGIN
3348
+ -----------------------------------------------------------------
3349
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
3350
+ -----------------------------------------------------------------
3351
+  (0.1ms) ROLLBACK
3352
+  (0.1ms) BEGIN
3353
+ ----------------------------------------------
3354
+ EmployeeTest: test_valid_dates_raise_no_errors
3355
+ ----------------------------------------------
3356
+  (0.1ms) ROLLBACK
3357
+  (0.1ms) BEGIN
3358
+ -------------------------------------
3359
+ GovUkDateFieldsTest: test_squash_html
3360
+ -------------------------------------
3361
+  (0.1ms) ROLLBACK
3362
+  (0.0ms) BEGIN
3363
+ ---------------------------------------------------------------
3364
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
3365
+ ---------------------------------------------------------------
3366
+  (0.1ms) ROLLBACK
3367
+  (0.1ms) BEGIN
3368
+ --------------------------------------------------------
3369
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
3370
+ --------------------------------------------------------
3371
+  (0.1ms) ROLLBACK
3372
+  (0.0ms) BEGIN
3373
+ -------------------------------------------------------
3374
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
3375
+ -------------------------------------------------------
3376
+  (0.0ms) ROLLBACK
3377
+  (0.0ms) BEGIN
3378
+ ---------------------------------------------------------------
3379
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
3380
+ ---------------------------------------------------------------
3381
+  (0.0ms) ROLLBACK
3382
+  (0.0ms) BEGIN
3383
+ ------------------------------------------
3384
+ GovUkDateFieldsTest: test_fieldset_with_id
3385
+ ------------------------------------------
3386
+  (0.0ms) ROLLBACK
3387
+  (0.1ms) BEGIN
3388
+ -------------------------------------------------------------
3389
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
3390
+ -------------------------------------------------------------
3391
+  (0.1ms) ROLLBACK
3392
+  (0.1ms) BEGIN
3393
+ -----------------------------------------------------------
3394
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
3395
+ -----------------------------------------------------------
3396
+  (0.1ms) ROLLBACK
3397
+  (0.0ms) BEGIN
3398
+ -------------------------------------------------------------------------------
3399
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
3400
+ -------------------------------------------------------------------------------
3401
+  (0.1ms) ROLLBACK