gov_uk_date_fields 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gov_uk_date_fields/form_fields.rb +3 -1
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/log/test.log +1461 -0
- data/test/form_fields_test.rb +4 -4
- metadata +2 -2
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1941
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1942
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1943
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1948
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1949
|
+
-----------------------------------------------------------------------
|
1950
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
1951
|
+
-----------------------------------------------------------------------
|
1952
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1953
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1954
|
+
-----------------------------------------------------------------
|
1955
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
1956
|
+
-----------------------------------------------------------------
|
1957
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1958
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1964
|
+
---------------------------------------------------------------------
|
1965
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
1966
|
+
---------------------------------------------------------------------
|
1967
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
1968
|
+
[1m[35mSQL (4.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1970
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1971
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-08-22 15:03:04.877371"], ["id", 787]]
|
1972
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1973
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1974
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1975
|
+
-----------------------------------------------------------------------------------
|
1976
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
1977
|
+
-----------------------------------------------------------------------------------
|
1978
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1979
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1980
|
+
-------------------------------------------
|
1981
|
+
EmployeeTest: test_invalid_day_raises_error
|
1982
|
+
-------------------------------------------
|
1983
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1984
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1985
|
+
-----------------------------------------------------------
|
1986
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
1987
|
+
-----------------------------------------------------------
|
1988
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1989
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1990
|
+
--------------------------------------------------------------------------
|
1991
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
1992
|
+
--------------------------------------------------------------------------
|
1993
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1994
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1995
|
+
-------------------------------------------------------------------------
|
1996
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
1997
|
+
-------------------------------------------------------------------------
|
1998
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1999
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2001
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2002
|
+
[1m[36m (0.9ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2003
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2004
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2005
|
+
---------------------------------------------------------------------------------------------------------
|
2006
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
2007
|
+
---------------------------------------------------------------------------------------------------------
|
2008
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2009
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2010
|
+
------------------------------------------------------------------------
|
2011
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
2012
|
+
------------------------------------------------------------------------
|
2013
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2014
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2015
|
+
------------------------------------------------------------------------------------------
|
2016
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
2017
|
+
------------------------------------------------------------------------------------------
|
2018
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2019
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2020
|
+
---------------------------------------------------------------------
|
2021
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
2022
|
+
---------------------------------------------------------------------
|
2023
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2024
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2025
|
+
----------------------------------------------------------------------------------------------
|
2026
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
2027
|
+
----------------------------------------------------------------------------------------------
|
2028
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2029
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2030
|
+
-----------------------------------------------------------
|
2031
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
2032
|
+
-----------------------------------------------------------
|
2033
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2034
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2035
|
+
--------------------------------------------
|
2036
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
2037
|
+
--------------------------------------------
|
2038
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2039
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2040
|
+
----------------------------------------------
|
2041
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
2042
|
+
----------------------------------------------
|
2043
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2044
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2045
|
+
-----------------------------------------------------------------------
|
2046
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
2047
|
+
-----------------------------------------------------------------------
|
2048
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2049
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2050
|
+
-----------------------------------------------------------------
|
2051
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
2052
|
+
-----------------------------------------------------------------
|
2053
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2054
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2055
|
+
---------------------------------------------------------------------
|
2056
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
2057
|
+
---------------------------------------------------------------------
|
2058
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2059
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2060
|
+
-----------------------------------------------------------------------
|
2061
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
2062
|
+
-----------------------------------------------------------------------
|
2063
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2064
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2065
|
+
--------------------------------------------------------------------------
|
2066
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
2067
|
+
--------------------------------------------------------------------------
|
2068
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2069
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2070
|
+
-----------------------------------------------------------------------------------------------
|
2071
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
2072
|
+
-----------------------------------------------------------------------------------------------
|
2073
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2074
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2075
|
+
------------------------------------------------------------------------------------------------
|
2076
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
2077
|
+
------------------------------------------------------------------------------------------------
|
2078
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2079
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2081
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2082
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2083
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2084
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2085
|
+
-----------------------------------------------------------
|
2086
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
2087
|
+
-----------------------------------------------------------
|
2088
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2089
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2090
|
+
-------------------------------------------------------------------------------
|
2091
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
2092
|
+
-------------------------------------------------------------------------------
|
2093
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2094
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2095
|
+
-------------------------------------
|
2096
|
+
GovUkDateFieldsTest: test_squash_html
|
2097
|
+
-------------------------------------
|
2098
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2099
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2100
|
+
------------------------------------------
|
2101
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
2102
|
+
------------------------------------------
|
2103
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2104
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2105
|
+
---------------------------------------------------------------
|
2106
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
2107
|
+
---------------------------------------------------------------
|
2108
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2109
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2110
|
+
-------------------------------------------------------------
|
2111
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
2112
|
+
-------------------------------------------------------------
|
2113
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2114
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2115
|
+
--------------------------------------------------------
|
2116
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
2117
|
+
--------------------------------------------------------
|
2118
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2119
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2120
|
+
---------------------------------------------------------------
|
2121
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
2122
|
+
---------------------------------------------------------------
|
2123
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2124
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2125
|
+
-------------------------------------------------------
|
2126
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
2127
|
+
-------------------------------------------------------
|
2128
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2129
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2130
|
+
--------------------------------------------------------------
|
2131
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
2132
|
+
--------------------------------------------------------------
|
2133
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2134
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2136
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2137
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2139
|
+
Processing by EmployeesController#edit as HTML
|
2140
|
+
Parameters: {"id"=>"790"}
|
2141
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2146
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2147
|
+
-----------------------------------------------------
|
2148
|
+
EmployeesControllerTest: test_should_destroy_employee
|
2149
|
+
-----------------------------------------------------
|
2150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2151
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2156
|
+
[1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "employees"
|
2157
|
+
Processing by EmployeesController#destroy as HTML
|
2158
|
+
Parameters: {"id"=>"792"}
|
2159
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 792]]
|
2160
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2161
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 792]]
|
2162
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2163
|
+
Redirected to http://test.host/employees
|
2164
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.8ms)
|
2165
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2166
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2167
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2168
|
+
----------------------------------------------------
|
2169
|
+
EmployeesControllerTest: test_should_update_employee
|
2170
|
+
----------------------------------------------------
|
2171
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2172
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2174
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2175
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 794]]
|
2180
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2181
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2183
|
+
Redirected to http://test.host/employees/794
|
2184
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
2185
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 794]]
|
2186
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2187
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2188
|
+
--------------------------------------------
|
2189
|
+
EmployeesControllerTest: test_should_get_new
|
2190
|
+
--------------------------------------------
|
2191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2192
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2194
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2195
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2202
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2203
|
+
----------------------------------------------------
|
2204
|
+
EmployeesControllerTest: test_should_create_employee
|
2205
|
+
----------------------------------------------------
|
2206
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2207
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2209
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2210
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2212
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2216
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2218
|
+
Redirected to http://test.host/employees/800
|
2219
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
2220
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2221
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
2222
|
+
[1m[36mEmployee Load (1.0ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
2223
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2224
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2225
|
+
---------------------------------------------
|
2226
|
+
EmployeesControllerTest: test_should_get_edit
|
2227
|
+
---------------------------------------------
|
2228
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2229
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2231
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2232
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2234
|
+
Processing by EmployeesController#edit as HTML
|
2235
|
+
Parameters: {"id"=>"801"}
|
2236
|
+
[1m[35mEmployee Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2242
|
+
--------------------------------------------------
|
2243
|
+
EmployeesControllerTest: test_should_show_employee
|
2244
|
+
--------------------------------------------------
|
2245
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2246
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2248
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2249
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2251
|
+
Processing by EmployeesController#show as HTML
|
2252
|
+
Parameters: {"id"=>"803"}
|
2253
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2257
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2258
|
+
----------------------------------------------
|
2259
|
+
EmployeesControllerTest: test_should_get_index
|
2260
|
+
----------------------------------------------
|
2261
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2262
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2265
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2267
|
+
Processing by EmployeesController#index as HTML
|
2268
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2272
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2273
|
+
-------------------------------------------------------------------------------
|
2274
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
2275
|
+
-------------------------------------------------------------------------------
|
2276
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2277
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2278
|
+
------------------------------------------------------------------------------------------
|
2279
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
2280
|
+
------------------------------------------------------------------------------------------
|
2281
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2282
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2283
|
+
---------------------------------------------------------------------------------
|
2284
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
2285
|
+
---------------------------------------------------------------------------------
|
2286
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2287
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2288
|
+
-----------------------------------------------------------------------------------------------
|
2289
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
2290
|
+
-----------------------------------------------------------------------------------------------
|
2291
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2292
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2293
|
+
---------------------------------------------------------------------------------
|
2294
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
2295
|
+
---------------------------------------------------------------------------------
|
2296
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2297
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2298
|
+
-----------------------------------------------------------------------------------------
|
2299
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
2300
|
+
-----------------------------------------------------------------------------------------
|
2301
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2302
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2303
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2304
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
2305
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2306
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2307
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2308
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2309
|
+
------------------------------------------------------------------------------------------
|
2310
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
2311
|
+
------------------------------------------------------------------------------------------
|
2312
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2313
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2314
|
+
-----------------------------------------------------------------------------------------------
|
2315
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
2316
|
+
-----------------------------------------------------------------------------------------------
|
2317
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2318
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2319
|
+
---------------------------------------------------------------------------------
|
2320
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
2321
|
+
---------------------------------------------------------------------------------
|
2322
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2323
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2324
|
+
-------------------------------------------------------------------------------
|
2325
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
2326
|
+
-------------------------------------------------------------------------------
|
2327
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2328
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2329
|
+
-----------------------------------------------------------------------------------------
|
2330
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
2331
|
+
-----------------------------------------------------------------------------------------
|
2332
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2333
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2334
|
+
---------------------------------------------------------------------------------
|
2335
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
2336
|
+
---------------------------------------------------------------------------------
|
2337
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2338
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2339
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2340
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
2341
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2342
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2344
|
+
--------------------------------------------
|
2345
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
2346
|
+
--------------------------------------------
|
2347
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2348
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2349
|
+
-----------------------------------------------------------------------------------
|
2350
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
2351
|
+
-----------------------------------------------------------------------------------
|
2352
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2353
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2358
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2359
|
+
----------------------------------------------
|
2360
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
2361
|
+
----------------------------------------------
|
2362
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2363
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2364
|
+
---------------------------------------------------------------------------------------------------------
|
2365
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
2366
|
+
---------------------------------------------------------------------------------------------------------
|
2367
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2368
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2369
|
+
-----------------------------------------------------------------------
|
2370
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
2371
|
+
-----------------------------------------------------------------------
|
2372
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2373
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2374
|
+
-----------------------------------------------------------
|
2375
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
2376
|
+
-----------------------------------------------------------
|
2377
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2378
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2379
|
+
--------------------------------------------------------------------------
|
2380
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
2381
|
+
--------------------------------------------------------------------------
|
2382
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2383
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2384
|
+
----------------------------------------------------------------------------------------------
|
2385
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
2386
|
+
----------------------------------------------------------------------------------------------
|
2387
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2388
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2393
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2394
|
+
-----------------------------------------------------------------
|
2395
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
2396
|
+
-----------------------------------------------------------------
|
2397
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2398
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2399
|
+
------------------------------------------------------------------------------------------
|
2400
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
2401
|
+
------------------------------------------------------------------------------------------
|
2402
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2403
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2404
|
+
---------------------------------------------------------------------
|
2405
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
2406
|
+
---------------------------------------------------------------------
|
2407
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2408
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2409
|
+
-----------------------------------------------------------
|
2410
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
2411
|
+
-----------------------------------------------------------
|
2412
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
2413
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2414
|
+
-------------------------------------------
|
2415
|
+
EmployeeTest: test_invalid_day_raises_error
|
2416
|
+
-------------------------------------------
|
2417
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2418
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2419
|
+
-------------------------------------------------------------------------
|
2420
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
2421
|
+
-------------------------------------------------------------------------
|
2422
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2423
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2425
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2426
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2427
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2428
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2429
|
+
------------------------------------------------------------------------
|
2430
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
2431
|
+
------------------------------------------------------------------------
|
2432
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2433
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2434
|
+
---------------------------------------------------------------------
|
2435
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
2436
|
+
---------------------------------------------------------------------
|
2437
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2438
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2440
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2441
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2443
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2444
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2445
|
+
---------------------------------------------------------------------
|
2446
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
2447
|
+
---------------------------------------------------------------------
|
2448
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2449
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
2450
|
+
------------------------------------------------------------------------------------------------
|
2451
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
2452
|
+
------------------------------------------------------------------------------------------------
|
2453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2454
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2456
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2457
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2458
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2459
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2460
|
+
-----------------------------------------------------------------------
|
2461
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
2462
|
+
-----------------------------------------------------------------------
|
2463
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2464
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2465
|
+
-----------------------------------------------------------------
|
2466
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
2467
|
+
-----------------------------------------------------------------
|
2468
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2469
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2470
|
+
-----------------------------------------------------------------------------------------------
|
2471
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
2472
|
+
-----------------------------------------------------------------------------------------------
|
2473
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2474
|
+
[1m[35m (0.0ms)[0m BEGIN
|
2475
|
+
-----------------------------------------------------------------------
|
2476
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
2477
|
+
-----------------------------------------------------------------------
|
2478
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2479
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2480
|
+
--------------------------------------------------------------------------
|
2481
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
2482
|
+
--------------------------------------------------------------------------
|
2483
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2484
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2485
|
+
-------------------------------------------------------
|
2486
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
2487
|
+
-------------------------------------------------------
|
2488
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2490
|
+
---------------------------------------------------------------
|
2491
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
2492
|
+
---------------------------------------------------------------
|
2493
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2494
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2495
|
+
-------------------------------------------------------------
|
2496
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
2497
|
+
-------------------------------------------------------------
|
2498
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2500
|
+
------------------------------------------
|
2501
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
2502
|
+
------------------------------------------
|
2503
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2504
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2505
|
+
-------------------------------------------------------------------------------
|
2506
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
2507
|
+
-------------------------------------------------------------------------------
|
2508
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2509
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2510
|
+
-------------------------------------
|
2511
|
+
GovUkDateFieldsTest: test_squash_html
|
2512
|
+
-------------------------------------
|
2513
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2514
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2515
|
+
---------------------------------------------------------------
|
2516
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
2517
|
+
---------------------------------------------------------------
|
2518
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2519
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2520
|
+
--------------------------------------------------------
|
2521
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
2522
|
+
--------------------------------------------------------
|
2523
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2524
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2525
|
+
-----------------------------------------------------------
|
2526
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
2527
|
+
-----------------------------------------------------------
|
2528
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2529
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2530
|
+
----------------------------------------------------
|
2531
|
+
EmployeesControllerTest: test_should_create_employee
|
2532
|
+
----------------------------------------------------
|
2533
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2534
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2536
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2537
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2539
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2543
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2545
|
+
Redirected to http://test.host/employees/812
|
2546
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
2547
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2548
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
2549
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
2550
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2551
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2552
|
+
--------------------------------------------------
|
2553
|
+
EmployeesControllerTest: test_should_show_employee
|
2554
|
+
--------------------------------------------------
|
2555
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2556
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2558
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2559
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2561
|
+
Processing by EmployeesController#show as HTML
|
2562
|
+
Parameters: {"id"=>"813"}
|
2563
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2567
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2568
|
+
--------------------------------------------------------------
|
2569
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
2570
|
+
--------------------------------------------------------------
|
2571
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2572
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2574
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2575
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2577
|
+
Processing by EmployeesController#edit as HTML
|
2578
|
+
Parameters: {"id"=>"815"}
|
2579
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2584
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2585
|
+
--------------------------------------------
|
2586
|
+
EmployeesControllerTest: test_should_get_new
|
2587
|
+
--------------------------------------------
|
2588
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2589
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2592
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2599
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2600
|
+
----------------------------------------------
|
2601
|
+
EmployeesControllerTest: test_should_get_index
|
2602
|
+
----------------------------------------------
|
2603
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2604
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2606
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2607
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2609
|
+
Processing by EmployeesController#index as HTML
|
2610
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2614
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2615
|
+
-----------------------------------------------------
|
2616
|
+
EmployeesControllerTest: test_should_destroy_employee
|
2617
|
+
-----------------------------------------------------
|
2618
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2619
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2622
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2624
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2625
|
+
Processing by EmployeesController#destroy as HTML
|
2626
|
+
Parameters: {"id"=>"821"}
|
2627
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 821]]
|
2628
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2629
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 821]]
|
2630
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2631
|
+
Redirected to http://test.host/employees
|
2632
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
2633
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
2634
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2635
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2636
|
+
----------------------------------------------------
|
2637
|
+
EmployeesControllerTest: test_should_update_employee
|
2638
|
+
----------------------------------------------------
|
2639
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2640
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2642
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2643
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 823]]
|
2648
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2649
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-08-22 15:06:52.587370"], ["id", 823]]
|
2650
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2651
|
+
Redirected to http://test.host/employees/823
|
2652
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
2653
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 823]]
|
2654
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2655
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2656
|
+
---------------------------------------------
|
2657
|
+
EmployeesControllerTest: test_should_get_edit
|
2658
|
+
---------------------------------------------
|
2659
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2660
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2662
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2663
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2665
|
+
Processing by EmployeesController#edit as HTML
|
2666
|
+
Parameters: {"id"=>"825"}
|
2667
|
+
[1m[35mEmployee Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2672
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2673
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2674
|
+
----------------------------------------------------
|
2675
|
+
EmployeesControllerTest: test_should_create_employee
|
2676
|
+
----------------------------------------------------
|
2677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2678
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2680
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2681
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2683
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
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
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2689
|
+
Redirected to http://test.host/employees/829
|
2690
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
2691
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2692
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
2693
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
2694
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2695
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2696
|
+
----------------------------------------------------
|
2697
|
+
EmployeesControllerTest: test_should_update_employee
|
2698
|
+
----------------------------------------------------
|
2699
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2700
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2702
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2703
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 830]]
|
2708
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2709
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2711
|
+
Redirected to http://test.host/employees/830
|
2712
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
2713
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 830]]
|
2714
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2715
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2716
|
+
--------------------------------------------
|
2717
|
+
EmployeesControllerTest: test_should_get_new
|
2718
|
+
--------------------------------------------
|
2719
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2720
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2722
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2723
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2730
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2731
|
+
--------------------------------------------------
|
2732
|
+
EmployeesControllerTest: test_should_show_employee
|
2733
|
+
--------------------------------------------------
|
2734
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2735
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2737
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2738
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2740
|
+
Processing by EmployeesController#show as HTML
|
2741
|
+
Parameters: {"id"=>"834"}
|
2742
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2746
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2747
|
+
----------------------------------------------
|
2748
|
+
EmployeesControllerTest: test_should_get_index
|
2749
|
+
----------------------------------------------
|
2750
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2751
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2753
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2754
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2756
|
+
Processing by EmployeesController#index as HTML
|
2757
|
+
[1m[35mEmployee Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2761
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2762
|
+
--------------------------------------------------------------
|
2763
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
2764
|
+
--------------------------------------------------------------
|
2765
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2766
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2768
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2769
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2771
|
+
Processing by EmployeesController#edit as HTML
|
2772
|
+
Parameters: {"id"=>"838"}
|
2773
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2778
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2779
|
+
---------------------------------------------
|
2780
|
+
EmployeesControllerTest: test_should_get_edit
|
2781
|
+
---------------------------------------------
|
2782
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2783
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2785
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2786
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2788
|
+
Processing by EmployeesController#edit as HTML
|
2789
|
+
Parameters: {"id"=>"840"}
|
2790
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2795
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2796
|
+
-----------------------------------------------------
|
2797
|
+
EmployeesControllerTest: test_should_destroy_employee
|
2798
|
+
-----------------------------------------------------
|
2799
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2800
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2802
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2803
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2805
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
2806
|
+
Processing by EmployeesController#destroy as HTML
|
2807
|
+
Parameters: {"id"=>"842"}
|
2808
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 842]]
|
2809
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2810
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 842]]
|
2811
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2812
|
+
Redirected to http://test.host/employees
|
2813
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
2814
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
2815
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2816
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2817
|
+
------------------------------------------
|
2818
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
2819
|
+
------------------------------------------
|
2820
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2821
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2822
|
+
--------------------------------------------------------
|
2823
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
2824
|
+
--------------------------------------------------------
|
2825
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2826
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2827
|
+
---------------------------------------------------------------
|
2828
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
2829
|
+
---------------------------------------------------------------
|
2830
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2831
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2832
|
+
-----------------------------------------------------------
|
2833
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
2834
|
+
-----------------------------------------------------------
|
2835
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2836
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2837
|
+
-------------------------------------
|
2838
|
+
GovUkDateFieldsTest: test_squash_html
|
2839
|
+
-------------------------------------
|
2840
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2841
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2842
|
+
---------------------------------------------------------------
|
2843
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
2844
|
+
---------------------------------------------------------------
|
2845
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2846
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2847
|
+
-------------------------------------------------------
|
2848
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
2849
|
+
-------------------------------------------------------
|
2850
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2851
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2852
|
+
-------------------------------------------------------------
|
2853
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
2854
|
+
-------------------------------------------------------------
|
2855
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2856
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2857
|
+
-------------------------------------------------------------------------------
|
2858
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
2859
|
+
-------------------------------------------------------------------------------
|
2860
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2861
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2862
|
+
---------------------------------------------------------------------
|
2863
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
2864
|
+
---------------------------------------------------------------------
|
2865
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2866
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2867
|
+
-----------------------------------------------------------------------
|
2868
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
2869
|
+
-----------------------------------------------------------------------
|
2870
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2871
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2872
|
+
-----------------------------------------------------------------
|
2873
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
2874
|
+
-----------------------------------------------------------------
|
2875
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2876
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2877
|
+
------------------------------------------------------------------------------------------------
|
2878
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
2879
|
+
------------------------------------------------------------------------------------------------
|
2880
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2881
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2884
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2885
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2886
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2887
|
+
-----------------------------------------------------------------------
|
2888
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
2889
|
+
-----------------------------------------------------------------------
|
2890
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
2891
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
2892
|
+
-----------------------------------------------------------------------------------------------
|
2893
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
2894
|
+
-----------------------------------------------------------------------------------------------
|
2895
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2896
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2897
|
+
--------------------------------------------------------------------------
|
2898
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
2899
|
+
--------------------------------------------------------------------------
|
2900
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2901
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2902
|
+
-----------------------------------------------------------------------------------------
|
2903
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
2904
|
+
-----------------------------------------------------------------------------------------
|
2905
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2906
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2907
|
+
---------------------------------------------------------------------------------
|
2908
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
2909
|
+
---------------------------------------------------------------------------------
|
2910
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2911
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2912
|
+
-----------------------------------------------------------------------------------------------
|
2913
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
2914
|
+
-----------------------------------------------------------------------------------------------
|
2915
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2916
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2917
|
+
------------------------------------------------------------------------------------------
|
2918
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
2919
|
+
------------------------------------------------------------------------------------------
|
2920
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2921
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2922
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2923
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
2924
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2925
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2926
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2927
|
+
-------------------------------------------------------------------------------
|
2928
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
2929
|
+
-------------------------------------------------------------------------------
|
2930
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2931
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2932
|
+
---------------------------------------------------------------------------------
|
2933
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
2934
|
+
---------------------------------------------------------------------------------
|
2935
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2936
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2937
|
+
----------------------------------------------------------------------------------------------
|
2938
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
2939
|
+
----------------------------------------------------------------------------------------------
|
2940
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2941
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
2942
|
+
-----------------------------------------------------------------------------------
|
2943
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
2944
|
+
-----------------------------------------------------------------------------------
|
2945
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2946
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2947
|
+
------------------------------------------------------------------------
|
2948
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
2949
|
+
------------------------------------------------------------------------
|
2950
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2951
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2952
|
+
---------------------------------------------------------------------------------------------------------
|
2953
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
2954
|
+
---------------------------------------------------------------------------------------------------------
|
2955
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2956
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2957
|
+
---------------------------------------------------------------------
|
2958
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
2959
|
+
---------------------------------------------------------------------
|
2960
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2961
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2963
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2964
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2966
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2967
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2968
|
+
----------------------------------------------
|
2969
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
2970
|
+
----------------------------------------------
|
2971
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2972
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2973
|
+
-----------------------------------------------------------
|
2974
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
2975
|
+
-----------------------------------------------------------
|
2976
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2977
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2978
|
+
--------------------------------------------
|
2979
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
2980
|
+
--------------------------------------------
|
2981
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2982
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2983
|
+
---------------------------------------------------------------------
|
2984
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
2985
|
+
---------------------------------------------------------------------
|
2986
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2987
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2988
|
+
-----------------------------------------------------------------
|
2989
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
2990
|
+
-----------------------------------------------------------------
|
2991
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2992
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
2993
|
+
----------------------------------------------------------------------------------------------------------------
|
2994
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
2995
|
+
----------------------------------------------------------------------------------------------------------------
|
2996
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2997
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2998
|
+
--------------------------------------------------------------------------
|
2999
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
3000
|
+
--------------------------------------------------------------------------
|
3001
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3002
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3003
|
+
------------------------------------------------------------------------------------------
|
3004
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
3005
|
+
------------------------------------------------------------------------------------------
|
3006
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3007
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3012
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3013
|
+
-----------------------------------------------------------------------
|
3014
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
3015
|
+
-----------------------------------------------------------------------
|
3016
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3017
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3018
|
+
-------------------------------------------------------------------------
|
3019
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
3020
|
+
-------------------------------------------------------------------------
|
3021
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3022
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3024
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3025
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3026
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3027
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3028
|
+
-----------------------------------------------------------
|
3029
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
3030
|
+
-----------------------------------------------------------
|
3031
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3032
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3033
|
+
-------------------------------------------
|
3034
|
+
EmployeeTest: test_invalid_day_raises_error
|
3035
|
+
-------------------------------------------
|
3036
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3037
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3038
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3039
|
+
-----------------------------------------------------------------
|
3040
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
3041
|
+
-----------------------------------------------------------------
|
3042
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3043
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3044
|
+
--------------------------------------------------------------------------
|
3045
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
3046
|
+
--------------------------------------------------------------------------
|
3047
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3048
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3049
|
+
---------------------------------------------------------------------
|
3050
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
3051
|
+
---------------------------------------------------------------------
|
3052
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3053
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3054
|
+
-----------------------------------------------------------------------
|
3055
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
3056
|
+
-----------------------------------------------------------------------
|
3057
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3058
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3059
|
+
-----------------------------------------------------------------------
|
3060
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
3061
|
+
-----------------------------------------------------------------------
|
3062
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3063
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3064
|
+
------------------------------------------------------------------------------------------------
|
3065
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
3066
|
+
------------------------------------------------------------------------------------------------
|
3067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3068
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3070
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3071
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3072
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3073
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3074
|
+
-----------------------------------------------------------------------------------------------
|
3075
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
3076
|
+
-----------------------------------------------------------------------------------------------
|
3077
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3078
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3079
|
+
-----------------------------------------------------
|
3080
|
+
EmployeesControllerTest: test_should_destroy_employee
|
3081
|
+
-----------------------------------------------------
|
3082
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3083
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3085
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3086
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3088
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
3089
|
+
Processing by EmployeesController#destroy as HTML
|
3090
|
+
Parameters: {"id"=>"848"}
|
3091
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 848]]
|
3092
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3093
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 848]]
|
3094
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3095
|
+
Redirected to http://test.host/employees
|
3096
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
3097
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
3098
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3099
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3100
|
+
----------------------------------------------
|
3101
|
+
EmployeesControllerTest: test_should_get_index
|
3102
|
+
----------------------------------------------
|
3103
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3104
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3107
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3109
|
+
Processing by EmployeesController#index as HTML
|
3110
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3114
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3115
|
+
--------------------------------------------------------------
|
3116
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
3117
|
+
--------------------------------------------------------------
|
3118
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3119
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3122
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3124
|
+
Processing by EmployeesController#edit as HTML
|
3125
|
+
Parameters: {"id"=>"852"}
|
3126
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3131
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3132
|
+
--------------------------------------------
|
3133
|
+
EmployeesControllerTest: test_should_get_new
|
3134
|
+
--------------------------------------------
|
3135
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3136
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3138
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3139
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3146
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3147
|
+
----------------------------------------------------
|
3148
|
+
EmployeesControllerTest: test_should_create_employee
|
3149
|
+
----------------------------------------------------
|
3150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3151
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3154
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3156
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3160
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3162
|
+
Redirected to http://test.host/employees/858
|
3163
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
3164
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
3165
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
3166
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
3167
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3168
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3169
|
+
----------------------------------------------------
|
3170
|
+
EmployeesControllerTest: test_should_update_employee
|
3171
|
+
----------------------------------------------------
|
3172
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3173
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3175
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3176
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 859]]
|
3181
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3182
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-08-22 15:09:09.307379"], ["id", 859]]
|
3183
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3184
|
+
Redirected to http://test.host/employees/859
|
3185
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
3186
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 859]]
|
3187
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3188
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3189
|
+
--------------------------------------------------
|
3190
|
+
EmployeesControllerTest: test_should_show_employee
|
3191
|
+
--------------------------------------------------
|
3192
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3193
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3195
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3196
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3198
|
+
Processing by EmployeesController#show as HTML
|
3199
|
+
Parameters: {"id"=>"861"}
|
3200
|
+
[1m[35mEmployee Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3204
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3205
|
+
---------------------------------------------
|
3206
|
+
EmployeesControllerTest: test_should_get_edit
|
3207
|
+
---------------------------------------------
|
3208
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3209
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3211
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3212
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3214
|
+
Processing by EmployeesController#edit as HTML
|
3215
|
+
Parameters: {"id"=>"863"}
|
3216
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3221
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3222
|
+
-----------------------------------------------------------------------------------------------
|
3223
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
3224
|
+
-----------------------------------------------------------------------------------------------
|
3225
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3226
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3227
|
+
------------------------------------------------------------------------------------------
|
3228
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
3229
|
+
------------------------------------------------------------------------------------------
|
3230
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3231
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3232
|
+
---------------------------------------------------------------------------------
|
3233
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
3234
|
+
---------------------------------------------------------------------------------
|
3235
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3236
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
3237
|
+
-----------------------------------------------------------------------------------------
|
3238
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
3239
|
+
-----------------------------------------------------------------------------------------
|
3240
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3241
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3242
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
3243
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
3244
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
3245
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3246
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3247
|
+
-------------------------------------------------------------------------------
|
3248
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
3249
|
+
-------------------------------------------------------------------------------
|
3250
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3251
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3252
|
+
---------------------------------------------------------------------------------
|
3253
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
3254
|
+
---------------------------------------------------------------------------------
|
3255
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3256
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3257
|
+
----------------------------------------------------------------------------------------------------------------
|
3258
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
3259
|
+
----------------------------------------------------------------------------------------------------------------
|
3260
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3261
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3262
|
+
---------------------------------------------------------------------------------------------------------
|
3263
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
3264
|
+
---------------------------------------------------------------------------------------------------------
|
3265
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3266
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3267
|
+
---------------------------------------------------------------------
|
3268
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
3269
|
+
---------------------------------------------------------------------
|
3270
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3271
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3273
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3274
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3276
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3277
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3278
|
+
------------------------------------------------------------------------------------------
|
3279
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
3280
|
+
------------------------------------------------------------------------------------------
|
3281
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3282
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3283
|
+
--------------------------------------------------------------------------
|
3284
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
3285
|
+
--------------------------------------------------------------------------
|
3286
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3287
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3288
|
+
------------------------------------------------------------------------
|
3289
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
3290
|
+
------------------------------------------------------------------------
|
3291
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3292
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
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
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3297
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
3298
|
+
-----------------------------------------------------------
|
3299
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
3300
|
+
-----------------------------------------------------------
|
3301
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3302
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3303
|
+
--------------------------------------------
|
3304
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
3305
|
+
--------------------------------------------
|
3306
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3307
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3308
|
+
-------------------------------------------------------------------------
|
3309
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
3310
|
+
-------------------------------------------------------------------------
|
3311
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3312
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3314
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3315
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3316
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3317
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3318
|
+
-----------------------------------------------------------------------------------
|
3319
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
3320
|
+
-----------------------------------------------------------------------------------
|
3321
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3322
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3323
|
+
---------------------------------------------------------------------
|
3324
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
3325
|
+
---------------------------------------------------------------------
|
3326
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3327
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3328
|
+
-------------------------------------------
|
3329
|
+
EmployeeTest: test_invalid_day_raises_error
|
3330
|
+
-------------------------------------------
|
3331
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3332
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3333
|
+
-----------------------------------------------------------
|
3334
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
3335
|
+
-----------------------------------------------------------
|
3336
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3337
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3338
|
+
-----------------------------------------------------------------------
|
3339
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
3340
|
+
-----------------------------------------------------------------------
|
3341
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3342
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3343
|
+
----------------------------------------------------------------------------------------------
|
3344
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
3345
|
+
----------------------------------------------------------------------------------------------
|
3346
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3347
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3348
|
+
-----------------------------------------------------------------
|
3349
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
3350
|
+
-----------------------------------------------------------------
|
3351
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3352
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3353
|
+
----------------------------------------------
|
3354
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
3355
|
+
----------------------------------------------
|
3356
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3357
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3358
|
+
-------------------------------------
|
3359
|
+
GovUkDateFieldsTest: test_squash_html
|
3360
|
+
-------------------------------------
|
3361
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3362
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3363
|
+
---------------------------------------------------------------
|
3364
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
3365
|
+
---------------------------------------------------------------
|
3366
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3367
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3368
|
+
--------------------------------------------------------
|
3369
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
3370
|
+
--------------------------------------------------------
|
3371
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3372
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3373
|
+
-------------------------------------------------------
|
3374
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
3375
|
+
-------------------------------------------------------
|
3376
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
3377
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3378
|
+
---------------------------------------------------------------
|
3379
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
3380
|
+
---------------------------------------------------------------
|
3381
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
3382
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3383
|
+
------------------------------------------
|
3384
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
3385
|
+
------------------------------------------
|
3386
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
3387
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3388
|
+
-------------------------------------------------------------
|
3389
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
3390
|
+
-------------------------------------------------------------
|
3391
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3392
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3393
|
+
-----------------------------------------------------------
|
3394
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
3395
|
+
-----------------------------------------------------------
|
3396
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3397
|
+
[1m[35m (0.0ms)[0m BEGIN
|
3398
|
+
-------------------------------------------------------------------------------
|
3399
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
|
3400
|
+
-------------------------------------------------------------------------------
|
3401
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|