gov_uk_date_fields 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gov_uk_date_fields/form_fields.rb +12 -0
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/app/models/employee.rb +0 -1
- data/test/dummy/log/test.log +2030 -0
- data/test/form_fields_test.rb +49 -40
- metadata +1 -1
data/test/dummy/log/test.log
CHANGED
@@ -7784,3 +7784,2033 @@ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_dat
|
|
7784
7784
|
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
7785
7785
|
---------------------------------------------------------------------------------
|
7786
7786
|
[1m[35m (0.1ms)[0m ROLLBACK
|
7787
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7788
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7789
|
+
-------------------------------------------------------------
|
7790
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7791
|
+
-------------------------------------------------------------
|
7792
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7793
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7794
|
+
-------------------------------------
|
7795
|
+
GovUkDateFieldsTest: test_squash_html
|
7796
|
+
-------------------------------------
|
7797
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7798
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7799
|
+
---------------------------------------------------------------
|
7800
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
7801
|
+
---------------------------------------------------------------
|
7802
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7803
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7804
|
+
-------------------------------------------------------
|
7805
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7806
|
+
-------------------------------------------------------
|
7807
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7808
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7809
|
+
---------------------------------------------------------------
|
7810
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7811
|
+
---------------------------------------------------------------
|
7812
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7813
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7814
|
+
------------------------------------------
|
7815
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7816
|
+
------------------------------------------
|
7817
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7818
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7819
|
+
--------------------------------------------------------
|
7820
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7821
|
+
--------------------------------------------------------
|
7822
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7823
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7824
|
+
-----------------------------------------------------------
|
7825
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7826
|
+
-----------------------------------------------------------
|
7827
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7828
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7829
|
+
---------------------------------------------------------------------
|
7830
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
7831
|
+
---------------------------------------------------------------------
|
7832
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7833
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:28:11.614253"], ["updated_at", "2016-04-04 15:28:11.614253"]]
|
7834
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7835
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7836
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:28:11.619037"], ["id", 381]]
|
7837
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7838
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7839
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7840
|
+
-----------------------------------------------------------------------------------
|
7841
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
7842
|
+
-----------------------------------------------------------------------------------
|
7843
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7844
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7845
|
+
-------------------------------------------------------------------------------------------------------------------
|
7846
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
7847
|
+
-------------------------------------------------------------------------------------------------------------------
|
7848
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7849
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7850
|
+
-------------------------------------------
|
7851
|
+
EmployeeTest: test_invalid_day_raises_error
|
7852
|
+
-------------------------------------------
|
7853
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7854
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7855
|
+
--------------------------------------------------------------------------
|
7856
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
7857
|
+
--------------------------------------------------------------------------
|
7858
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7859
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7860
|
+
-----------------------------------------------------------------
|
7861
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
7862
|
+
-----------------------------------------------------------------
|
7863
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7864
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7865
|
+
----------------------------------------------------------------------------------------------
|
7866
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
7867
|
+
----------------------------------------------------------------------------------------------
|
7868
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7869
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7870
|
+
----------------------------------------------------------------------------------------------------------------
|
7871
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
7872
|
+
----------------------------------------------------------------------------------------------------------------
|
7873
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7874
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7875
|
+
--------------------------------------------
|
7876
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
7877
|
+
--------------------------------------------
|
7878
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
7879
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7880
|
+
------------------------------------------------------------------------------------------
|
7881
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
7882
|
+
------------------------------------------------------------------------------------------
|
7883
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7884
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7885
|
+
-----------------------------------------------------------
|
7886
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
7887
|
+
-----------------------------------------------------------
|
7888
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7889
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7890
|
+
---------------------------------------------------------------------
|
7891
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
7892
|
+
---------------------------------------------------------------------
|
7893
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7894
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7895
|
+
----------------------------------------------
|
7896
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
7897
|
+
----------------------------------------------
|
7898
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7899
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7900
|
+
---------------------------------------------------------------------------------------------------------
|
7901
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
7902
|
+
---------------------------------------------------------------------------------------------------------
|
7903
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7904
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7905
|
+
------------------------------------------------------------------------
|
7906
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
7907
|
+
------------------------------------------------------------------------
|
7908
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7909
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7910
|
+
-----------------------------------------------------------
|
7911
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
7912
|
+
-----------------------------------------------------------
|
7913
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7914
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7915
|
+
-----------------------------------------------------------------------
|
7916
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
7917
|
+
-----------------------------------------------------------------------
|
7918
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7919
|
+
[1m[35m (0.0ms)[0m BEGIN
|
7920
|
+
-------------------------------------------------------------------------
|
7921
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
7922
|
+
-------------------------------------------------------------------------
|
7923
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7924
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:28:11.637220"], ["updated_at", "2016-04-04 15:28:11.637220"]]
|
7925
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7927
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
7928
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7929
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7930
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
7931
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
7932
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
7933
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7934
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7935
|
+
---------------------------------------------------------------------------------
|
7936
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
7937
|
+
---------------------------------------------------------------------------------
|
7938
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7939
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7940
|
+
-----------------------------------------------------------------------------------------
|
7941
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
7942
|
+
-----------------------------------------------------------------------------------------
|
7943
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7944
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
7945
|
+
---------------------------------------------------------------------------------
|
7946
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
7947
|
+
---------------------------------------------------------------------------------
|
7948
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7949
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7950
|
+
-------------------------------------------------------------------------------
|
7951
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
7952
|
+
-------------------------------------------------------------------------------
|
7953
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7954
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7955
|
+
------------------------------------------------------------------------------------------
|
7956
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
7957
|
+
------------------------------------------------------------------------------------------
|
7958
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7959
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
7960
|
+
-----------------------------------------------------------------------------------------------
|
7961
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
7962
|
+
-----------------------------------------------------------------------------------------------
|
7963
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7964
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7965
|
+
----------------------------------------------
|
7966
|
+
EmployeesControllerTest: test_should_get_index
|
7967
|
+
----------------------------------------------
|
7968
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7969
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.673346"], ["updated_at", "2016-04-04 15:28:11.673346"]]
|
7970
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7971
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7972
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.674718"], ["updated_at", "2016-04-04 15:28:11.674718"]]
|
7973
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7974
|
+
Processing by EmployeesController#index as HTML
|
7975
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
7976
|
+
Rendered employees/index.html.erb within layouts/application (2.9ms)
|
7977
|
+
Completed 200 OK in 125ms (Views: 124.3ms | ActiveRecord: 0.2ms)
|
7978
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7979
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7980
|
+
--------------------------------------------------------------
|
7981
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
7982
|
+
--------------------------------------------------------------
|
7983
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7984
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.803767"], ["updated_at", "2016-04-04 15:28:11.803767"]]
|
7985
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7986
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7987
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.805087"], ["updated_at", "2016-04-04 15:28:11.805087"]]
|
7988
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7989
|
+
Processing by EmployeesController#edit as HTML
|
7990
|
+
Parameters: {"id"=>"385"}
|
7991
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 385]]
|
7992
|
+
Rendered employees/_form.html.erb (7.9ms)
|
7993
|
+
Rendered employees/edit.html.erb within layouts/application (12.0ms)
|
7994
|
+
Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.2ms)
|
7995
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7996
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7997
|
+
--------------------------------------------
|
7998
|
+
EmployeesControllerTest: test_should_get_new
|
7999
|
+
--------------------------------------------
|
8000
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8001
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.826139"], ["updated_at", "2016-04-04 15:28:11.826139"]]
|
8002
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8003
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8004
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.827412"], ["updated_at", "2016-04-04 15:28:11.827412"]]
|
8005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8006
|
+
Processing by EmployeesController#new as HTML
|
8007
|
+
Rendered employees/_form.html.erb (1.5ms)
|
8008
|
+
Rendered employees/new.html.erb within layouts/application (1.9ms)
|
8009
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
8010
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8011
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8012
|
+
----------------------------------------------------
|
8013
|
+
EmployeesControllerTest: test_should_update_employee
|
8014
|
+
----------------------------------------------------
|
8015
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8016
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.833857"], ["updated_at", "2016-04-04 15:28:11.833857"]]
|
8017
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8018
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8019
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.835022"], ["updated_at", "2016-04-04 15:28:11.835022"]]
|
8020
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8021
|
+
Processing by EmployeesController#update as HTML
|
8022
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"389"}
|
8023
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]
|
8024
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8025
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:28:11.838036"], ["id", 389]]
|
8026
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8027
|
+
Redirected to http://test.host/employees/389
|
8028
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
8029
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 389]]
|
8030
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8031
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8032
|
+
---------------------------------------------
|
8033
|
+
EmployeesControllerTest: test_should_get_edit
|
8034
|
+
---------------------------------------------
|
8035
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8036
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.841750"], ["updated_at", "2016-04-04 15:28:11.841750"]]
|
8037
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8038
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8039
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.842941"], ["updated_at", "2016-04-04 15:28:11.842941"]]
|
8040
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8041
|
+
Processing by EmployeesController#edit as HTML
|
8042
|
+
Parameters: {"id"=>"391"}
|
8043
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 391]]
|
8044
|
+
Rendered employees/_form.html.erb (1.5ms)
|
8045
|
+
Rendered employees/edit.html.erb within layouts/application (1.7ms)
|
8046
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
8047
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8048
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8049
|
+
----------------------------------------------------
|
8050
|
+
EmployeesControllerTest: test_should_create_employee
|
8051
|
+
----------------------------------------------------
|
8052
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8053
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.849806"], ["updated_at", "2016-04-04 15:28:11.849806"]]
|
8054
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8056
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.850983"], ["updated_at", "2016-04-04 15:28:11.850983"]]
|
8057
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8058
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
8059
|
+
Processing by EmployeesController#create as HTML
|
8060
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
8061
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8062
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:28:11.854126"], ["updated_at", "2016-04-04 15:28:11.854126"]]
|
8063
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8064
|
+
Redirected to http://test.host/employees/395
|
8065
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
8066
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
8067
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8068
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
8069
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8070
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8071
|
+
--------------------------------------------------
|
8072
|
+
EmployeesControllerTest: test_should_show_employee
|
8073
|
+
--------------------------------------------------
|
8074
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8075
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.858102"], ["updated_at", "2016-04-04 15:28:11.858102"]]
|
8076
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8077
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8078
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.859103"], ["updated_at", "2016-04-04 15:28:11.859103"]]
|
8079
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8080
|
+
Processing by EmployeesController#show as HTML
|
8081
|
+
Parameters: {"id"=>"396"}
|
8082
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 396]]
|
8083
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
8084
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
8085
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8086
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8087
|
+
-----------------------------------------------------
|
8088
|
+
EmployeesControllerTest: test_should_destroy_employee
|
8089
|
+
-----------------------------------------------------
|
8090
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8091
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:28:11.864558"], ["updated_at", "2016-04-04 15:28:11.864558"]]
|
8092
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8093
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8094
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:28:11.865737"], ["updated_at", "2016-04-04 15:28:11.865737"]]
|
8095
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8096
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
8097
|
+
Processing by EmployeesController#destroy as HTML
|
8098
|
+
Parameters: {"id"=>"398"}
|
8099
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 398]]
|
8100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8101
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 398]]
|
8102
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8103
|
+
Redirected to http://test.host/employees
|
8104
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
|
8105
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8106
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
8107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8108
|
+
[1m[35m (0.2ms)[0m BEGIN
|
8109
|
+
---------------------------------------------
|
8110
|
+
EmployeesControllerTest: test_should_get_edit
|
8111
|
+
---------------------------------------------
|
8112
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
8113
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.053258"], ["updated_at", "2016-04-04 15:33:47.053258"]]
|
8114
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8115
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8116
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.056327"], ["updated_at", "2016-04-04 15:33:47.056327"]]
|
8117
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8118
|
+
Processing by EmployeesController#edit as HTML
|
8119
|
+
Parameters: {"id"=>"400"}
|
8120
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 400]]
|
8121
|
+
Rendered employees/_form.html.erb (8.0ms)
|
8122
|
+
Rendered employees/edit.html.erb within layouts/application (10.7ms)
|
8123
|
+
Completed 200 OK in 140ms (Views: 134.8ms | ActiveRecord: 0.2ms)
|
8124
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
8125
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8126
|
+
--------------------------------------------------------------
|
8127
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
8128
|
+
--------------------------------------------------------------
|
8129
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8130
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.200936"], ["updated_at", "2016-04-04 15:33:47.200936"]]
|
8131
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8132
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8133
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.202386"], ["updated_at", "2016-04-04 15:33:47.202386"]]
|
8134
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8135
|
+
Processing by EmployeesController#edit as HTML
|
8136
|
+
Parameters: {"id"=>"402"}
|
8137
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 402]]
|
8138
|
+
Rendered employees/_form.html.erb (1.6ms)
|
8139
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
8140
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
8141
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
8142
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8143
|
+
-----------------------------------------------------
|
8144
|
+
EmployeesControllerTest: test_should_destroy_employee
|
8145
|
+
-----------------------------------------------------
|
8146
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8147
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.211302"], ["updated_at", "2016-04-04 15:33:47.211302"]]
|
8148
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8149
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8150
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.212618"], ["updated_at", "2016-04-04 15:33:47.212618"]]
|
8151
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8152
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8153
|
+
Processing by EmployeesController#destroy as HTML
|
8154
|
+
Parameters: {"id"=>"404"}
|
8155
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 404]]
|
8156
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8157
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 404]]
|
8158
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8159
|
+
Redirected to http://test.host/employees
|
8160
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
8161
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
8162
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8163
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8164
|
+
----------------------------------------------------
|
8165
|
+
EmployeesControllerTest: test_should_create_employee
|
8166
|
+
----------------------------------------------------
|
8167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8168
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.219359"], ["updated_at", "2016-04-04 15:33:47.219359"]]
|
8169
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8171
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.220575"], ["updated_at", "2016-04-04 15:33:47.220575"]]
|
8172
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8173
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8174
|
+
Processing by EmployeesController#create as HTML
|
8175
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
8176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8177
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:33:47.223733"], ["updated_at", "2016-04-04 15:33:47.223733"]]
|
8178
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8179
|
+
Redirected to http://test.host/employees/408
|
8180
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
8181
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8182
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
8183
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
8184
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8185
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8186
|
+
--------------------------------------------------
|
8187
|
+
EmployeesControllerTest: test_should_show_employee
|
8188
|
+
--------------------------------------------------
|
8189
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8190
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.227681"], ["updated_at", "2016-04-04 15:33:47.227681"]]
|
8191
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8192
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8193
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.228787"], ["updated_at", "2016-04-04 15:33:47.228787"]]
|
8194
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8195
|
+
Processing by EmployeesController#show as HTML
|
8196
|
+
Parameters: {"id"=>"409"}
|
8197
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 409]]
|
8198
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
8199
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
8200
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8201
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8202
|
+
----------------------------------------------
|
8203
|
+
EmployeesControllerTest: test_should_get_index
|
8204
|
+
----------------------------------------------
|
8205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8206
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.234249"], ["updated_at", "2016-04-04 15:33:47.234249"]]
|
8207
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8208
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8209
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.235571"], ["updated_at", "2016-04-04 15:33:47.235571"]]
|
8210
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8211
|
+
Processing by EmployeesController#index as HTML
|
8212
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
8213
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
8214
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.2ms)
|
8215
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8217
|
+
--------------------------------------------
|
8218
|
+
EmployeesControllerTest: test_should_get_new
|
8219
|
+
--------------------------------------------
|
8220
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8221
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.242788"], ["updated_at", "2016-04-04 15:33:47.242788"]]
|
8222
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8223
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8224
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.243980"], ["updated_at", "2016-04-04 15:33:47.243980"]]
|
8225
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8226
|
+
Processing by EmployeesController#new as HTML
|
8227
|
+
Rendered employees/_form.html.erb (1.5ms)
|
8228
|
+
Rendered employees/new.html.erb within layouts/application (2.0ms)
|
8229
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
|
8230
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8231
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8232
|
+
----------------------------------------------------
|
8233
|
+
EmployeesControllerTest: test_should_update_employee
|
8234
|
+
----------------------------------------------------
|
8235
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8236
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:33:47.249951"], ["updated_at", "2016-04-04 15:33:47.249951"]]
|
8237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8238
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8239
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:33:47.250997"], ["updated_at", "2016-04-04 15:33:47.250997"]]
|
8240
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8241
|
+
Processing by EmployeesController#update as HTML
|
8242
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"415"}
|
8243
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]
|
8244
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8245
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:33:47.253956"], ["id", 415]]
|
8246
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8247
|
+
Redirected to http://test.host/employees/415
|
8248
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
8249
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 415]]
|
8250
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8251
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8252
|
+
---------------------------------------------------------------
|
8253
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
8254
|
+
---------------------------------------------------------------
|
8255
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8256
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8257
|
+
---------------------------------------------------------------------------------
|
8258
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
8259
|
+
---------------------------------------------------------------------------------
|
8260
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8261
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8262
|
+
-----------------------------------------------------------------------------------------
|
8263
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
8264
|
+
-----------------------------------------------------------------------------------------
|
8265
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8266
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8267
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8268
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
8269
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8270
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8271
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8272
|
+
-----------------------------------------------------------------------------------------------
|
8273
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
8274
|
+
-----------------------------------------------------------------------------------------------
|
8275
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8276
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8277
|
+
-------------------------------------------------------------------------------
|
8278
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
8279
|
+
-------------------------------------------------------------------------------
|
8280
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8281
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8282
|
+
---------------------------------------------------------------------------------
|
8283
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
8284
|
+
---------------------------------------------------------------------------------
|
8285
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8286
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8287
|
+
------------------------------------------------------------------------------------------
|
8288
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
8289
|
+
------------------------------------------------------------------------------------------
|
8290
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8291
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8292
|
+
----------------------------------------------
|
8293
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
8294
|
+
----------------------------------------------
|
8295
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8296
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8297
|
+
-----------------------------------------------------------------------------------
|
8298
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
8299
|
+
-----------------------------------------------------------------------------------
|
8300
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8301
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8302
|
+
------------------------------------------------------------------------------------------
|
8303
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
8304
|
+
------------------------------------------------------------------------------------------
|
8305
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8306
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8307
|
+
------------------------------------------------------------------------
|
8308
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
8309
|
+
------------------------------------------------------------------------
|
8310
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8311
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8312
|
+
----------------------------------------------------------------------------------------------
|
8313
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
8314
|
+
----------------------------------------------------------------------------------------------
|
8315
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8316
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8317
|
+
-------------------------------------------------------------------------------------------------------------------
|
8318
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
8319
|
+
-------------------------------------------------------------------------------------------------------------------
|
8320
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8321
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8322
|
+
---------------------------------------------------------------------------------------------------------
|
8323
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
8324
|
+
---------------------------------------------------------------------------------------------------------
|
8325
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8326
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8327
|
+
---------------------------------------------------------------------
|
8328
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
8329
|
+
---------------------------------------------------------------------
|
8330
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8331
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:33:47.275350"], ["updated_at", "2016-04-04 15:33:47.275350"]]
|
8332
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8333
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8334
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:33:47.277093"], ["id", 417]]
|
8335
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8336
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8337
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8338
|
+
--------------------------------------------------------------------------
|
8339
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
8340
|
+
--------------------------------------------------------------------------
|
8341
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8342
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8343
|
+
-------------------------------------------------------------------------
|
8344
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
8345
|
+
-------------------------------------------------------------------------
|
8346
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8347
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:33:47.280716"], ["updated_at", "2016-04-04 15:33:47.280716"]]
|
8348
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8349
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8350
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
8351
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8352
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8353
|
+
-------------------------------------------
|
8354
|
+
EmployeeTest: test_invalid_day_raises_error
|
8355
|
+
-------------------------------------------
|
8356
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8357
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8358
|
+
----------------------------------------------------------------------------------------------------------------
|
8359
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
8360
|
+
----------------------------------------------------------------------------------------------------------------
|
8361
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8362
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8363
|
+
-----------------------------------------------------------
|
8364
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
8365
|
+
-----------------------------------------------------------
|
8366
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8367
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8368
|
+
-----------------------------------------------------------------------
|
8369
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
8370
|
+
-----------------------------------------------------------------------
|
8371
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8372
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8373
|
+
--------------------------------------------
|
8374
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
8375
|
+
--------------------------------------------
|
8376
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8377
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8378
|
+
-----------------------------------------------------------------
|
8379
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
8380
|
+
-----------------------------------------------------------------
|
8381
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8382
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8383
|
+
---------------------------------------------------------------------
|
8384
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
8385
|
+
---------------------------------------------------------------------
|
8386
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8387
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8388
|
+
-----------------------------------------------------------
|
8389
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
8390
|
+
-----------------------------------------------------------
|
8391
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8392
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8393
|
+
[1m[35m (0.2ms)[0m BEGIN
|
8394
|
+
----------------------------------------------------
|
8395
|
+
EmployeesControllerTest: test_should_create_employee
|
8396
|
+
----------------------------------------------------
|
8397
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8398
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:38.925814"], ["updated_at", "2016-04-04 15:38:38.925814"]]
|
8399
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8400
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8401
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:38.928834"], ["updated_at", "2016-04-04 15:38:38.928834"]]
|
8402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8403
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8404
|
+
Processing by EmployeesController#create as HTML
|
8405
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
8406
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8407
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:38:38.933541"], ["updated_at", "2016-04-04 15:38:38.933541"]]
|
8408
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8409
|
+
Redirected to http://test.host/employees/421
|
8410
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
8411
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8412
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
8413
|
+
[1m[36mEmployee Load (1.0ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
8414
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8415
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8416
|
+
--------------------------------------------------------------
|
8417
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
8418
|
+
--------------------------------------------------------------
|
8419
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8420
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:38.940211"], ["updated_at", "2016-04-04 15:38:38.940211"]]
|
8421
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8422
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8423
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:38.941287"], ["updated_at", "2016-04-04 15:38:38.941287"]]
|
8424
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8425
|
+
Processing by EmployeesController#edit as HTML
|
8426
|
+
Parameters: {"id"=>"422"}
|
8427
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 422]]
|
8428
|
+
Rendered employees/_form.html.erb (7.6ms)
|
8429
|
+
Rendered employees/edit.html.erb within layouts/application (10.3ms)
|
8430
|
+
Completed 200 OK in 129ms (Views: 126.1ms | ActiveRecord: 0.1ms)
|
8431
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
8432
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8433
|
+
----------------------------------------------
|
8434
|
+
EmployeesControllerTest: test_should_get_index
|
8435
|
+
----------------------------------------------
|
8436
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8437
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.074831"], ["updated_at", "2016-04-04 15:38:39.074831"]]
|
8438
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8439
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8440
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.076146"], ["updated_at", "2016-04-04 15:38:39.076146"]]
|
8441
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8442
|
+
Processing by EmployeesController#index as HTML
|
8443
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
8444
|
+
Rendered employees/index.html.erb within layouts/application (1.6ms)
|
8445
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
8446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8448
|
+
--------------------------------------------
|
8449
|
+
EmployeesControllerTest: test_should_get_new
|
8450
|
+
--------------------------------------------
|
8451
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8452
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.082650"], ["updated_at", "2016-04-04 15:38:39.082650"]]
|
8453
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8454
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8455
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.083936"], ["updated_at", "2016-04-04 15:38:39.083936"]]
|
8456
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8457
|
+
Processing by EmployeesController#new as HTML
|
8458
|
+
Rendered employees/_form.html.erb (1.6ms)
|
8459
|
+
Rendered employees/new.html.erb within layouts/application (2.2ms)
|
8460
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
8461
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8462
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8463
|
+
---------------------------------------------
|
8464
|
+
EmployeesControllerTest: test_should_get_edit
|
8465
|
+
---------------------------------------------
|
8466
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8467
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.090886"], ["updated_at", "2016-04-04 15:38:39.090886"]]
|
8468
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8469
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8470
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.092116"], ["updated_at", "2016-04-04 15:38:39.092116"]]
|
8471
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8472
|
+
Processing by EmployeesController#edit as HTML
|
8473
|
+
Parameters: {"id"=>"428"}
|
8474
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 428]]
|
8475
|
+
Rendered employees/_form.html.erb (1.4ms)
|
8476
|
+
Rendered employees/edit.html.erb within layouts/application (1.7ms)
|
8477
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
8478
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8479
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8480
|
+
----------------------------------------------------
|
8481
|
+
EmployeesControllerTest: test_should_update_employee
|
8482
|
+
----------------------------------------------------
|
8483
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8484
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.098173"], ["updated_at", "2016-04-04 15:38:39.098173"]]
|
8485
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8486
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8487
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.099345"], ["updated_at", "2016-04-04 15:38:39.099345"]]
|
8488
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8489
|
+
Processing by EmployeesController#update as HTML
|
8490
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"430"}
|
8491
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 430]]
|
8492
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8493
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:38:39.102411"], ["id", 430]]
|
8494
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8495
|
+
Redirected to http://test.host/employees/430
|
8496
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
8497
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 430]]
|
8498
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8499
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8500
|
+
-----------------------------------------------------
|
8501
|
+
EmployeesControllerTest: test_should_destroy_employee
|
8502
|
+
-----------------------------------------------------
|
8503
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8504
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.106213"], ["updated_at", "2016-04-04 15:38:39.106213"]]
|
8505
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8506
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8507
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.107279"], ["updated_at", "2016-04-04 15:38:39.107279"]]
|
8508
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8509
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
8510
|
+
Processing by EmployeesController#destroy as HTML
|
8511
|
+
Parameters: {"id"=>"432"}
|
8512
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 432]]
|
8513
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8514
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 432]]
|
8515
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8516
|
+
Redirected to http://test.host/employees
|
8517
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
8518
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8519
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8520
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8521
|
+
--------------------------------------------------
|
8522
|
+
EmployeesControllerTest: test_should_show_employee
|
8523
|
+
--------------------------------------------------
|
8524
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8525
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:38:39.113007"], ["updated_at", "2016-04-04 15:38:39.113007"]]
|
8526
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8527
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8528
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:38:39.114255"], ["updated_at", "2016-04-04 15:38:39.114255"]]
|
8529
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8530
|
+
Processing by EmployeesController#show as HTML
|
8531
|
+
Parameters: {"id"=>"434"}
|
8532
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 434]]
|
8533
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
8534
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
8535
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8536
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8537
|
+
-------------------------------------------------------------------------------
|
8538
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
8539
|
+
-------------------------------------------------------------------------------
|
8540
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8541
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8542
|
+
------------------------------------------------------------------------------------------
|
8543
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
8544
|
+
------------------------------------------------------------------------------------------
|
8545
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8546
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8547
|
+
---------------------------------------------------------------------------------
|
8548
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
8549
|
+
---------------------------------------------------------------------------------
|
8550
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8551
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8552
|
+
-----------------------------------------------------------------------------------------
|
8553
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
8554
|
+
-----------------------------------------------------------------------------------------
|
8555
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8556
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8557
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8558
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
8559
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8560
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8561
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8562
|
+
-----------------------------------------------------------------------------------------------
|
8563
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
8564
|
+
-----------------------------------------------------------------------------------------------
|
8565
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8566
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8567
|
+
---------------------------------------------------------------------------------
|
8568
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
8569
|
+
---------------------------------------------------------------------------------
|
8570
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8571
|
+
[1m[35m (0.0ms)[0m BEGIN
|
8572
|
+
---------------------------------------------------------------
|
8573
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
8574
|
+
---------------------------------------------------------------
|
8575
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8576
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8577
|
+
-------------------------------------------
|
8578
|
+
EmployeeTest: test_invalid_day_raises_error
|
8579
|
+
-------------------------------------------
|
8580
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8581
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8582
|
+
------------------------------------------------------------------------------------------
|
8583
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
8584
|
+
------------------------------------------------------------------------------------------
|
8585
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8586
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8587
|
+
-------------------------------------------------------------------------
|
8588
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
8589
|
+
-------------------------------------------------------------------------
|
8590
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8591
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:38:39.132291"], ["updated_at", "2016-04-04 15:38:39.132291"]]
|
8592
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8593
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8594
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
8595
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8596
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8597
|
+
----------------------------------------------------------------------------------------------
|
8598
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
8599
|
+
----------------------------------------------------------------------------------------------
|
8600
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8601
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8602
|
+
--------------------------------------------
|
8603
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
8604
|
+
--------------------------------------------
|
8605
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8606
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8607
|
+
------------------------------------------------------------------------
|
8608
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
8609
|
+
------------------------------------------------------------------------
|
8610
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8611
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8612
|
+
----------------------------------------------
|
8613
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
8614
|
+
----------------------------------------------
|
8615
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8616
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8617
|
+
-----------------------------------------------------------------
|
8618
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
8619
|
+
-----------------------------------------------------------------
|
8620
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8621
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8622
|
+
---------------------------------------------------------------------
|
8623
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
8624
|
+
---------------------------------------------------------------------
|
8625
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8626
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:38:39.138427"], ["updated_at", "2016-04-04 15:38:39.138427"]]
|
8627
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8628
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8629
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:38:39.139525"], ["id", 437]]
|
8630
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8631
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8632
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8633
|
+
-------------------------------------------------------------------------------------------------------------------
|
8634
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
8635
|
+
-------------------------------------------------------------------------------------------------------------------
|
8636
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8637
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8638
|
+
----------------------------------------------------------------------------------------------------------------
|
8639
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
8640
|
+
----------------------------------------------------------------------------------------------------------------
|
8641
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8642
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8643
|
+
-----------------------------------------------------------------------
|
8644
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
8645
|
+
-----------------------------------------------------------------------
|
8646
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8647
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
8648
|
+
-----------------------------------------------------------
|
8649
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
8650
|
+
-----------------------------------------------------------
|
8651
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8652
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8653
|
+
---------------------------------------------------------------------------------------------------------
|
8654
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
8655
|
+
---------------------------------------------------------------------------------------------------------
|
8656
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8657
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
8658
|
+
-----------------------------------------------------------------------------------
|
8659
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
8660
|
+
-----------------------------------------------------------------------------------
|
8661
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8662
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8663
|
+
--------------------------------------------------------------------------
|
8664
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
8665
|
+
--------------------------------------------------------------------------
|
8666
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8667
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8668
|
+
---------------------------------------------------------------------
|
8669
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
8670
|
+
---------------------------------------------------------------------
|
8671
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8672
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8673
|
+
-----------------------------------------------------------
|
8674
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
8675
|
+
-----------------------------------------------------------
|
8676
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8677
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8678
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8679
|
+
---------------------------------------------------------------
|
8680
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
8681
|
+
---------------------------------------------------------------
|
8682
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8683
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8684
|
+
-------------------------------------------------------------------------------
|
8685
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
8686
|
+
-------------------------------------------------------------------------------
|
8687
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8688
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8689
|
+
-----------------------------------------------------------------------------------------------
|
8690
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
8691
|
+
-----------------------------------------------------------------------------------------------
|
8692
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8693
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8694
|
+
-----------------------------------------------------------------------------------------
|
8695
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
8696
|
+
-----------------------------------------------------------------------------------------
|
8697
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8698
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8699
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8700
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
8701
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
8702
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8703
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8704
|
+
---------------------------------------------------------------------------------
|
8705
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
8706
|
+
---------------------------------------------------------------------------------
|
8707
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8708
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8709
|
+
---------------------------------------------------------------------------------
|
8710
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
8711
|
+
---------------------------------------------------------------------------------
|
8712
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8713
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8714
|
+
------------------------------------------------------------------------------------------
|
8715
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
8716
|
+
------------------------------------------------------------------------------------------
|
8717
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8718
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8719
|
+
--------------------------------------------------------------
|
8720
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
8721
|
+
--------------------------------------------------------------
|
8722
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
8723
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.016168"], ["updated_at", "2016-04-04 15:39:24.016168"]]
|
8724
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8725
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8726
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.020225"], ["updated_at", "2016-04-04 15:39:24.020225"]]
|
8727
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8728
|
+
Processing by EmployeesController#edit as HTML
|
8729
|
+
Parameters: {"id"=>"438"}
|
8730
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 438]]
|
8731
|
+
Rendered employees/_form.html.erb (7.8ms)
|
8732
|
+
Rendered employees/edit.html.erb within layouts/application (10.6ms)
|
8733
|
+
Completed 200 OK in 125ms (Views: 121.7ms | ActiveRecord: 0.2ms)
|
8734
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
8735
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8736
|
+
----------------------------------------------
|
8737
|
+
EmployeesControllerTest: test_should_get_index
|
8738
|
+
----------------------------------------------
|
8739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8740
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.151410"], ["updated_at", "2016-04-04 15:39:24.151410"]]
|
8741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8743
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.152762"], ["updated_at", "2016-04-04 15:39:24.152762"]]
|
8744
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8745
|
+
Processing by EmployeesController#index as HTML
|
8746
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
8747
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
8748
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
8749
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8750
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8751
|
+
--------------------------------------------
|
8752
|
+
EmployeesControllerTest: test_should_get_new
|
8753
|
+
--------------------------------------------
|
8754
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8755
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.159214"], ["updated_at", "2016-04-04 15:39:24.159214"]]
|
8756
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8757
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8758
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.160485"], ["updated_at", "2016-04-04 15:39:24.160485"]]
|
8759
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8760
|
+
Processing by EmployeesController#new as HTML
|
8761
|
+
Rendered employees/_form.html.erb (1.5ms)
|
8762
|
+
Rendered employees/new.html.erb within layouts/application (2.0ms)
|
8763
|
+
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
|
8764
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8765
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8766
|
+
--------------------------------------------------
|
8767
|
+
EmployeesControllerTest: test_should_show_employee
|
8768
|
+
--------------------------------------------------
|
8769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8770
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.166952"], ["updated_at", "2016-04-04 15:39:24.166952"]]
|
8771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8772
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8773
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.168236"], ["updated_at", "2016-04-04 15:39:24.168236"]]
|
8774
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8775
|
+
Processing by EmployeesController#show as HTML
|
8776
|
+
Parameters: {"id"=>"444"}
|
8777
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 444]]
|
8778
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
8779
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
8780
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8781
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8782
|
+
---------------------------------------------
|
8783
|
+
EmployeesControllerTest: test_should_get_edit
|
8784
|
+
---------------------------------------------
|
8785
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8786
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.174505"], ["updated_at", "2016-04-04 15:39:24.174505"]]
|
8787
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8788
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8789
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.175595"], ["updated_at", "2016-04-04 15:39:24.175595"]]
|
8790
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8791
|
+
Processing by EmployeesController#edit as HTML
|
8792
|
+
Parameters: {"id"=>"446"}
|
8793
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 446]]
|
8794
|
+
Rendered employees/_form.html.erb (1.6ms)
|
8795
|
+
Rendered employees/edit.html.erb within layouts/application (1.8ms)
|
8796
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
8797
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8798
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8799
|
+
----------------------------------------------------
|
8800
|
+
EmployeesControllerTest: test_should_create_employee
|
8801
|
+
----------------------------------------------------
|
8802
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8803
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.181424"], ["updated_at", "2016-04-04 15:39:24.181424"]]
|
8804
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8805
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8806
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.182528"], ["updated_at", "2016-04-04 15:39:24.182528"]]
|
8807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8808
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8809
|
+
Processing by EmployeesController#create as HTML
|
8810
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
8811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8812
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:39:24.185814"], ["updated_at", "2016-04-04 15:39:24.185814"]]
|
8813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8814
|
+
Redirected to http://test.host/employees/450
|
8815
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
8816
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8817
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
8818
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
8819
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8820
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8821
|
+
-----------------------------------------------------
|
8822
|
+
EmployeesControllerTest: test_should_destroy_employee
|
8823
|
+
-----------------------------------------------------
|
8824
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8825
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.190438"], ["updated_at", "2016-04-04 15:39:24.190438"]]
|
8826
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8827
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8828
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.191674"], ["updated_at", "2016-04-04 15:39:24.191674"]]
|
8829
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8830
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
8831
|
+
Processing by EmployeesController#destroy as HTML
|
8832
|
+
Parameters: {"id"=>"451"}
|
8833
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 451]]
|
8834
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8835
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 451]]
|
8836
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8837
|
+
Redirected to http://test.host/employees
|
8838
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
8839
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
8840
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8841
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8842
|
+
----------------------------------------------------
|
8843
|
+
EmployeesControllerTest: test_should_update_employee
|
8844
|
+
----------------------------------------------------
|
8845
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8846
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:39:24.197566"], ["updated_at", "2016-04-04 15:39:24.197566"]]
|
8847
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8848
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8849
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:39:24.198558"], ["updated_at", "2016-04-04 15:39:24.198558"]]
|
8850
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8851
|
+
Processing by EmployeesController#update as HTML
|
8852
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"453"}
|
8853
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]
|
8854
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8855
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:39:24.201337"], ["id", 453]]
|
8856
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8857
|
+
Redirected to http://test.host/employees/453
|
8858
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
8859
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 453]]
|
8860
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8861
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8862
|
+
-----------------------------------------------------------------------
|
8863
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
8864
|
+
-----------------------------------------------------------------------
|
8865
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8866
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8867
|
+
-----------------------------------------------------------------------------------
|
8868
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
8869
|
+
-----------------------------------------------------------------------------------
|
8870
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8871
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8872
|
+
------------------------------------------------------------------------------------------
|
8873
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
8874
|
+
------------------------------------------------------------------------------------------
|
8875
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8876
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8877
|
+
----------------------------------------------------------------------------------------------------------------
|
8878
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
8879
|
+
----------------------------------------------------------------------------------------------------------------
|
8880
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8881
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8882
|
+
--------------------------------------------
|
8883
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
8884
|
+
--------------------------------------------
|
8885
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8886
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8887
|
+
-----------------------------------------------------------------
|
8888
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
8889
|
+
-----------------------------------------------------------------
|
8890
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8891
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8892
|
+
----------------------------------------------------------------------------------------------
|
8893
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
8894
|
+
----------------------------------------------------------------------------------------------
|
8895
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8896
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8897
|
+
--------------------------------------------------------------------------
|
8898
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
8899
|
+
--------------------------------------------------------------------------
|
8900
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8901
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8902
|
+
---------------------------------------------------------------------
|
8903
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
8904
|
+
---------------------------------------------------------------------
|
8905
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8906
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:39:24.211241"], ["updated_at", "2016-04-04 15:39:24.211241"]]
|
8907
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8908
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8909
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:39:24.212418"], ["id", 455]]
|
8910
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8911
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8912
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8913
|
+
-----------------------------------------------------------
|
8914
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
8915
|
+
-----------------------------------------------------------
|
8916
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8917
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8918
|
+
-----------------------------------------------------------
|
8919
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
8920
|
+
-----------------------------------------------------------
|
8921
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8922
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8923
|
+
---------------------------------------------------------------------------------------------------------
|
8924
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
8925
|
+
---------------------------------------------------------------------------------------------------------
|
8926
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8927
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8928
|
+
------------------------------------------------------------------------
|
8929
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
8930
|
+
------------------------------------------------------------------------
|
8931
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8932
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8933
|
+
---------------------------------------------------------------------
|
8934
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
8935
|
+
---------------------------------------------------------------------
|
8936
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8937
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8938
|
+
----------------------------------------------
|
8939
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
8940
|
+
----------------------------------------------
|
8941
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8942
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8943
|
+
-------------------------------------------------------------------------
|
8944
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
8945
|
+
-------------------------------------------------------------------------
|
8946
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8947
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:39:24.218622"], ["updated_at", "2016-04-04 15:39:24.218622"]]
|
8948
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8950
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
8951
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8953
|
+
-------------------------------------------
|
8954
|
+
EmployeeTest: test_invalid_day_raises_error
|
8955
|
+
-------------------------------------------
|
8956
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8957
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8958
|
+
-------------------------------------------------------------------------------------------------------------------
|
8959
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
8960
|
+
-------------------------------------------------------------------------------------------------------------------
|
8961
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
8962
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8963
|
+
[1m[35m (0.2ms)[0m BEGIN
|
8964
|
+
-------------------------------------------
|
8965
|
+
EmployeeTest: test_invalid_day_raises_error
|
8966
|
+
-------------------------------------------
|
8967
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8968
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8969
|
+
----------------------------------------------
|
8970
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
8971
|
+
----------------------------------------------
|
8972
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8973
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8974
|
+
-----------------------------------------------------------------
|
8975
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
8976
|
+
-----------------------------------------------------------------
|
8977
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8978
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8979
|
+
------------------------------------------------------------------------------------------
|
8980
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
8981
|
+
------------------------------------------------------------------------------------------
|
8982
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8983
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8984
|
+
-----------------------------------------------------------------------
|
8985
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
8986
|
+
-----------------------------------------------------------------------
|
8987
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8988
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8989
|
+
-----------------------------------------------------------
|
8990
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
8991
|
+
-----------------------------------------------------------
|
8992
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8993
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8994
|
+
-------------------------------------------------------------------------------------------------------------------
|
8995
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
8996
|
+
-------------------------------------------------------------------------------------------------------------------
|
8997
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
8998
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8999
|
+
---------------------------------------------------------------------------------------------------------
|
9000
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
9001
|
+
---------------------------------------------------------------------------------------------------------
|
9002
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9003
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9004
|
+
-------------------------------------------------------------------------
|
9005
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
9006
|
+
-------------------------------------------------------------------------
|
9007
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9008
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:53:00.165640"], ["updated_at", "2016-04-04 15:53:00.165640"]]
|
9009
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9010
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9011
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9012
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9013
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9014
|
+
---------------------------------------------------------------------
|
9015
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
9016
|
+
---------------------------------------------------------------------
|
9017
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9018
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:53:00.170159"], ["updated_at", "2016-04-04 15:53:00.170159"]]
|
9019
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9020
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9021
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:53:00.171566"], ["id", 458]]
|
9022
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9023
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9024
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9025
|
+
------------------------------------------------------------------------
|
9026
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
9027
|
+
------------------------------------------------------------------------
|
9028
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9029
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9030
|
+
--------------------------------------------
|
9031
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
9032
|
+
--------------------------------------------
|
9033
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9034
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9035
|
+
-----------------------------------------------------------------------------------
|
9036
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
9037
|
+
-----------------------------------------------------------------------------------
|
9038
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9039
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9040
|
+
----------------------------------------------------------------------------------------------------------------
|
9041
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
9042
|
+
----------------------------------------------------------------------------------------------------------------
|
9043
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9044
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9045
|
+
----------------------------------------------------------------------------------------------
|
9046
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
9047
|
+
----------------------------------------------------------------------------------------------
|
9048
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9049
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9050
|
+
---------------------------------------------------------------------
|
9051
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
9052
|
+
---------------------------------------------------------------------
|
9053
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9054
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9055
|
+
--------------------------------------------------------------------------
|
9056
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
9057
|
+
--------------------------------------------------------------------------
|
9058
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9059
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9060
|
+
-----------------------------------------------------------
|
9061
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
9062
|
+
-----------------------------------------------------------
|
9063
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9064
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9065
|
+
----------------------------------------------------
|
9066
|
+
EmployeesControllerTest: test_should_update_employee
|
9067
|
+
----------------------------------------------------
|
9068
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
9069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.205871"], ["updated_at", "2016-04-04 15:53:00.205871"]]
|
9070
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9071
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9072
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.207269"], ["updated_at", "2016-04-04 15:53:00.207269"]]
|
9073
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9074
|
+
Processing by EmployeesController#update as HTML
|
9075
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"459"}
|
9076
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]
|
9077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9078
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:53:00.212964"], ["id", 459]]
|
9079
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9080
|
+
Redirected to http://test.host/employees/459
|
9081
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
9082
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 459]]
|
9083
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9084
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9085
|
+
----------------------------------------------------
|
9086
|
+
EmployeesControllerTest: test_should_create_employee
|
9087
|
+
----------------------------------------------------
|
9088
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9089
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.216549"], ["updated_at", "2016-04-04 15:53:00.216549"]]
|
9090
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9092
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.217649"], ["updated_at", "2016-04-04 15:53:00.217649"]]
|
9093
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9094
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9095
|
+
Processing by EmployeesController#create as HTML
|
9096
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
9097
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9098
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:53:00.220564"], ["updated_at", "2016-04-04 15:53:00.220564"]]
|
9099
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9100
|
+
Redirected to http://test.host/employees/463
|
9101
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
9102
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9103
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
9104
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
9105
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9107
|
+
--------------------------------------------------
|
9108
|
+
EmployeesControllerTest: test_should_show_employee
|
9109
|
+
--------------------------------------------------
|
9110
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9111
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.224146"], ["updated_at", "2016-04-04 15:53:00.224146"]]
|
9112
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9113
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9114
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.225182"], ["updated_at", "2016-04-04 15:53:00.225182"]]
|
9115
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9116
|
+
Processing by EmployeesController#show as HTML
|
9117
|
+
Parameters: {"id"=>"464"}
|
9118
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 464]]
|
9119
|
+
Rendered employees/show.html.erb within layouts/application (1.0ms)
|
9120
|
+
Completed 200 OK in 123ms (Views: 122.0ms | ActiveRecord: 0.1ms)
|
9121
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
9122
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9123
|
+
----------------------------------------------
|
9124
|
+
EmployeesControllerTest: test_should_get_index
|
9125
|
+
----------------------------------------------
|
9126
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9127
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.350643"], ["updated_at", "2016-04-04 15:53:00.350643"]]
|
9128
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9129
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9130
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.351965"], ["updated_at", "2016-04-04 15:53:00.351965"]]
|
9131
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9132
|
+
Processing by EmployeesController#index as HTML
|
9133
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
9134
|
+
Rendered employees/index.html.erb within layouts/application (1.6ms)
|
9135
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
|
9136
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9137
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9138
|
+
--------------------------------------------------------------
|
9139
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
9140
|
+
--------------------------------------------------------------
|
9141
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9142
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.358130"], ["updated_at", "2016-04-04 15:53:00.358130"]]
|
9143
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9144
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9145
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.359401"], ["updated_at", "2016-04-04 15:53:00.359401"]]
|
9146
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9147
|
+
Processing by EmployeesController#edit as HTML
|
9148
|
+
Parameters: {"id"=>"468"}
|
9149
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 468]]
|
9150
|
+
Rendered employees/_form.html.erb (8.5ms)
|
9151
|
+
Rendered employees/edit.html.erb within layouts/application (11.3ms)
|
9152
|
+
Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms)
|
9153
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
9154
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9155
|
+
-----------------------------------------------------
|
9156
|
+
EmployeesControllerTest: test_should_destroy_employee
|
9157
|
+
-----------------------------------------------------
|
9158
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9159
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.377534"], ["updated_at", "2016-04-04 15:53:00.377534"]]
|
9160
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9161
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9162
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.378745"], ["updated_at", "2016-04-04 15:53:00.378745"]]
|
9163
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9164
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9165
|
+
Processing by EmployeesController#destroy as HTML
|
9166
|
+
Parameters: {"id"=>"470"}
|
9167
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 470]]
|
9168
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9169
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 470]]
|
9170
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9171
|
+
Redirected to http://test.host/employees
|
9172
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
9173
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
9174
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9175
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9176
|
+
---------------------------------------------
|
9177
|
+
EmployeesControllerTest: test_should_get_edit
|
9178
|
+
---------------------------------------------
|
9179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9180
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.384001"], ["updated_at", "2016-04-04 15:53:00.384001"]]
|
9181
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9183
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.385217"], ["updated_at", "2016-04-04 15:53:00.385217"]]
|
9184
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9185
|
+
Processing by EmployeesController#edit as HTML
|
9186
|
+
Parameters: {"id"=>"472"}
|
9187
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 472]]
|
9188
|
+
Rendered employees/_form.html.erb (1.7ms)
|
9189
|
+
Rendered employees/edit.html.erb within layouts/application (2.0ms)
|
9190
|
+
Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
|
9191
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9192
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9193
|
+
--------------------------------------------
|
9194
|
+
EmployeesControllerTest: test_should_get_new
|
9195
|
+
--------------------------------------------
|
9196
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9197
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:53:00.393061"], ["updated_at", "2016-04-04 15:53:00.393061"]]
|
9198
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9199
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:53:00.394222"], ["updated_at", "2016-04-04 15:53:00.394222"]]
|
9201
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9202
|
+
Processing by EmployeesController#new as HTML
|
9203
|
+
Rendered employees/_form.html.erb (1.5ms)
|
9204
|
+
Rendered employees/new.html.erb within layouts/application (2.0ms)
|
9205
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
|
9206
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9207
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9208
|
+
-----------------------------------------------------------------------------------------
|
9209
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
9210
|
+
-----------------------------------------------------------------------------------------
|
9211
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9212
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
9213
|
+
------------------------------------------------------------------------------------------
|
9214
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
9215
|
+
------------------------------------------------------------------------------------------
|
9216
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9217
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9218
|
+
-------------------------------------------------------------------------------
|
9219
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
9220
|
+
-------------------------------------------------------------------------------
|
9221
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9222
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
9223
|
+
---------------------------------------------------------------------------------
|
9224
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
9225
|
+
---------------------------------------------------------------------------------
|
9226
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9227
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9228
|
+
---------------------------------------------------------------------------------
|
9229
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
9230
|
+
---------------------------------------------------------------------------------
|
9231
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9232
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9233
|
+
-----------------------------------------------------------------------------------------------
|
9234
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
9235
|
+
-----------------------------------------------------------------------------------------------
|
9236
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9237
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9238
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9239
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
9240
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9241
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9242
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9243
|
+
---------------------------------------------------------------
|
9244
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
9245
|
+
---------------------------------------------------------------
|
9246
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
9247
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9248
|
+
[1m[35m (0.2ms)[0m BEGIN
|
9249
|
+
---------------------------------------------
|
9250
|
+
EmployeesControllerTest: test_should_get_edit
|
9251
|
+
---------------------------------------------
|
9252
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9253
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.700076"], ["updated_at", "2016-04-04 15:55:29.700076"]]
|
9254
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9255
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9256
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.704338"], ["updated_at", "2016-04-04 15:55:29.704338"]]
|
9257
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9258
|
+
Processing by EmployeesController#edit as HTML
|
9259
|
+
Parameters: {"id"=>"476"}
|
9260
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 476]]
|
9261
|
+
Rendered employees/_form.html.erb (8.2ms)
|
9262
|
+
Rendered employees/edit.html.erb within layouts/application (11.1ms)
|
9263
|
+
Completed 200 OK in 140ms (Views: 134.3ms | ActiveRecord: 0.3ms)
|
9264
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
9265
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
9266
|
+
----------------------------------------------------
|
9267
|
+
EmployeesControllerTest: test_should_update_employee
|
9268
|
+
----------------------------------------------------
|
9269
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9270
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.849869"], ["updated_at", "2016-04-04 15:55:29.849869"]]
|
9271
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9272
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9273
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.852255"], ["updated_at", "2016-04-04 15:55:29.852255"]]
|
9274
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9275
|
+
Processing by EmployeesController#update as HTML
|
9276
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"478"}
|
9277
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]
|
9278
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
9279
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:55:29.856779"], ["id", 478]]
|
9280
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9281
|
+
Redirected to http://test.host/employees/478
|
9282
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
|
9283
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 478]]
|
9284
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9285
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9286
|
+
--------------------------------------------
|
9287
|
+
EmployeesControllerTest: test_should_get_new
|
9288
|
+
--------------------------------------------
|
9289
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9290
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.861504"], ["updated_at", "2016-04-04 15:55:29.861504"]]
|
9291
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9292
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9293
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.862887"], ["updated_at", "2016-04-04 15:55:29.862887"]]
|
9294
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9295
|
+
Processing by EmployeesController#new as HTML
|
9296
|
+
Rendered employees/_form.html.erb (1.6ms)
|
9297
|
+
Rendered employees/new.html.erb within layouts/application (2.2ms)
|
9298
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
9299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9300
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9301
|
+
----------------------------------------------------
|
9302
|
+
EmployeesControllerTest: test_should_create_employee
|
9303
|
+
----------------------------------------------------
|
9304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9305
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.869856"], ["updated_at", "2016-04-04 15:55:29.869856"]]
|
9306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9307
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9308
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.871032"], ["updated_at", "2016-04-04 15:55:29.871032"]]
|
9309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9310
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9311
|
+
Processing by EmployeesController#create as HTML
|
9312
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
9313
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9314
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:55:29.874389"], ["updated_at", "2016-04-04 15:55:29.874389"]]
|
9315
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9316
|
+
Redirected to http://test.host/employees/484
|
9317
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
9318
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9319
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
9320
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
9321
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9322
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9323
|
+
--------------------------------------------------------------
|
9324
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
9325
|
+
--------------------------------------------------------------
|
9326
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9327
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.878394"], ["updated_at", "2016-04-04 15:55:29.878394"]]
|
9328
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9329
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9330
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.879533"], ["updated_at", "2016-04-04 15:55:29.879533"]]
|
9331
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9332
|
+
Processing by EmployeesController#edit as HTML
|
9333
|
+
Parameters: {"id"=>"485"}
|
9334
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 485]]
|
9335
|
+
Rendered employees/_form.html.erb (1.8ms)
|
9336
|
+
Rendered employees/edit.html.erb within layouts/application (2.1ms)
|
9337
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
9338
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
9339
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9340
|
+
--------------------------------------------------
|
9341
|
+
EmployeesControllerTest: test_should_show_employee
|
9342
|
+
--------------------------------------------------
|
9343
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9344
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.888470"], ["updated_at", "2016-04-04 15:55:29.888470"]]
|
9345
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9347
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.889840"], ["updated_at", "2016-04-04 15:55:29.889840"]]
|
9348
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9349
|
+
Processing by EmployeesController#show as HTML
|
9350
|
+
Parameters: {"id"=>"487"}
|
9351
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 487]]
|
9352
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
9353
|
+
Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
9354
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9355
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9356
|
+
-----------------------------------------------------
|
9357
|
+
EmployeesControllerTest: test_should_destroy_employee
|
9358
|
+
-----------------------------------------------------
|
9359
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9360
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.896451"], ["updated_at", "2016-04-04 15:55:29.896451"]]
|
9361
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9362
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9363
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.897641"], ["updated_at", "2016-04-04 15:55:29.897641"]]
|
9364
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9365
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
9366
|
+
Processing by EmployeesController#destroy as HTML
|
9367
|
+
Parameters: {"id"=>"489"}
|
9368
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 489]]
|
9369
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9370
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 489]]
|
9371
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9372
|
+
Redirected to http://test.host/employees
|
9373
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
9374
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9375
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9376
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9377
|
+
----------------------------------------------
|
9378
|
+
EmployeesControllerTest: test_should_get_index
|
9379
|
+
----------------------------------------------
|
9380
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9381
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:55:29.902651"], ["updated_at", "2016-04-04 15:55:29.902651"]]
|
9382
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9383
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9384
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:55:29.903758"], ["updated_at", "2016-04-04 15:55:29.903758"]]
|
9385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9386
|
+
Processing by EmployeesController#index as HTML
|
9387
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
9388
|
+
Rendered employees/index.html.erb within layouts/application (1.5ms)
|
9389
|
+
Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
|
9390
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9391
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9392
|
+
---------------------------------------------------------------
|
9393
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
9394
|
+
---------------------------------------------------------------
|
9395
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9396
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9397
|
+
-------------------------------------------------------------------------------------------------------------------
|
9398
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
9399
|
+
-------------------------------------------------------------------------------------------------------------------
|
9400
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9401
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9402
|
+
------------------------------------------------------------------------------------------
|
9403
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
9404
|
+
------------------------------------------------------------------------------------------
|
9405
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9406
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9407
|
+
--------------------------------------------
|
9408
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
9409
|
+
--------------------------------------------
|
9410
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9411
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9412
|
+
-------------------------------------------
|
9413
|
+
EmployeeTest: test_invalid_day_raises_error
|
9414
|
+
-------------------------------------------
|
9415
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9416
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9417
|
+
---------------------------------------------------------------------
|
9418
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
9419
|
+
---------------------------------------------------------------------
|
9420
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9421
|
+
[1m[35m (0.0ms)[0m BEGIN
|
9422
|
+
------------------------------------------------------------------------
|
9423
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
9424
|
+
------------------------------------------------------------------------
|
9425
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9426
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9427
|
+
---------------------------------------------------------------------
|
9428
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
9429
|
+
---------------------------------------------------------------------
|
9430
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9431
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:55:29.917164"], ["updated_at", "2016-04-04 15:55:29.917164"]]
|
9432
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9433
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9434
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:55:29.918383"], ["id", 493]]
|
9435
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9436
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9437
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9438
|
+
-----------------------------------------------------------
|
9439
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
9440
|
+
-----------------------------------------------------------
|
9441
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9442
|
+
[1m[35m (0.0ms)[0m BEGIN
|
9443
|
+
-----------------------------------------------------------
|
9444
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
9445
|
+
-----------------------------------------------------------
|
9446
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9447
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9448
|
+
-----------------------------------------------------------------
|
9449
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
9450
|
+
-----------------------------------------------------------------
|
9451
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9452
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9453
|
+
----------------------------------------------------------------------------------------------------------------
|
9454
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
9455
|
+
----------------------------------------------------------------------------------------------------------------
|
9456
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9457
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9458
|
+
---------------------------------------------------------------------------------------------------------
|
9459
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
9460
|
+
---------------------------------------------------------------------------------------------------------
|
9461
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9462
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9463
|
+
----------------------------------------------
|
9464
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
9465
|
+
----------------------------------------------
|
9466
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9467
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9468
|
+
--------------------------------------------------------------------------
|
9469
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
9470
|
+
--------------------------------------------------------------------------
|
9471
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9472
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9473
|
+
-----------------------------------------------------------------------
|
9474
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
9475
|
+
-----------------------------------------------------------------------
|
9476
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9477
|
+
[1m[35m (0.0ms)[0m BEGIN
|
9478
|
+
----------------------------------------------------------------------------------------------
|
9479
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
9480
|
+
----------------------------------------------------------------------------------------------
|
9481
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9482
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9483
|
+
-------------------------------------------------------------------------
|
9484
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
9485
|
+
-------------------------------------------------------------------------
|
9486
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9487
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:55:29.927029"], ["updated_at", "2016-04-04 15:55:29.927029"]]
|
9488
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9489
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9490
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9491
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9492
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9493
|
+
-----------------------------------------------------------------------------------
|
9494
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
9495
|
+
-----------------------------------------------------------------------------------
|
9496
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9497
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9498
|
+
------------------------------------------------------------------------------------------
|
9499
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
9500
|
+
------------------------------------------------------------------------------------------
|
9501
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9503
|
+
-----------------------------------------------------------------------------------------
|
9504
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
9505
|
+
-----------------------------------------------------------------------------------------
|
9506
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9508
|
+
---------------------------------------------------------------------------------
|
9509
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
9510
|
+
---------------------------------------------------------------------------------
|
9511
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9512
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9513
|
+
---------------------------------------------------------------------------------
|
9514
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
9515
|
+
---------------------------------------------------------------------------------
|
9516
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9517
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9518
|
+
-----------------------------------------------------------------------------------------------
|
9519
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
9520
|
+
-----------------------------------------------------------------------------------------------
|
9521
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9522
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9523
|
+
-------------------------------------------------------------------------------
|
9524
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
9525
|
+
-------------------------------------------------------------------------------
|
9526
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9527
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9528
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9529
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
9530
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9531
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9532
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9533
|
+
[1m[35m (0.2ms)[0m BEGIN
|
9534
|
+
--------------------------------------------------
|
9535
|
+
EmployeesControllerTest: test_should_show_employee
|
9536
|
+
--------------------------------------------------
|
9537
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9538
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.108157"], ["updated_at", "2016-04-04 15:56:45.108157"]]
|
9539
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9540
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9541
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.111073"], ["updated_at", "2016-04-04 15:56:45.111073"]]
|
9542
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9543
|
+
Processing by EmployeesController#show as HTML
|
9544
|
+
Parameters: {"id"=>"495"}
|
9545
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 495]]
|
9546
|
+
Rendered employees/show.html.erb within layouts/application (1.0ms)
|
9547
|
+
Completed 200 OK in 109ms (Views: 103.7ms | ActiveRecord: 0.3ms)
|
9548
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
9549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9550
|
+
----------------------------------------------------
|
9551
|
+
EmployeesControllerTest: test_should_create_employee
|
9552
|
+
----------------------------------------------------
|
9553
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9554
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.224511"], ["updated_at", "2016-04-04 15:56:45.224511"]]
|
9555
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9557
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.225779"], ["updated_at", "2016-04-04 15:56:45.225779"]]
|
9558
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9559
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
9560
|
+
Processing by EmployeesController#create as HTML
|
9561
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
9562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9563
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Joe Blow"], ["dob", "1965-12-31"], ["joined", "2015-03-04"], ["created_at", "2016-04-04 15:56:45.228970"], ["updated_at", "2016-04-04 15:56:45.228970"]]
|
9564
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9565
|
+
Redirected to http://test.host/employees/499
|
9566
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
9567
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
9568
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9569
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
9570
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9571
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9572
|
+
---------------------------------------------
|
9573
|
+
EmployeesControllerTest: test_should_get_edit
|
9574
|
+
---------------------------------------------
|
9575
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9576
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.234532"], ["updated_at", "2016-04-04 15:56:45.234532"]]
|
9577
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9578
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9579
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.235697"], ["updated_at", "2016-04-04 15:56:45.235697"]]
|
9580
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9581
|
+
Processing by EmployeesController#edit as HTML
|
9582
|
+
Parameters: {"id"=>"500"}
|
9583
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 500]]
|
9584
|
+
Rendered employees/_form.html.erb (31.0ms)
|
9585
|
+
Rendered employees/edit.html.erb within layouts/application (33.4ms)
|
9586
|
+
Completed 200 OK in 36ms (Views: 35.1ms | ActiveRecord: 0.2ms)
|
9587
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
9588
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9589
|
+
----------------------------------------------
|
9590
|
+
EmployeesControllerTest: test_should_get_index
|
9591
|
+
----------------------------------------------
|
9592
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9593
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.274360"], ["updated_at", "2016-04-04 15:56:45.274360"]]
|
9594
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9595
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9596
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.275663"], ["updated_at", "2016-04-04 15:56:45.275663"]]
|
9597
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9598
|
+
Processing by EmployeesController#index as HTML
|
9599
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
9600
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
9601
|
+
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.2ms)
|
9602
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9603
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9604
|
+
----------------------------------------------------
|
9605
|
+
EmployeesControllerTest: test_should_update_employee
|
9606
|
+
----------------------------------------------------
|
9607
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9608
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.281976"], ["updated_at", "2016-04-04 15:56:45.281976"]]
|
9609
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9610
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9611
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.283056"], ["updated_at", "2016-04-04 15:56:45.283056"]]
|
9612
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9613
|
+
Processing by EmployeesController#update as HTML
|
9614
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"504"}
|
9615
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 504]]
|
9616
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9617
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5[0m [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-04 15:56:45.286039"], ["id", 504]]
|
9618
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9619
|
+
Redirected to http://test.host/employees/504
|
9620
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
9621
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 504]]
|
9622
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9623
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9624
|
+
-----------------------------------------------------
|
9625
|
+
EmployeesControllerTest: test_should_destroy_employee
|
9626
|
+
-----------------------------------------------------
|
9627
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9628
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.289843"], ["updated_at", "2016-04-04 15:56:45.289843"]]
|
9629
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9630
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9631
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.291029"], ["updated_at", "2016-04-04 15:56:45.291029"]]
|
9632
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9633
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
9634
|
+
Processing by EmployeesController#destroy as HTML
|
9635
|
+
Parameters: {"id"=>"506"}
|
9636
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 506]]
|
9637
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9638
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 506]]
|
9639
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9640
|
+
Redirected to http://test.host/employees
|
9641
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
9642
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
9643
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9645
|
+
--------------------------------------------------------------
|
9646
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
9647
|
+
--------------------------------------------------------------
|
9648
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9649
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.296575"], ["updated_at", "2016-04-04 15:56:45.296575"]]
|
9650
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9651
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9652
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.297666"], ["updated_at", "2016-04-04 15:56:45.297666"]]
|
9653
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9654
|
+
Processing by EmployeesController#edit as HTML
|
9655
|
+
Parameters: {"id"=>"508"}
|
9656
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 508]]
|
9657
|
+
Rendered employees/_form.html.erb (1.6ms)
|
9658
|
+
Rendered employees/edit.html.erb within layouts/application (1.9ms)
|
9659
|
+
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
|
9660
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
9661
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9662
|
+
--------------------------------------------
|
9663
|
+
EmployeesControllerTest: test_should_get_new
|
9664
|
+
--------------------------------------------
|
9665
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9666
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-04 15:56:45.305702"], ["updated_at", "2016-04-04 15:56:45.305702"]]
|
9667
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9668
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9669
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 15:56:45.307062"], ["updated_at", "2016-04-04 15:56:45.307062"]]
|
9670
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9671
|
+
Processing by EmployeesController#new as HTML
|
9672
|
+
Rendered employees/_form.html.erb (1.6ms)
|
9673
|
+
Rendered employees/new.html.erb within layouts/application (2.1ms)
|
9674
|
+
Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
|
9675
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9676
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9677
|
+
------------------------------------------------------------------------------------------
|
9678
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
9679
|
+
------------------------------------------------------------------------------------------
|
9680
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9681
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9682
|
+
--------------------------------------------
|
9683
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
9684
|
+
--------------------------------------------
|
9685
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9686
|
+
[1m[35m (0.0ms)[0m BEGIN
|
9687
|
+
---------------------------------------------------------------------------------------------------------
|
9688
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
9689
|
+
---------------------------------------------------------------------------------------------------------
|
9690
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9691
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9692
|
+
-------------------------------------------------------------------------
|
9693
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
9694
|
+
-------------------------------------------------------------------------
|
9695
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9696
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:56:45.317736"], ["updated_at", "2016-04-04 15:56:45.317736"]]
|
9697
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9698
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9699
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9700
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9701
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9702
|
+
-----------------------------------------------------------------
|
9703
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
9704
|
+
-----------------------------------------------------------------
|
9705
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9706
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9707
|
+
--------------------------------------------------------------------------
|
9708
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
9709
|
+
--------------------------------------------------------------------------
|
9710
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9711
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9712
|
+
------------------------------------------------------------------------
|
9713
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
9714
|
+
------------------------------------------------------------------------
|
9715
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9716
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9717
|
+
----------------------------------------------------------------------------------------------
|
9718
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
9719
|
+
----------------------------------------------------------------------------------------------
|
9720
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9721
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9722
|
+
-------------------------------------------
|
9723
|
+
EmployeeTest: test_invalid_day_raises_error
|
9724
|
+
-------------------------------------------
|
9725
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9726
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9727
|
+
-------------------------------------------------------------------------------------------------------------------
|
9728
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
9729
|
+
-------------------------------------------------------------------------------------------------------------------
|
9730
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9731
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9732
|
+
-----------------------------------------------------------
|
9733
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
9734
|
+
-----------------------------------------------------------
|
9735
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9736
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9737
|
+
-----------------------------------------------------------------------
|
9738
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
9739
|
+
-----------------------------------------------------------------------
|
9740
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9741
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9742
|
+
-----------------------------------------------------------------------------------
|
9743
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
9744
|
+
-----------------------------------------------------------------------------------
|
9745
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9746
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9747
|
+
----------------------------------------------------------------------------------------------------------------
|
9748
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
9749
|
+
----------------------------------------------------------------------------------------------------------------
|
9750
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9751
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9752
|
+
----------------------------------------------
|
9753
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
9754
|
+
----------------------------------------------
|
9755
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9756
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9757
|
+
-----------------------------------------------------------
|
9758
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
9759
|
+
-----------------------------------------------------------
|
9760
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9761
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9762
|
+
---------------------------------------------------------------------
|
9763
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
9764
|
+
---------------------------------------------------------------------
|
9765
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9766
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9767
|
+
---------------------------------------------------------------------
|
9768
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
9769
|
+
---------------------------------------------------------------------
|
9770
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9771
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 15:56:45.329290"], ["updated_at", "2016-04-04 15:56:45.329290"]]
|
9772
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9773
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9774
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-04 15:56:45.330613"], ["id", 513]]
|
9775
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9776
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9777
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9778
|
+
---------------------------------------------------------------
|
9779
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
9780
|
+
---------------------------------------------------------------
|
9781
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9782
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9783
|
+
------------------------------------------------------------------------------------------
|
9784
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
9785
|
+
------------------------------------------------------------------------------------------
|
9786
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9787
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9788
|
+
-------------------------------------------------------------------------------
|
9789
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
9790
|
+
-------------------------------------------------------------------------------
|
9791
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9792
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9793
|
+
-----------------------------------------------------------------------------------------
|
9794
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
9795
|
+
-----------------------------------------------------------------------------------------
|
9796
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9797
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9798
|
+
-----------------------------------------------------------------------------------------------
|
9799
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
9800
|
+
-----------------------------------------------------------------------------------------------
|
9801
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9802
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9803
|
+
---------------------------------------------------------------------------------
|
9804
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
9805
|
+
---------------------------------------------------------------------------------
|
9806
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9807
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9808
|
+
---------------------------------------------------------------------------------
|
9809
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
9810
|
+
---------------------------------------------------------------------------------
|
9811
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9812
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9813
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9814
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
9815
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9816
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|