gov_uk_date_fields 4.0.1 → 4.1.0
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 +1 -1
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/log/test.log +1729 -0
- data/test/dummy/test/controllers/employees_controller_test.rb +2 -1
- data/test/dummy/test/fixtures/files/date_fields_error.html +3 -3
- data/test/dummy/test/fixtures/files/date_fields_no_error.html +3 -3
- data/test/dummy/test/fixtures/files/date_fields_no_heading.html +3 -3
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/0_/0_KGqW-lVlWZcXQN1LWgPLAHDM5xlDV08HbzDgVOy20.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/1H/1HPQ14RJlTTuTTW8Jt8V--k0FHAO7JVNSxiCW_BlkI4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5D/5DKPLUHmqKZsLfFE5nAE4w0qQLkT9i66E1oG8RHEp6Y.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5N/5NbU53vKSTz1IyL4a_BuDGo1je8sAU8tdcl-61HD5wU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Q/5QZFrEOWFc73m7uo3BclG5CtkomRnAgRLCJYal2Mjlg.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/FW/FWsr4fESSJEW5qOGkepixMf2mUXUTrmSjY8z0ySkF8I.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Hk/HkRgExU0xdcvLWwr840m-VvV78lhnyoIW30-yHVLgWQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OD/ODpjb6V7lYb48jb5DR5f6oCXXgKzueP-KrKgeOhsu5Q.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UQ/UQdrSW2a8N4uY86t0uVCmq5efEvZxruTQxXujll5RS4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Y_/Y_6nhqhifE8-y1MsdkxhNvjk5ft1AQGJrbVAwixdesU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/fU/fULlRV8Iu3A-1eKSHAggiy9rQHEG2VbG6rlIEnk1CkE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hJ/hJU84pQFpWWahRxePTphSkkhHn1iLuA9cJ0rjXqkOHU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/j1/j10wgQs121mo73xhaELJIiDCf7txfnU1WnYYS8o1uVU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ng/ngT0rpTBjj5LCyc3GoWJt6ourQbSPeDrYS76aztq2No.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b33daec31456e74f630240e74cbd598606ee39f
|
4
|
+
data.tar.gz: 100721d1d624a2953de657c7c0c05e3825035ca1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8efb4c823b888a75d74a53b3fc22816ae50a7761906328a25da09bf1db0f94f1edfec4ad0430a14325793476b4a1b7203a99d4bd03d678ef08ccc8addd389e7
|
7
|
+
data.tar.gz: cc767f5e5834808ee53a494a1823e20cede9f9447ada9d1dcd6476b47a8c3d831d0d1a5945e78294cb496f19e9dc08db6ed600f33fbfd24e6f9ae773e81e0959
|
@@ -51,7 +51,7 @@ module GovUkDateFields
|
|
51
51
|
content_tag(:div, class: 'govuk-form-group') do
|
52
52
|
%Q|
|
53
53
|
<label class="govuk-label govuk-date-input__label" for="#{html_id(name)}">#{localized_label(name)}</label>
|
54
|
-
<input class="#{css_class}" id="#{html_id(name)}" name="#{html_name(name)}" value="#{value}" type="
|
54
|
+
<input class="#{css_class}" id="#{html_id(name)}" name="#{html_name(name)}" value="#{value}" type="text" inputmode="numeric" pattern="[0-9]*">
|
55
55
|
|.html_safe
|
56
56
|
end
|
57
57
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -29803,3 +29803,1732 @@ EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
|
29803
29803
|
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
29804
29804
|
---------------------------------------------------------------------
|
29805
29805
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29806
|
+
[1m[36mActiveRecord::SchemaMigration Load (23.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29807
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29808
|
+
------------------------------------------------------------------
|
29809
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
29810
|
+
------------------------------------------------------------------
|
29811
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
29812
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29813
|
+
-------------------------------------------------------------------------------------------------------
|
29814
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
29815
|
+
-------------------------------------------------------------------------------------------------------
|
29816
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29817
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29818
|
+
----------------------------------------------------------------------
|
29819
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
29820
|
+
----------------------------------------------------------------------
|
29821
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29822
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29823
|
+
--------------------------------------------------------------------------------
|
29824
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
29825
|
+
--------------------------------------------------------------------------------
|
29826
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29827
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29828
|
+
--------------------------------------------------------------------------
|
29829
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
29830
|
+
--------------------------------------------------------------------------
|
29831
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29832
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29833
|
+
----------------------------------------------------------------------
|
29834
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
29835
|
+
----------------------------------------------------------------------
|
29836
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29837
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29838
|
+
--------------------------------------------------------------------------------------------------
|
29839
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
29840
|
+
--------------------------------------------------------------------------------------------------
|
29841
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29842
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29843
|
+
-------------------------------------------------------------------------
|
29844
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
29845
|
+
-------------------------------------------------------------------------
|
29846
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29847
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29848
|
+
---------------------------------------------------------------------
|
29849
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
29850
|
+
---------------------------------------------------------------------
|
29851
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29852
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29853
|
+
-----------------------------------------------------------------------------------------------
|
29854
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
29855
|
+
-----------------------------------------------------------------------------------------------
|
29856
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29857
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
29858
|
+
--------------------------------------------------------------------------
|
29859
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
29860
|
+
--------------------------------------------------------------------------
|
29861
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29862
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
29863
|
+
-----------------------------------------------------------------------
|
29864
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
29865
|
+
-----------------------------------------------------------------------
|
29866
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29867
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29868
|
+
-----------------------------------------------------------------
|
29869
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
29870
|
+
-----------------------------------------------------------------
|
29871
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29872
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29873
|
+
------------------------------------------------------------------------------------------------
|
29874
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
29875
|
+
------------------------------------------------------------------------------------------------
|
29876
|
+
[1m[35m (6.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29877
|
+
[1m[35mSQL (12.9ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29878
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29879
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29880
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29881
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29882
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29883
|
+
---------------------------------------------------------------------
|
29884
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
29885
|
+
---------------------------------------------------------------------
|
29886
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29887
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29888
|
+
-----------------------------------------------------------------------
|
29889
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
29890
|
+
-----------------------------------------------------------------------
|
29891
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29892
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29893
|
+
---------------------------------------------------------------------------------
|
29894
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
29895
|
+
---------------------------------------------------------------------------------
|
29896
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29897
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29898
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
29899
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
29900
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
29901
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29902
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29903
|
+
-------------------------------------------------------------------------------
|
29904
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
29905
|
+
-------------------------------------------------------------------------------
|
29906
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29907
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
29908
|
+
---------------------------------------------------------------------------------
|
29909
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
29910
|
+
---------------------------------------------------------------------------------
|
29911
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29912
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29913
|
+
-----------------------------------------------------------------------------------------------
|
29914
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
29915
|
+
-----------------------------------------------------------------------------------------------
|
29916
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29917
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29918
|
+
------------------------------------------------------------------------------------------
|
29919
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
29920
|
+
------------------------------------------------------------------------------------------
|
29921
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29922
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29923
|
+
-----------------------------------------------------------------------------------------
|
29924
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
29925
|
+
-----------------------------------------------------------------------------------------
|
29926
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29927
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29928
|
+
----------------------------------------------------------------
|
29929
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
29930
|
+
----------------------------------------------------------------
|
29931
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29932
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29933
|
+
------------------------------------------------
|
29934
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
29935
|
+
------------------------------------------------
|
29936
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
29937
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29938
|
+
-------------------------------------------
|
29939
|
+
GovUkDateFieldsTest: test_date_fields_error
|
29940
|
+
-------------------------------------------
|
29941
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29942
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29943
|
+
----------------------------------------------
|
29944
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
29945
|
+
----------------------------------------------
|
29946
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29947
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29948
|
+
----------------------------------------------
|
29949
|
+
EmployeesControllerTest: test_should_get_index
|
29950
|
+
----------------------------------------------
|
29951
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29952
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29953
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29954
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29955
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29956
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29957
|
+
Processing by EmployeesController#index as HTML
|
29958
|
+
Rendering employees/index.html.erb within layouts/application
|
29959
|
+
[1m[36mEmployee Load (6.3ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
29960
|
+
Rendered employees/index.html.erb within layouts/application (9.2ms)
|
29961
|
+
Completed 200 OK in 200ms (Views: 192.1ms | ActiveRecord: 6.3ms)
|
29962
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
29963
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29964
|
+
----------------------------------------------------
|
29965
|
+
EmployeesControllerTest: test_should_update_employee
|
29966
|
+
----------------------------------------------------
|
29967
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29968
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29969
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29970
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29971
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29972
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29973
|
+
Processing by EmployeesController#update as HTML
|
29974
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1057"}
|
29975
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
|
29976
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29977
|
+
[1m[35mSQL (6.5ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2019-08-28 10:50:24 UTC], ["id", 1057]]
|
29978
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29979
|
+
Redirected to http://test.host/employees/1057
|
29980
|
+
Completed 302 Found in 13ms (ActiveRecord: 7.0ms)
|
29981
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1057], ["LIMIT", 1]]
|
29982
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29983
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
29984
|
+
--------------------------------------------
|
29985
|
+
EmployeesControllerTest: test_should_get_new
|
29986
|
+
--------------------------------------------
|
29987
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29988
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29989
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29990
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
29991
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
29992
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
29993
|
+
Processing by EmployeesController#new as HTML
|
29994
|
+
Rendering employees/new.html.erb within layouts/application
|
29995
|
+
Rendered employees/_form.html.erb (9.9ms)
|
29996
|
+
Rendered employees/new.html.erb within layouts/application (11.9ms)
|
29997
|
+
Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.0ms)
|
29998
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
29999
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30000
|
+
----------------------------------------------------
|
30001
|
+
EmployeesControllerTest: test_should_create_employee
|
30002
|
+
----------------------------------------------------
|
30003
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30004
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30005
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30006
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30007
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30008
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30009
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30010
|
+
Processing by EmployeesController#create as HTML
|
30011
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
30012
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30013
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30014
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30015
|
+
Redirected to http://test.host/employees/1063
|
30016
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
30017
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30018
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30019
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
30020
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30021
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30022
|
+
-----------------------------------------------------
|
30023
|
+
EmployeesControllerTest: test_should_destroy_employee
|
30024
|
+
-----------------------------------------------------
|
30025
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30026
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30027
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30028
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30029
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30030
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30031
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30032
|
+
Processing by EmployeesController#destroy as HTML
|
30033
|
+
Parameters: {"id"=>"1064"}
|
30034
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1064], ["LIMIT", 1]]
|
30035
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30036
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1064]]
|
30037
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30038
|
+
Redirected to http://test.host/employees
|
30039
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
30040
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30041
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30042
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30043
|
+
--------------------------------------------------------------
|
30044
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
30045
|
+
--------------------------------------------------------------
|
30046
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30047
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30048
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30049
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30050
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30051
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30052
|
+
Processing by EmployeesController#edit as HTML
|
30053
|
+
Parameters: {"id"=>"1066"}
|
30054
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1066], ["LIMIT", 1]]
|
30055
|
+
Rendering employees/edit.html.erb within layouts/application
|
30056
|
+
Rendered employees/_form.html.erb (2.0ms)
|
30057
|
+
Rendered employees/edit.html.erb within layouts/application (2.5ms)
|
30058
|
+
Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
30059
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30060
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30061
|
+
---------------------------------------------
|
30062
|
+
EmployeesControllerTest: test_should_get_edit
|
30063
|
+
---------------------------------------------
|
30064
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30065
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30066
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30067
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30068
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30069
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30070
|
+
Processing by EmployeesController#edit as HTML
|
30071
|
+
Parameters: {"id"=>"1068"}
|
30072
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1068], ["LIMIT", 1]]
|
30073
|
+
Rendering employees/edit.html.erb within layouts/application
|
30074
|
+
Rendered employees/_form.html.erb (2.1ms)
|
30075
|
+
Rendered employees/edit.html.erb within layouts/application (2.3ms)
|
30076
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
30077
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30078
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30079
|
+
--------------------------------------------------
|
30080
|
+
EmployeesControllerTest: test_should_show_employee
|
30081
|
+
--------------------------------------------------
|
30082
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30083
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30084
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30085
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30086
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30087
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30088
|
+
Processing by EmployeesController#show as HTML
|
30089
|
+
Parameters: {"id"=>"1070"}
|
30090
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1070], ["LIMIT", 1]]
|
30091
|
+
Rendering employees/show.html.erb within layouts/application
|
30092
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
30093
|
+
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms)
|
30094
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30096
|
+
----------------------------------------------
|
30097
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
30098
|
+
----------------------------------------------
|
30099
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30100
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30101
|
+
------------------------------------------------------------------------------------------
|
30102
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
30103
|
+
------------------------------------------------------------------------------------------
|
30104
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30105
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30106
|
+
-----------------------------------------------------------------------------------
|
30107
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
30108
|
+
-----------------------------------------------------------------------------------
|
30109
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30110
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30111
|
+
----------------------------------------------
|
30112
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
30113
|
+
----------------------------------------------
|
30114
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30116
|
+
---------------------------------------------------------------------------------------------------------
|
30117
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
30118
|
+
---------------------------------------------------------------------------------------------------------
|
30119
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30121
|
+
--------------------------------------------------------------------------
|
30122
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
30123
|
+
--------------------------------------------------------------------------
|
30124
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30125
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30126
|
+
--------------------------------------------
|
30127
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
30128
|
+
--------------------------------------------
|
30129
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30130
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30131
|
+
---------------------------------------------------------------------
|
30132
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
30133
|
+
---------------------------------------------------------------------
|
30134
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30135
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30136
|
+
-----------------------------------------------------------
|
30137
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
30138
|
+
-----------------------------------------------------------
|
30139
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30140
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30141
|
+
-----------------------------------------------------------------------
|
30142
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
30143
|
+
-----------------------------------------------------------------------
|
30144
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30145
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30146
|
+
-----------------------------------------------------------
|
30147
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
30148
|
+
-----------------------------------------------------------
|
30149
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30150
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30151
|
+
---------------------------------------------------------------------
|
30152
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
30153
|
+
---------------------------------------------------------------------
|
30154
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30155
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30156
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30157
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30158
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", Mon, 17 May 1965], ["updated_at", 2019-08-28 10:50:24 UTC], ["id", 1072]]
|
30159
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30160
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30161
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30162
|
+
----------------------------------------------------------------------------------------------
|
30163
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
30164
|
+
----------------------------------------------------------------------------------------------
|
30165
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30166
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30167
|
+
-------------------------------------------------------------------------------------------------------------------
|
30168
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
30169
|
+
-------------------------------------------------------------------------------------------------------------------
|
30170
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30171
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30172
|
+
-------------------------------------------------------------------------
|
30173
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
30174
|
+
-------------------------------------------------------------------------
|
30175
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30176
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 10:50:24 UTC], ["updated_at", 2019-08-28 10:50:24 UTC]]
|
30177
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30178
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30179
|
+
[1m[35m (5.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
30180
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30181
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30182
|
+
------------------------------------------------------------------------
|
30183
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
30184
|
+
------------------------------------------------------------------------
|
30185
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30186
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30187
|
+
-------------------------------------------
|
30188
|
+
EmployeeTest: test_invalid_day_raises_error
|
30189
|
+
-------------------------------------------
|
30190
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30192
|
+
-----------------------------------------------------------------
|
30193
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
30194
|
+
-----------------------------------------------------------------
|
30195
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30196
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30197
|
+
----------------------------------------------------------------------------------------------------------------
|
30198
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
30199
|
+
----------------------------------------------------------------------------------------------------------------
|
30200
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30201
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30202
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30203
|
+
---------------------------------------------------------------------
|
30204
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
30205
|
+
---------------------------------------------------------------------
|
30206
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30207
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30208
|
+
-------------------------------------------------------------------------
|
30209
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
30210
|
+
-------------------------------------------------------------------------
|
30211
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30212
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30213
|
+
--------------------------------------------------------------------------------------------------
|
30214
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
30215
|
+
--------------------------------------------------------------------------------------------------
|
30216
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30217
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30218
|
+
--------------------------------------------------------------
|
30219
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
30220
|
+
--------------------------------------------------------------
|
30221
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30222
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30223
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30224
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30225
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30226
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30227
|
+
Processing by EmployeesController#edit as HTML
|
30228
|
+
Parameters: {"id"=>"1074"}
|
30229
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1074], ["LIMIT", 1]]
|
30230
|
+
Rendering employees/edit.html.erb within layouts/application
|
30231
|
+
Rendered employees/_form.html.erb (14.4ms)
|
30232
|
+
Rendered employees/edit.html.erb within layouts/application (17.9ms)
|
30233
|
+
Completed 200 OK in 199ms (Views: 195.0ms | ActiveRecord: 0.3ms)
|
30234
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30235
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30236
|
+
---------------------------------------------
|
30237
|
+
EmployeesControllerTest: test_should_get_edit
|
30238
|
+
---------------------------------------------
|
30239
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30240
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30241
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30242
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30243
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30244
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30245
|
+
Processing by EmployeesController#edit as HTML
|
30246
|
+
Parameters: {"id"=>"1076"}
|
30247
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1076], ["LIMIT", 1]]
|
30248
|
+
Rendering employees/edit.html.erb within layouts/application
|
30249
|
+
Rendered employees/_form.html.erb (2.1ms)
|
30250
|
+
Rendered employees/edit.html.erb within layouts/application (2.3ms)
|
30251
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
|
30252
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30253
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30254
|
+
-----------------------------------------------------
|
30255
|
+
EmployeesControllerTest: test_should_destroy_employee
|
30256
|
+
-----------------------------------------------------
|
30257
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30258
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30260
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30261
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30262
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30263
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30264
|
+
Processing by EmployeesController#destroy as HTML
|
30265
|
+
Parameters: {"id"=>"1078"}
|
30266
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1078], ["LIMIT", 1]]
|
30267
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30268
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1078]]
|
30269
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30270
|
+
Redirected to http://test.host/employees
|
30271
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
30272
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30273
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30274
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30275
|
+
--------------------------------------------
|
30276
|
+
EmployeesControllerTest: test_should_get_new
|
30277
|
+
--------------------------------------------
|
30278
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30279
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30280
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30281
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30282
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30283
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30284
|
+
Processing by EmployeesController#new as HTML
|
30285
|
+
Rendering employees/new.html.erb within layouts/application
|
30286
|
+
Rendered employees/_form.html.erb (2.4ms)
|
30287
|
+
Rendered employees/new.html.erb within layouts/application (3.0ms)
|
30288
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
30289
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30290
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30291
|
+
----------------------------------------------------
|
30292
|
+
EmployeesControllerTest: test_should_create_employee
|
30293
|
+
----------------------------------------------------
|
30294
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30295
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30296
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30297
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30298
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30299
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30300
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30301
|
+
Processing by EmployeesController#create as HTML
|
30302
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
30303
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30304
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30305
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30306
|
+
Redirected to http://test.host/employees/1084
|
30307
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
30308
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30309
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30310
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
30311
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30312
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30313
|
+
----------------------------------------------
|
30314
|
+
EmployeesControllerTest: test_should_get_index
|
30315
|
+
----------------------------------------------
|
30316
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30317
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30318
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30319
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30320
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30321
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30322
|
+
Processing by EmployeesController#index as HTML
|
30323
|
+
Rendering employees/index.html.erb within layouts/application
|
30324
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
30325
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
30326
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
30327
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30328
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30329
|
+
--------------------------------------------------
|
30330
|
+
EmployeesControllerTest: test_should_show_employee
|
30331
|
+
--------------------------------------------------
|
30332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30333
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30334
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30335
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30336
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30337
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30338
|
+
Processing by EmployeesController#show as HTML
|
30339
|
+
Parameters: {"id"=>"1087"}
|
30340
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1087], ["LIMIT", 1]]
|
30341
|
+
Rendering employees/show.html.erb within layouts/application
|
30342
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
30343
|
+
Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
30344
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30345
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30346
|
+
----------------------------------------------------
|
30347
|
+
EmployeesControllerTest: test_should_update_employee
|
30348
|
+
----------------------------------------------------
|
30349
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30350
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30351
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30352
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30353
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30354
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30355
|
+
Processing by EmployeesController#update as HTML
|
30356
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1089"}
|
30357
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
|
30358
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30359
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2019-08-28 11:17:56 UTC], ["id", 1089]]
|
30360
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30361
|
+
Redirected to http://test.host/employees/1089
|
30362
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
30363
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1089], ["LIMIT", 1]]
|
30364
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30365
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30366
|
+
----------------------------------------------
|
30367
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
30368
|
+
----------------------------------------------
|
30369
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30370
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30371
|
+
----------------------------------------------
|
30372
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
30373
|
+
----------------------------------------------
|
30374
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30375
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30376
|
+
------------------------------------------------
|
30377
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
30378
|
+
------------------------------------------------
|
30379
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30380
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30381
|
+
----------------------------------------------------------------
|
30382
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
30383
|
+
----------------------------------------------------------------
|
30384
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30385
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30386
|
+
-------------------------------------------
|
30387
|
+
GovUkDateFieldsTest: test_date_fields_error
|
30388
|
+
-------------------------------------------
|
30389
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30390
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30391
|
+
--------------------------------------------------------------------------------
|
30392
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
30393
|
+
--------------------------------------------------------------------------------
|
30394
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30395
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30396
|
+
--------------------------------------------------------------------------
|
30397
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
30398
|
+
--------------------------------------------------------------------------
|
30399
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30400
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30401
|
+
----------------------------------------------------------------------
|
30402
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
30403
|
+
----------------------------------------------------------------------
|
30404
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30405
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30406
|
+
-----------------------------------------------------------
|
30407
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
30408
|
+
-----------------------------------------------------------
|
30409
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30410
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30411
|
+
------------------------------------------------------------------------------------------
|
30412
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
30413
|
+
------------------------------------------------------------------------------------------
|
30414
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30415
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30416
|
+
---------------------------------------------------------------------
|
30417
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
30418
|
+
---------------------------------------------------------------------
|
30419
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30420
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30421
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30422
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30423
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", Mon, 17 May 1965], ["updated_at", 2019-08-28 11:17:56 UTC], ["id", 1091]]
|
30424
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30425
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30426
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30427
|
+
--------------------------------------------
|
30428
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
30429
|
+
--------------------------------------------
|
30430
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30431
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30432
|
+
----------------------------------------------
|
30433
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
30434
|
+
----------------------------------------------
|
30435
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30436
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30437
|
+
-------------------------------------------------------------------------------------------------------------------
|
30438
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
30439
|
+
-------------------------------------------------------------------------------------------------------------------
|
30440
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30441
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30442
|
+
-----------------------------------------------------------
|
30443
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
30444
|
+
-----------------------------------------------------------
|
30445
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30446
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30447
|
+
-----------------------------------------------------------------------
|
30448
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
30449
|
+
-----------------------------------------------------------------------
|
30450
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30451
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30452
|
+
-------------------------------------------
|
30453
|
+
EmployeeTest: test_invalid_day_raises_error
|
30454
|
+
-------------------------------------------
|
30455
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30456
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30457
|
+
---------------------------------------------------------------------------------------------------------
|
30458
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
30459
|
+
---------------------------------------------------------------------------------------------------------
|
30460
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30461
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30462
|
+
---------------------------------------------------------------------
|
30463
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
30464
|
+
---------------------------------------------------------------------
|
30465
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30466
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30467
|
+
------------------------------------------------------------------------
|
30468
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
30469
|
+
------------------------------------------------------------------------
|
30470
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30471
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30472
|
+
--------------------------------------------------------------------------
|
30473
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
30474
|
+
--------------------------------------------------------------------------
|
30475
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30476
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30477
|
+
-----------------------------------------------------------------
|
30478
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
30479
|
+
-----------------------------------------------------------------
|
30480
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30481
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30482
|
+
-----------------------------------------------------------------------------------
|
30483
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
30484
|
+
-----------------------------------------------------------------------------------
|
30485
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30486
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30487
|
+
----------------------------------------------------------------------------------------------------------------
|
30488
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
30489
|
+
----------------------------------------------------------------------------------------------------------------
|
30490
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30491
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30492
|
+
-------------------------------------------------------------------------
|
30493
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
30494
|
+
-------------------------------------------------------------------------
|
30495
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30496
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30497
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30498
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30499
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
30500
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30501
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30502
|
+
----------------------------------------------------------------------------------------------
|
30503
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
30504
|
+
----------------------------------------------------------------------------------------------
|
30505
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30506
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30507
|
+
------------------------------------------------------------------------------------------------
|
30508
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
30509
|
+
------------------------------------------------------------------------------------------------
|
30510
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30511
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:17:56 UTC], ["updated_at", 2019-08-28 11:17:56 UTC]]
|
30512
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30513
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30514
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30515
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30516
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30517
|
+
--------------------------------------------------------------------------
|
30518
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
30519
|
+
--------------------------------------------------------------------------
|
30520
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30521
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30522
|
+
-----------------------------------------------------------------------
|
30523
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
30524
|
+
-----------------------------------------------------------------------
|
30525
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
30526
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30527
|
+
-----------------------------------------------------------------------
|
30528
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
30529
|
+
-----------------------------------------------------------------------
|
30530
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30531
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30532
|
+
-----------------------------------------------------------------
|
30533
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
30534
|
+
-----------------------------------------------------------------
|
30535
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30536
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30537
|
+
---------------------------------------------------------------------
|
30538
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
30539
|
+
---------------------------------------------------------------------
|
30540
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30541
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30542
|
+
-----------------------------------------------------------------------------------------------
|
30543
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
30544
|
+
-----------------------------------------------------------------------------------------------
|
30545
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30546
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30547
|
+
------------------------------------------------------------------
|
30548
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
30549
|
+
------------------------------------------------------------------
|
30550
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30551
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30552
|
+
----------------------------------------------------------------------
|
30553
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
30554
|
+
----------------------------------------------------------------------
|
30555
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30556
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30557
|
+
-------------------------------------------------------------------------------------------------------
|
30558
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
30559
|
+
-------------------------------------------------------------------------------------------------------
|
30560
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30561
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30562
|
+
-----------------------------------------------------------------------------------------
|
30563
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
30564
|
+
-----------------------------------------------------------------------------------------
|
30565
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30566
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30567
|
+
------------------------------------------------------------------------------------------
|
30568
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
30569
|
+
------------------------------------------------------------------------------------------
|
30570
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30571
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30572
|
+
---------------------------------------------------------------------------------
|
30573
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
30574
|
+
---------------------------------------------------------------------------------
|
30575
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30576
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30577
|
+
-----------------------------------------------------------------------------------------------
|
30578
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
30579
|
+
-----------------------------------------------------------------------------------------------
|
30580
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30581
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30582
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
30583
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
30584
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
30585
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30586
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30587
|
+
-------------------------------------------------------------------------------
|
30588
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
30589
|
+
-------------------------------------------------------------------------------
|
30590
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30591
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30592
|
+
---------------------------------------------------------------------------------
|
30593
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
30594
|
+
---------------------------------------------------------------------------------
|
30595
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30596
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30597
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
30598
|
+
----------------------------------------------------
|
30599
|
+
EmployeesControllerTest: test_should_update_employee
|
30600
|
+
----------------------------------------------------
|
30601
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30602
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30603
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30604
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30605
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30606
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30607
|
+
Processing by EmployeesController#update as HTML
|
30608
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1094"}
|
30609
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
|
30610
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30611
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2019-08-28 11:18:13 UTC], ["id", 1094]]
|
30612
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30613
|
+
Redirected to http://test.host/employees/1094
|
30614
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
30615
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1094], ["LIMIT", 1]]
|
30616
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30617
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30618
|
+
--------------------------------------------------------------
|
30619
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
30620
|
+
--------------------------------------------------------------
|
30621
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30622
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30623
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30625
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30626
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30627
|
+
Processing by EmployeesController#edit as HTML
|
30628
|
+
Parameters: {"id"=>"1096"}
|
30629
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1096], ["LIMIT", 1]]
|
30630
|
+
Rendering employees/edit.html.erb within layouts/application
|
30631
|
+
Rendered employees/_form.html.erb (9.4ms)
|
30632
|
+
Rendered employees/edit.html.erb within layouts/application (11.2ms)
|
30633
|
+
Completed 200 OK in 188ms (Views: 186.4ms | ActiveRecord: 0.1ms)
|
30634
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30635
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30636
|
+
-----------------------------------------------------
|
30637
|
+
EmployeesControllerTest: test_should_destroy_employee
|
30638
|
+
-----------------------------------------------------
|
30639
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30640
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30641
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30642
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30643
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30644
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30645
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30646
|
+
Processing by EmployeesController#destroy as HTML
|
30647
|
+
Parameters: {"id"=>"1098"}
|
30648
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1098], ["LIMIT", 1]]
|
30649
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30650
|
+
[1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1098]]
|
30651
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30652
|
+
Redirected to http://test.host/employees
|
30653
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
|
30654
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30655
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30656
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30657
|
+
---------------------------------------------
|
30658
|
+
EmployeesControllerTest: test_should_get_edit
|
30659
|
+
---------------------------------------------
|
30660
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30661
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30662
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30663
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30664
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30665
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30666
|
+
Processing by EmployeesController#edit as HTML
|
30667
|
+
Parameters: {"id"=>"1100"}
|
30668
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1100], ["LIMIT", 1]]
|
30669
|
+
Rendering employees/edit.html.erb within layouts/application
|
30670
|
+
Rendered employees/_form.html.erb (2.0ms)
|
30671
|
+
Rendered employees/edit.html.erb within layouts/application (2.2ms)
|
30672
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
30673
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30674
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30675
|
+
--------------------------------------------
|
30676
|
+
EmployeesControllerTest: test_should_get_new
|
30677
|
+
--------------------------------------------
|
30678
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30679
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30680
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30681
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30682
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30683
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30684
|
+
Processing by EmployeesController#new as HTML
|
30685
|
+
Rendering employees/new.html.erb within layouts/application
|
30686
|
+
Rendered employees/_form.html.erb (2.2ms)
|
30687
|
+
Rendered employees/new.html.erb within layouts/application (2.7ms)
|
30688
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms)
|
30689
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30690
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30691
|
+
----------------------------------------------------
|
30692
|
+
EmployeesControllerTest: test_should_create_employee
|
30693
|
+
----------------------------------------------------
|
30694
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30695
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30696
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30697
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30698
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30699
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30700
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30701
|
+
Processing by EmployeesController#create as HTML
|
30702
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
30703
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30704
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30705
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30706
|
+
Redirected to http://test.host/employees/1106
|
30707
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
30708
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30709
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30710
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
30711
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30712
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30713
|
+
--------------------------------------------------
|
30714
|
+
EmployeesControllerTest: test_should_show_employee
|
30715
|
+
--------------------------------------------------
|
30716
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30717
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30718
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30719
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30720
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30721
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30722
|
+
Processing by EmployeesController#show as HTML
|
30723
|
+
Parameters: {"id"=>"1107"}
|
30724
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1107], ["LIMIT", 1]]
|
30725
|
+
Rendering employees/show.html.erb within layouts/application
|
30726
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
30727
|
+
Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.1ms)
|
30728
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30729
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30730
|
+
----------------------------------------------
|
30731
|
+
EmployeesControllerTest: test_should_get_index
|
30732
|
+
----------------------------------------------
|
30733
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30734
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30735
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30736
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30737
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:13 UTC], ["updated_at", 2019-08-28 11:18:13 UTC]]
|
30738
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30739
|
+
Processing by EmployeesController#index as HTML
|
30740
|
+
Rendering employees/index.html.erb within layouts/application
|
30741
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
30742
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
30743
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
30744
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30745
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30746
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
30747
|
+
----------------------------------------------
|
30748
|
+
EmployeesControllerTest: test_should_get_index
|
30749
|
+
----------------------------------------------
|
30750
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30751
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30752
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30753
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30754
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30755
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30756
|
+
Processing by EmployeesController#index as HTML
|
30757
|
+
Rendering employees/index.html.erb within layouts/application
|
30758
|
+
[1m[36mEmployee Load (0.3ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
30759
|
+
Rendered employees/index.html.erb within layouts/application (4.5ms)
|
30760
|
+
Completed 200 OK in 168ms (Views: 166.9ms | ActiveRecord: 0.3ms)
|
30761
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30762
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30763
|
+
--------------------------------------------------
|
30764
|
+
EmployeesControllerTest: test_should_show_employee
|
30765
|
+
--------------------------------------------------
|
30766
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30767
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30768
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30769
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30770
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30771
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30772
|
+
Processing by EmployeesController#show as HTML
|
30773
|
+
Parameters: {"id"=>"1113"}
|
30774
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1113], ["LIMIT", 1]]
|
30775
|
+
Rendering employees/show.html.erb within layouts/application
|
30776
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
30777
|
+
Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.4ms)
|
30778
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
30779
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30780
|
+
--------------------------------------------
|
30781
|
+
EmployeesControllerTest: test_should_get_new
|
30782
|
+
--------------------------------------------
|
30783
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30784
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30785
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30786
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30787
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30788
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30789
|
+
Processing by EmployeesController#new as HTML
|
30790
|
+
Rendering employees/new.html.erb within layouts/application
|
30791
|
+
Rendered employees/_form.html.erb (9.4ms)
|
30792
|
+
Rendered employees/new.html.erb within layouts/application (10.8ms)
|
30793
|
+
Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)
|
30794
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30795
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30796
|
+
----------------------------------------------------
|
30797
|
+
EmployeesControllerTest: test_should_create_employee
|
30798
|
+
----------------------------------------------------
|
30799
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30800
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30801
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30802
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30803
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30804
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30805
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30806
|
+
Processing by EmployeesController#create as HTML
|
30807
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
30808
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30809
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", Fri, 31 Dec 1965], ["joined", Wed, 04 Mar 2015], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30810
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30811
|
+
Redirected to http://test.host/employees/1119
|
30812
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
30813
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30814
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30815
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
30816
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30817
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30818
|
+
--------------------------------------------------------------
|
30819
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
30820
|
+
--------------------------------------------------------------
|
30821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30822
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30823
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30824
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30825
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30826
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30827
|
+
Processing by EmployeesController#edit as HTML
|
30828
|
+
Parameters: {"id"=>"1120"}
|
30829
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1120], ["LIMIT", 1]]
|
30830
|
+
Rendering employees/edit.html.erb within layouts/application
|
30831
|
+
Rendered employees/_form.html.erb (2.2ms)
|
30832
|
+
Rendered employees/edit.html.erb within layouts/application (2.8ms)
|
30833
|
+
Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)
|
30834
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30835
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30836
|
+
----------------------------------------------------
|
30837
|
+
EmployeesControllerTest: test_should_update_employee
|
30838
|
+
----------------------------------------------------
|
30839
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30840
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30841
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30842
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30843
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30844
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30845
|
+
Processing by EmployeesController#update as HTML
|
30846
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1122"}
|
30847
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1122], ["LIMIT", 1]]
|
30848
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30849
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", Sun, 01 Nov 1981], ["joined", Sat, 03 Oct 2015], ["name", "Ioannis Kole"], ["updated_at", 2019-08-28 11:18:50 UTC], ["id", 1122]]
|
30850
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30851
|
+
Redirected to http://test.host/employees/1122
|
30852
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
30853
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1122], ["LIMIT", 1]]
|
30854
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30855
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30856
|
+
---------------------------------------------
|
30857
|
+
EmployeesControllerTest: test_should_get_edit
|
30858
|
+
---------------------------------------------
|
30859
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30860
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30861
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30862
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30863
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30864
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30865
|
+
Processing by EmployeesController#edit as HTML
|
30866
|
+
Parameters: {"id"=>"1124"}
|
30867
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1124], ["LIMIT", 1]]
|
30868
|
+
Rendering employees/edit.html.erb within layouts/application
|
30869
|
+
Rendered employees/_form.html.erb (1.9ms)
|
30870
|
+
Rendered employees/edit.html.erb within layouts/application (2.1ms)
|
30871
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
|
30872
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30873
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30874
|
+
-----------------------------------------------------
|
30875
|
+
EmployeesControllerTest: test_should_destroy_employee
|
30876
|
+
-----------------------------------------------------
|
30877
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30878
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", Tue, 13 Aug 1963], ["joined", Tue, 01 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30879
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30880
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30881
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", Mon, 17 May 1965], ["joined", Wed, 21 May 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30882
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30883
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30884
|
+
Processing by EmployeesController#destroy as HTML
|
30885
|
+
Parameters: {"id"=>"1126"}
|
30886
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1126], ["LIMIT", 1]]
|
30887
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30888
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1126]]
|
30889
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30890
|
+
Redirected to http://test.host/employees
|
30891
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
30892
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
30893
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30894
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30895
|
+
----------------------------------------------
|
30896
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
30897
|
+
----------------------------------------------
|
30898
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30899
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30900
|
+
----------------------------------------------------------------
|
30901
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
30902
|
+
----------------------------------------------------------------
|
30903
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30904
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30905
|
+
------------------------------------------------
|
30906
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
30907
|
+
------------------------------------------------
|
30908
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30909
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30910
|
+
-------------------------------------------
|
30911
|
+
GovUkDateFieldsTest: test_date_fields_error
|
30912
|
+
-------------------------------------------
|
30913
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30914
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30915
|
+
-----------------------------------------------------------------------------------------------
|
30916
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
30917
|
+
-----------------------------------------------------------------------------------------------
|
30918
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30919
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30920
|
+
--------------------------------------------------------------------------
|
30921
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
30922
|
+
--------------------------------------------------------------------------
|
30923
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30924
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30925
|
+
-----------------------------------------------------------------
|
30926
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
30927
|
+
-----------------------------------------------------------------
|
30928
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30929
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30930
|
+
-----------------------------------------------------------------------
|
30931
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
30932
|
+
-----------------------------------------------------------------------
|
30933
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30934
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30935
|
+
------------------------------------------------------------------------------------------------
|
30936
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
30937
|
+
------------------------------------------------------------------------------------------------
|
30938
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30939
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30940
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30941
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30942
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30943
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30944
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30945
|
+
---------------------------------------------------------------------
|
30946
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
30947
|
+
---------------------------------------------------------------------
|
30948
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30949
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30950
|
+
-----------------------------------------------------------------------
|
30951
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
30952
|
+
-----------------------------------------------------------------------
|
30953
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30954
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30955
|
+
---------------------------------------------------------------------
|
30956
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
30957
|
+
---------------------------------------------------------------------
|
30958
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30959
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30960
|
+
--------------------------------------------------------------------------------------------------
|
30961
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
30962
|
+
--------------------------------------------------------------------------------------------------
|
30963
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30964
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30965
|
+
-------------------------------------------------------------------------
|
30966
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
30967
|
+
-------------------------------------------------------------------------
|
30968
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30969
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
30970
|
+
-------------------------------------------
|
30971
|
+
EmployeeTest: test_invalid_day_raises_error
|
30972
|
+
-------------------------------------------
|
30973
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30974
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30975
|
+
---------------------------------------------------------------------------------------------------------
|
30976
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
30977
|
+
---------------------------------------------------------------------------------------------------------
|
30978
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30979
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30980
|
+
--------------------------------------------------------------------------
|
30981
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
30982
|
+
--------------------------------------------------------------------------
|
30983
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30984
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30985
|
+
---------------------------------------------------------------------
|
30986
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
30987
|
+
---------------------------------------------------------------------
|
30988
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30989
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
30990
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30991
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
30992
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", Mon, 17 May 1965], ["updated_at", 2019-08-28 11:18:50 UTC], ["id", 1129]]
|
30993
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
30994
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
30995
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
30996
|
+
-------------------------------------------------------------------------------------------------------------------
|
30997
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
30998
|
+
-------------------------------------------------------------------------------------------------------------------
|
30999
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31000
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31001
|
+
---------------------------------------------------------------------
|
31002
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
31003
|
+
---------------------------------------------------------------------
|
31004
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31005
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31006
|
+
-----------------------------------------------------------
|
31007
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
31008
|
+
-----------------------------------------------------------
|
31009
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
31010
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31011
|
+
-----------------------------------------------------------------------------------
|
31012
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
31013
|
+
-----------------------------------------------------------------------------------
|
31014
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31015
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31016
|
+
-----------------------------------------------------------------
|
31017
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
31018
|
+
-----------------------------------------------------------------
|
31019
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31020
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31021
|
+
-------------------------------------------------------------------------
|
31022
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
31023
|
+
-------------------------------------------------------------------------
|
31024
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31025
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", Tue, 13 Aug 1963], ["joined", Mon, 21 Apr 2014], ["created_at", 2019-08-28 11:18:50 UTC], ["updated_at", 2019-08-28 11:18:50 UTC]]
|
31026
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31027
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31028
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
31029
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31030
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31031
|
+
----------------------------------------------------------------------------------------------
|
31032
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
31033
|
+
----------------------------------------------------------------------------------------------
|
31034
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31035
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31036
|
+
-----------------------------------------------------------
|
31037
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
31038
|
+
-----------------------------------------------------------
|
31039
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31040
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31041
|
+
----------------------------------------------------------------------------------------------------------------
|
31042
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
31043
|
+
----------------------------------------------------------------------------------------------------------------
|
31044
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31045
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31046
|
+
-----------------------------------------------------------------------
|
31047
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
31048
|
+
-----------------------------------------------------------------------
|
31049
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31050
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31051
|
+
------------------------------------------------------------------------------------------
|
31052
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
31053
|
+
------------------------------------------------------------------------------------------
|
31054
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31055
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31056
|
+
------------------------------------------------------------------------
|
31057
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
31058
|
+
------------------------------------------------------------------------
|
31059
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31060
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31061
|
+
----------------------------------------------
|
31062
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
31063
|
+
----------------------------------------------
|
31064
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
31065
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31066
|
+
--------------------------------------------
|
31067
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
31068
|
+
--------------------------------------------
|
31069
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK[0m
|
31070
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31071
|
+
-------------------------------------------------------------------------------
|
31072
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
31073
|
+
-------------------------------------------------------------------------------
|
31074
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31075
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31076
|
+
---------------------------------------------------------------------------------
|
31077
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
31078
|
+
---------------------------------------------------------------------------------
|
31079
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31080
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31081
|
+
------------------------------------------------------------------------------------------
|
31082
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
31083
|
+
------------------------------------------------------------------------------------------
|
31084
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31085
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31086
|
+
-----------------------------------------------------------------------------------------
|
31087
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
31088
|
+
-----------------------------------------------------------------------------------------
|
31089
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31090
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31091
|
+
-----------------------------------------------------------------------------------------------
|
31092
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
31093
|
+
-----------------------------------------------------------------------------------------------
|
31094
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31096
|
+
---------------------------------------------------------------------------------
|
31097
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
31098
|
+
---------------------------------------------------------------------------------
|
31099
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31100
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31101
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
31102
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
31103
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
31104
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31105
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31106
|
+
-------------------------------------------------------------------------------------------------------
|
31107
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
31108
|
+
-------------------------------------------------------------------------------------------------------
|
31109
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31110
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31111
|
+
------------------------------------------------------------------
|
31112
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
31113
|
+
------------------------------------------------------------------
|
31114
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31116
|
+
----------------------------------------------------------------------
|
31117
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
31118
|
+
----------------------------------------------------------------------
|
31119
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31121
|
+
----------------------------------------------
|
31122
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
31123
|
+
----------------------------------------------
|
31124
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31125
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31126
|
+
--------------------------------------------------------------------------------
|
31127
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
31128
|
+
--------------------------------------------------------------------------------
|
31129
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31130
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31131
|
+
--------------------------------------------------------------------------
|
31132
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
31133
|
+
--------------------------------------------------------------------------
|
31134
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31135
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31136
|
+
----------------------------------------------------------------------
|
31137
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
31138
|
+
----------------------------------------------------------------------
|
31139
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31140
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31141
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
31142
|
+
-----------------------------------------------------------------------
|
31143
|
+
DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
|
31144
|
+
-----------------------------------------------------------------------
|
31145
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
31146
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31147
|
+
------------------------------------------------------------------------------------------------
|
31148
|
+
DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
|
31149
|
+
------------------------------------------------------------------------------------------------
|
31150
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31151
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.583686"], ["updated_at", "2019-08-28 12:42:36.583686"]]
|
31152
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31153
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31154
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31155
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31156
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31157
|
+
-----------------------------------------------------------------
|
31158
|
+
DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
|
31159
|
+
-----------------------------------------------------------------
|
31160
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31161
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31162
|
+
--------------------------------------------------------------------------
|
31163
|
+
DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
|
31164
|
+
--------------------------------------------------------------------------
|
31165
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31166
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31167
|
+
---------------------------------------------------------------------
|
31168
|
+
DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
|
31169
|
+
---------------------------------------------------------------------
|
31170
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31171
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31172
|
+
-----------------------------------------------------------------------------------------------
|
31173
|
+
DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
|
31174
|
+
-----------------------------------------------------------------------------------------------
|
31175
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31176
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31177
|
+
-----------------------------------------------------------------------
|
31178
|
+
DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
|
31179
|
+
-----------------------------------------------------------------------
|
31180
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31181
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31182
|
+
----------------------------------------------
|
31183
|
+
ReplicantTest: test_joined_date_is_same_as_dob
|
31184
|
+
----------------------------------------------
|
31185
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31186
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31187
|
+
-------------------------------------------------------------------------
|
31188
|
+
DefaultErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
31189
|
+
-------------------------------------------------------------------------
|
31190
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31192
|
+
--------------------------------------------------------------------------------------------------
|
31193
|
+
DefaultErrorClashEmployeeTest: test_invalid_day_adds_invalid_date_message_to_cant_be_blank_message
|
31194
|
+
--------------------------------------------------------------------------------------------------
|
31195
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31196
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31197
|
+
---------------------------------------------------------------------
|
31198
|
+
DefaultErrorClashEmployeeTest: test_presence_error_messages_generated
|
31199
|
+
---------------------------------------------------------------------
|
31200
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31201
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31202
|
+
----------------------------------------------------
|
31203
|
+
EmployeesControllerTest: test_should_create_employee
|
31204
|
+
----------------------------------------------------
|
31205
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31206
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.614828"], ["updated_at", "2019-08-28 12:42:36.614828"]]
|
31207
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31208
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31209
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.616265"], ["updated_at", "2019-08-28 12:42:36.616265"]]
|
31210
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31211
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
31212
|
+
Processing by EmployeesController#create as HTML
|
31213
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
31214
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31215
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.625881"], ["updated_at", "2019-08-28 12:42:36.625881"]]
|
31216
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31217
|
+
Redirected to http://test.host/employees/1134
|
31218
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
31219
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
31220
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
31221
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT $1[0m [["LIMIT", 1]]
|
31222
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31223
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31224
|
+
----------------------------------------------
|
31225
|
+
EmployeesControllerTest: test_should_get_index
|
31226
|
+
----------------------------------------------
|
31227
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31228
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.639005"], ["updated_at", "2019-08-28 12:42:36.639005"]]
|
31229
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31230
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31231
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.640217"], ["updated_at", "2019-08-28 12:42:36.640217"]]
|
31232
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31233
|
+
Processing by EmployeesController#index as HTML
|
31234
|
+
Rendering employees/index.html.erb within layouts/application
|
31235
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees"[0m
|
31236
|
+
Rendered employees/index.html.erb within layouts/application (2.4ms)
|
31237
|
+
Completed 200 OK in 180ms (Views: 178.6ms | ActiveRecord: 0.2ms)
|
31238
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31239
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31240
|
+
--------------------------------------------
|
31241
|
+
EmployeesControllerTest: test_should_get_new
|
31242
|
+
--------------------------------------------
|
31243
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31244
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.823705"], ["updated_at", "2019-08-28 12:42:36.823705"]]
|
31245
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31246
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31247
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.825010"], ["updated_at", "2019-08-28 12:42:36.825010"]]
|
31248
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31249
|
+
Processing by EmployeesController#new as HTML
|
31250
|
+
Rendering employees/new.html.erb within layouts/application
|
31251
|
+
Rendered employees/_form.html.erb (7.3ms)
|
31252
|
+
Rendered employees/new.html.erb within layouts/application (9.1ms)
|
31253
|
+
Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)
|
31254
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31255
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31256
|
+
---------------------------------------------
|
31257
|
+
EmployeesControllerTest: test_should_get_edit
|
31258
|
+
---------------------------------------------
|
31259
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31260
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.839077"], ["updated_at", "2019-08-28 12:42:36.839077"]]
|
31261
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31262
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31263
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.840402"], ["updated_at", "2019-08-28 12:42:36.840402"]]
|
31264
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31265
|
+
Processing by EmployeesController#edit as HTML
|
31266
|
+
Parameters: {"id"=>"1139"}
|
31267
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1139], ["LIMIT", 1]]
|
31268
|
+
Rendering employees/edit.html.erb within layouts/application
|
31269
|
+
Rendered employees/_form.html.erb (3.5ms)
|
31270
|
+
Rendered employees/edit.html.erb within layouts/application (4.1ms)
|
31271
|
+
Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.1ms)
|
31272
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31273
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31274
|
+
--------------------------------------------------------------
|
31275
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
31276
|
+
--------------------------------------------------------------
|
31277
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31278
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.851854"], ["updated_at", "2019-08-28 12:42:36.851854"]]
|
31279
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31280
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31281
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.853140"], ["updated_at", "2019-08-28 12:42:36.853140"]]
|
31282
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31283
|
+
Processing by EmployeesController#edit as HTML
|
31284
|
+
Parameters: {"id"=>"1141"}
|
31285
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1141], ["LIMIT", 1]]
|
31286
|
+
Rendering employees/edit.html.erb within layouts/application
|
31287
|
+
Rendered employees/_form.html.erb (2.3ms)
|
31288
|
+
Rendered employees/edit.html.erb within layouts/application (2.6ms)
|
31289
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
31290
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31291
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31292
|
+
----------------------------------------------------
|
31293
|
+
EmployeesControllerTest: test_should_update_employee
|
31294
|
+
----------------------------------------------------
|
31295
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31296
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.862087"], ["updated_at", "2019-08-28 12:42:36.862087"]]
|
31297
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31298
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31299
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.863322"], ["updated_at", "2019-08-28 12:42:36.863322"]]
|
31300
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31301
|
+
Processing by EmployeesController#update as HTML
|
31302
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"1143"}
|
31303
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1143], ["LIMIT", 1]]
|
31304
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31305
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "joined" = $2, "name" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["dob", "1981-11-01"], ["joined", "2015-10-03"], ["name", "Ioannis Kole"], ["updated_at", "2019-08-28 12:42:36.866491"], ["id", 1143]]
|
31306
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31307
|
+
Redirected to http://test.host/employees/1143
|
31308
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
31309
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1143], ["LIMIT", 1]]
|
31310
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31311
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31312
|
+
--------------------------------------------------
|
31313
|
+
EmployeesControllerTest: test_should_show_employee
|
31314
|
+
--------------------------------------------------
|
31315
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31316
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.870163"], ["updated_at", "2019-08-28 12:42:36.870163"]]
|
31317
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31318
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31319
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.871242"], ["updated_at", "2019-08-28 12:42:36.871242"]]
|
31320
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31321
|
+
Processing by EmployeesController#show as HTML
|
31322
|
+
Parameters: {"id"=>"1145"}
|
31323
|
+
[1m[36mEmployee Load (0.1ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1145], ["LIMIT", 1]]
|
31324
|
+
Rendering employees/show.html.erb within layouts/application
|
31325
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
31326
|
+
Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.1ms)
|
31327
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31328
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31329
|
+
-----------------------------------------------------
|
31330
|
+
EmployeesControllerTest: test_should_destroy_employee
|
31331
|
+
-----------------------------------------------------
|
31332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31333
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.877765"], ["updated_at", "2019-08-28 12:42:36.877765"]]
|
31334
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31335
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31336
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.878814"], ["updated_at", "2019-08-28 12:42:36.878814"]]
|
31337
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31338
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
31339
|
+
Processing by EmployeesController#destroy as HTML
|
31340
|
+
Parameters: {"id"=>"1147"}
|
31341
|
+
[1m[36mEmployee Load (0.2ms)[0m [1m[34mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT $2[0m [["id", 1147], ["LIMIT", 1]]
|
31342
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31343
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 1147]]
|
31344
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31345
|
+
Redirected to http://test.host/employees
|
31346
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
31347
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "employees"[0m
|
31348
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
31349
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31350
|
+
------------------------------------------------------------------------------------------
|
31351
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
31352
|
+
------------------------------------------------------------------------------------------
|
31353
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31354
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31355
|
+
---------------------------------------------------------------------------------
|
31356
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
31357
|
+
---------------------------------------------------------------------------------
|
31358
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31359
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31360
|
+
-----------------------------------------------------------------------------------------
|
31361
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
31362
|
+
-----------------------------------------------------------------------------------------
|
31363
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31364
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31365
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
31366
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
31367
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
31368
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31369
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31370
|
+
-----------------------------------------------------------------------------------------------
|
31371
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
31372
|
+
-----------------------------------------------------------------------------------------------
|
31373
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31374
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31375
|
+
---------------------------------------------------------------------------------
|
31376
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
31377
|
+
---------------------------------------------------------------------------------
|
31378
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31379
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31380
|
+
-------------------------------------------------------------------------------
|
31381
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
31382
|
+
-------------------------------------------------------------------------------
|
31383
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31384
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31385
|
+
----------------------------------------------
|
31386
|
+
GovUkDateFieldsTest: test_date_fields_no_error
|
31387
|
+
----------------------------------------------
|
31388
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31389
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31390
|
+
----------------------------------------------------------------
|
31391
|
+
GovUkDateFieldsTest: test_date_fields_with_custom_i18n_attribute
|
31392
|
+
----------------------------------------------------------------
|
31393
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31394
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31395
|
+
-------------------------------------------
|
31396
|
+
GovUkDateFieldsTest: test_date_fields_error
|
31397
|
+
-------------------------------------------
|
31398
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31399
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31400
|
+
------------------------------------------------
|
31401
|
+
GovUkDateFieldsTest: test_date_fields_no_heading
|
31402
|
+
------------------------------------------------
|
31403
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31404
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31405
|
+
------------------------------------------------------------------------------------------
|
31406
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
31407
|
+
------------------------------------------------------------------------------------------
|
31408
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31409
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31410
|
+
-----------------------------------------------------------
|
31411
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
31412
|
+
-----------------------------------------------------------
|
31413
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31414
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31415
|
+
-----------------------------------------------------------
|
31416
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
31417
|
+
-----------------------------------------------------------
|
31418
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31419
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31420
|
+
-------------------------------------------
|
31421
|
+
EmployeeTest: test_invalid_day_raises_error
|
31422
|
+
-------------------------------------------
|
31423
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31424
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31425
|
+
----------------------------------------------
|
31426
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
31427
|
+
----------------------------------------------
|
31428
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31429
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31430
|
+
----------------------------------------------------------------------------------------------
|
31431
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
31432
|
+
----------------------------------------------------------------------------------------------
|
31433
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31434
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31435
|
+
-------------------------------------------------------------------------
|
31436
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
31437
|
+
-------------------------------------------------------------------------
|
31438
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31439
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.904289"], ["updated_at", "2019-08-28 12:42:36.904289"]]
|
31440
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31441
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31442
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
31443
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31444
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31445
|
+
--------------------------------------------------------------------------
|
31446
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
31447
|
+
--------------------------------------------------------------------------
|
31448
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31449
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31450
|
+
----------------------------------------------------------------------------------------------------------------
|
31451
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
31452
|
+
----------------------------------------------------------------------------------------------------------------
|
31453
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31454
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31455
|
+
------------------------------------------------------------------------
|
31456
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
31457
|
+
------------------------------------------------------------------------
|
31458
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31459
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31460
|
+
---------------------------------------------------------------------------------------------------------
|
31461
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
31462
|
+
---------------------------------------------------------------------------------------------------------
|
31463
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31464
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31465
|
+
-----------------------------------------------------------------------------------
|
31466
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
31467
|
+
-----------------------------------------------------------------------------------
|
31468
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31469
|
+
[1m[35m (0.0ms)[0m [1m[35mBEGIN[0m
|
31470
|
+
---------------------------------------------------------------------
|
31471
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
31472
|
+
---------------------------------------------------------------------
|
31473
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31474
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31475
|
+
-----------------------------------------------------------------------
|
31476
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
31477
|
+
-----------------------------------------------------------------------
|
31478
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31479
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31480
|
+
-----------------------------------------------------------------
|
31481
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
31482
|
+
-----------------------------------------------------------------
|
31483
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31484
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31485
|
+
-------------------------------------------------------------------------------------------------------------------
|
31486
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
31487
|
+
-------------------------------------------------------------------------------------------------------------------
|
31488
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31489
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31490
|
+
--------------------------------------------
|
31491
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
31492
|
+
--------------------------------------------
|
31493
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31494
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31495
|
+
---------------------------------------------------------------------
|
31496
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
31497
|
+
---------------------------------------------------------------------
|
31498
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31499
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT 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", "2019-08-28 12:42:36.913360"], ["updated_at", "2019-08-28 12:42:36.913360"]]
|
31500
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31501
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
31502
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2019-08-28 12:42:36.914690"], ["id", 1150]]
|
31503
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
31504
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31505
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31506
|
+
--------------------------------------------------------------------------
|
31507
|
+
OverrideErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
31508
|
+
--------------------------------------------------------------------------
|
31509
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31510
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31511
|
+
--------------------------------------------------------------------------------
|
31512
|
+
OverrideErrorClashEmployeeTest: test_invalid_day_overrides_cant_be_blank_message
|
31513
|
+
--------------------------------------------------------------------------------
|
31514
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31515
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31516
|
+
----------------------------------------------------------------------
|
31517
|
+
OverrideErrorClashEmployeeTest: test_presence_error_messages_generated
|
31518
|
+
----------------------------------------------------------------------
|
31519
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31520
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31521
|
+
------------------------------------------------------------------
|
31522
|
+
OmitErrorClashEmployeeTest: test_presence_error_messages_generated
|
31523
|
+
------------------------------------------------------------------
|
31524
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31525
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31526
|
+
----------------------------------------------------------------------
|
31527
|
+
OmitErrorClashEmployeeTest: test_valid_dates_generate_no_errors_at_all
|
31528
|
+
----------------------------------------------------------------------
|
31529
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
31530
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
31531
|
+
-------------------------------------------------------------------------------------------------------
|
31532
|
+
OmitErrorClashEmployeeTest: test_invalid_day_does_not_add_invalid_date_message_to_cant_be_blank_message
|
31533
|
+
-------------------------------------------------------------------------------------------------------
|
31534
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|