gov_uk_date_fields 1.0.2 → 1.0.3
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 +9 -6
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/log/test.log +2005 -0
- data/test/form_fields_test.rb +31 -0
- metadata +17 -3
data/test/dummy/log/test.log
CHANGED
@@ -5779,3 +5779,2008 @@ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
|
5779
5779
|
[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-01 13:04:18.489826"], ["id", 285]]
|
5780
5780
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5781
5781
|
[1m[35m (0.1ms)[0m ROLLBACK
|
5782
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5783
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5784
|
+
----------------------------------------------------
|
5785
|
+
EmployeesControllerTest: test_should_update_employee
|
5786
|
+
----------------------------------------------------
|
5787
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5788
|
+
[1m[35mSQL (0.6ms)[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 14:22:46.971798"], ["updated_at", "2016-04-04 14:22:46.971798"]]
|
5789
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5790
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5791
|
+
[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 14:22:46.976772"], ["updated_at", "2016-04-04 14:22:46.976772"]]
|
5792
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5793
|
+
Processing by EmployeesController#update as HTML
|
5794
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"286"}
|
5795
|
+
[1m[36mEmployee Load (0.4ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 286]]
|
5796
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5797
|
+
[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 14:22:46.991783"], ["id", 286]]
|
5798
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5799
|
+
Redirected to http://test.host/employees/286
|
5800
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.7ms)
|
5801
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 286]]
|
5802
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5803
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5804
|
+
----------------------------------------------------
|
5805
|
+
EmployeesControllerTest: test_should_create_employee
|
5806
|
+
----------------------------------------------------
|
5807
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5808
|
+
[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 14:22:46.996331"], ["updated_at", "2016-04-04 14:22:46.996331"]]
|
5809
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5810
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5811
|
+
[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 14:22:46.997478"], ["updated_at", "2016-04-04 14:22:46.997478"]]
|
5812
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5813
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
5814
|
+
Processing by EmployeesController#create as HTML
|
5815
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
5816
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5817
|
+
[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 14:22:47.000388"], ["updated_at", "2016-04-04 14:22:47.000388"]]
|
5818
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5819
|
+
Redirected to http://test.host/employees/290
|
5820
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
|
5821
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
5822
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
5823
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
5824
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5825
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5826
|
+
----------------------------------------------
|
5827
|
+
EmployeesControllerTest: test_should_get_index
|
5828
|
+
----------------------------------------------
|
5829
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5830
|
+
[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 14:22:47.003958"], ["updated_at", "2016-04-04 14:22:47.003958"]]
|
5831
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5832
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5833
|
+
[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 14:22:47.004895"], ["updated_at", "2016-04-04 14:22:47.004895"]]
|
5834
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5835
|
+
Processing by EmployeesController#index as HTML
|
5836
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
5837
|
+
Rendered employees/index.html.erb within layouts/application (3.1ms)
|
5838
|
+
Completed 200 OK in 131ms (Views: 130.4ms | ActiveRecord: 0.2ms)
|
5839
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
5840
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5841
|
+
--------------------------------------------
|
5842
|
+
EmployeesControllerTest: test_should_get_new
|
5843
|
+
--------------------------------------------
|
5844
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5845
|
+
[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 14:22:47.138826"], ["updated_at", "2016-04-04 14:22:47.138826"]]
|
5846
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5847
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5848
|
+
[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 14:22:47.140172"], ["updated_at", "2016-04-04 14:22:47.140172"]]
|
5849
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5850
|
+
Processing by EmployeesController#new as HTML
|
5851
|
+
Rendered employees/_form.html.erb (12.9ms)
|
5852
|
+
Rendered employees/new.html.erb within layouts/application (17.5ms)
|
5853
|
+
Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.0ms)
|
5854
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5855
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5856
|
+
--------------------------------------------------
|
5857
|
+
EmployeesControllerTest: test_should_show_employee
|
5858
|
+
--------------------------------------------------
|
5859
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5860
|
+
[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 14:22:47.163042"], ["updated_at", "2016-04-04 14:22:47.163042"]]
|
5861
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5862
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5863
|
+
[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 14:22:47.164342"], ["updated_at", "2016-04-04 14:22:47.164342"]]
|
5864
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5865
|
+
Processing by EmployeesController#show as HTML
|
5866
|
+
Parameters: {"id"=>"295"}
|
5867
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 295]]
|
5868
|
+
Rendered employees/show.html.erb within layouts/application (1.0ms)
|
5869
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
5870
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5871
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5872
|
+
-----------------------------------------------------
|
5873
|
+
EmployeesControllerTest: test_should_destroy_employee
|
5874
|
+
-----------------------------------------------------
|
5875
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5876
|
+
[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 14:22:47.171567"], ["updated_at", "2016-04-04 14:22:47.171567"]]
|
5877
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5878
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5879
|
+
[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 14:22:47.172995"], ["updated_at", "2016-04-04 14:22:47.172995"]]
|
5880
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5881
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
5882
|
+
Processing by EmployeesController#destroy as HTML
|
5883
|
+
Parameters: {"id"=>"297"}
|
5884
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 297]]
|
5885
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5886
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 297]]
|
5887
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5888
|
+
Redirected to http://test.host/employees
|
5889
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.5ms)
|
5890
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
5891
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5892
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5893
|
+
--------------------------------------------------------------
|
5894
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
5895
|
+
--------------------------------------------------------------
|
5896
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5897
|
+
[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 14:22:47.180099"], ["updated_at", "2016-04-04 14:22:47.180099"]]
|
5898
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5900
|
+
[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 14:22:47.181167"], ["updated_at", "2016-04-04 14:22:47.181167"]]
|
5901
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5902
|
+
Processing by EmployeesController#edit as HTML
|
5903
|
+
Parameters: {"id"=>"299"}
|
5904
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 299]]
|
5905
|
+
Rendered employees/_form.html.erb (2.2ms)
|
5906
|
+
Rendered employees/edit.html.erb within layouts/application (3.0ms)
|
5907
|
+
Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)
|
5908
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
5909
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
5910
|
+
---------------------------------------------
|
5911
|
+
EmployeesControllerTest: test_should_get_edit
|
5912
|
+
---------------------------------------------
|
5913
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5914
|
+
[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 14:22:47.191239"], ["updated_at", "2016-04-04 14:22:47.191239"]]
|
5915
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5916
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5917
|
+
[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 14:22:47.192404"], ["updated_at", "2016-04-04 14:22:47.192404"]]
|
5918
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5919
|
+
Processing by EmployeesController#edit as HTML
|
5920
|
+
Parameters: {"id"=>"301"}
|
5921
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 301]]
|
5922
|
+
Rendered employees/_form.html.erb (2.1ms)
|
5923
|
+
Rendered employees/edit.html.erb within layouts/application (2.4ms)
|
5924
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
5925
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5926
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5927
|
+
---------------------------------------------------------------------------------
|
5928
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
5929
|
+
---------------------------------------------------------------------------------
|
5930
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5931
|
+
[1m[35m (0.0ms)[0m BEGIN
|
5932
|
+
---------------------------------------------------------------------------------
|
5933
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
5934
|
+
---------------------------------------------------------------------------------
|
5935
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5936
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5937
|
+
------------------------------------------------------------------------------------------
|
5938
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
5939
|
+
------------------------------------------------------------------------------------------
|
5940
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5941
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5942
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
5943
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
5944
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
5945
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5946
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5947
|
+
-------------------------------------------------------------------------------
|
5948
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
5949
|
+
-------------------------------------------------------------------------------
|
5950
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5951
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5952
|
+
-----------------------------------------------------------------------------------------------
|
5953
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
5954
|
+
-----------------------------------------------------------------------------------------------
|
5955
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5956
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5957
|
+
-----------------------------------------------------------------------------------------
|
5958
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
5959
|
+
-----------------------------------------------------------------------------------------
|
5960
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5961
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5962
|
+
------------------------------------------
|
5963
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
5964
|
+
------------------------------------------
|
5965
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5966
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5967
|
+
-------------------------------------------------------------
|
5968
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
5969
|
+
-------------------------------------------------------------
|
5970
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5971
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5972
|
+
---------------------------------------------------------------
|
5973
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
5974
|
+
---------------------------------------------------------------
|
5975
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5976
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5977
|
+
-------------------------------------------------------
|
5978
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
5979
|
+
-------------------------------------------------------
|
5980
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5981
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5982
|
+
-------------------------------------
|
5983
|
+
GovUkDateFieldsTest: test_squash_html
|
5984
|
+
-------------------------------------
|
5985
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5986
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5987
|
+
-----------------------------------------------------------
|
5988
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
5989
|
+
-----------------------------------------------------------
|
5990
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5991
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5992
|
+
--------------------------------------------------------
|
5993
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
5994
|
+
--------------------------------------------------------
|
5995
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5996
|
+
[1m[35m (0.1ms)[0m BEGIN
|
5997
|
+
-----------------------------------------------------------
|
5998
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
5999
|
+
-----------------------------------------------------------
|
6000
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6001
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6002
|
+
---------------------------------------------------------------------------------------------------------
|
6003
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
6004
|
+
---------------------------------------------------------------------------------------------------------
|
6005
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6006
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6007
|
+
----------------------------------------------------------------------------------------------
|
6008
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
6009
|
+
----------------------------------------------------------------------------------------------
|
6010
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6011
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6012
|
+
-----------------------------------------------------------------
|
6013
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
6014
|
+
-----------------------------------------------------------------
|
6015
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6016
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6017
|
+
-------------------------------------------
|
6018
|
+
EmployeeTest: test_invalid_day_raises_error
|
6019
|
+
-------------------------------------------
|
6020
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6021
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6022
|
+
--------------------------------------------
|
6023
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
6024
|
+
--------------------------------------------
|
6025
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6026
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6027
|
+
-----------------------------------------------------------------------------------
|
6028
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
6029
|
+
-----------------------------------------------------------------------------------
|
6030
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6031
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6032
|
+
-----------------------------------------------------------
|
6033
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
6034
|
+
-----------------------------------------------------------
|
6035
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6036
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6037
|
+
----------------------------------------------
|
6038
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
6039
|
+
----------------------------------------------
|
6040
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6041
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6042
|
+
------------------------------------------------------------------------
|
6043
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
6044
|
+
------------------------------------------------------------------------
|
6045
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6046
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6047
|
+
--------------------------------------------------------------------------
|
6048
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
6049
|
+
--------------------------------------------------------------------------
|
6050
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6051
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6052
|
+
-------------------------------------------------------------------------------------------------------------------
|
6053
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
6054
|
+
-------------------------------------------------------------------------------------------------------------------
|
6055
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6056
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6057
|
+
----------------------------------------------------------------------------------------------------------------
|
6058
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
6059
|
+
----------------------------------------------------------------------------------------------------------------
|
6060
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6061
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6062
|
+
---------------------------------------------------------------------
|
6063
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
6064
|
+
---------------------------------------------------------------------
|
6065
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6066
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6067
|
+
------------------------------------------------------------------------------------------
|
6068
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
6069
|
+
------------------------------------------------------------------------------------------
|
6070
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6071
|
+
[1m[35m (0.0ms)[0m BEGIN
|
6072
|
+
-------------------------------------------------------------------------
|
6073
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
6074
|
+
-------------------------------------------------------------------------
|
6075
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6076
|
+
[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 14:22:47.250590"], ["updated_at", "2016-04-04 14:22:47.250590"]]
|
6077
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6078
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6079
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
6080
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6081
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6082
|
+
-----------------------------------------------------------------------
|
6083
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
6084
|
+
-----------------------------------------------------------------------
|
6085
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6086
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6087
|
+
---------------------------------------------------------------------
|
6088
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
6089
|
+
---------------------------------------------------------------------
|
6090
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6091
|
+
[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 14:22:47.253523"], ["updated_at", "2016-04-04 14:22:47.253523"]]
|
6092
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6093
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6094
|
+
[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 14:22:47.254542"], ["id", 304]]
|
6095
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6096
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6097
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6098
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6099
|
+
-------------------------------------------------------
|
6100
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
6101
|
+
-------------------------------------------------------
|
6102
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6103
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6104
|
+
---------------------------------------------------------------
|
6105
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
6106
|
+
---------------------------------------------------------------
|
6107
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6108
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6109
|
+
-------------------------------------------------------------
|
6110
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
6111
|
+
-------------------------------------------------------------
|
6112
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6113
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6114
|
+
-----------------------------------------------------------
|
6115
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
6116
|
+
-----------------------------------------------------------
|
6117
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6118
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6119
|
+
------------------------------------------
|
6120
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
6121
|
+
------------------------------------------
|
6122
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6123
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6124
|
+
-------------------------------------
|
6125
|
+
GovUkDateFieldsTest: test_squash_html
|
6126
|
+
-------------------------------------
|
6127
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6128
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6129
|
+
--------------------------------------------------------
|
6130
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
6131
|
+
--------------------------------------------------------
|
6132
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6133
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6134
|
+
---------------------------------------------------------------------------------
|
6135
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
6136
|
+
---------------------------------------------------------------------------------
|
6137
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6138
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6139
|
+
-----------------------------------------------------------------------------------------------
|
6140
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
6141
|
+
-----------------------------------------------------------------------------------------------
|
6142
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6143
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6144
|
+
------------------------------------------------------------------------------------------
|
6145
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
6146
|
+
------------------------------------------------------------------------------------------
|
6147
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6148
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6149
|
+
-------------------------------------------------------------------------------
|
6150
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
6151
|
+
-------------------------------------------------------------------------------
|
6152
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6153
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6154
|
+
-----------------------------------------------------------------------------------------
|
6155
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
6156
|
+
-----------------------------------------------------------------------------------------
|
6157
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6158
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6159
|
+
---------------------------------------------------------------------------------
|
6160
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
6161
|
+
---------------------------------------------------------------------------------
|
6162
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6163
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6164
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6165
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
6166
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6167
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6168
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6169
|
+
---------------------------------------------------------------------
|
6170
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
6171
|
+
---------------------------------------------------------------------
|
6172
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6173
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6174
|
+
-----------------------------------------------------------
|
6175
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
6176
|
+
-----------------------------------------------------------
|
6177
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6178
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6179
|
+
-------------------------------------------
|
6180
|
+
EmployeeTest: test_invalid_day_raises_error
|
6181
|
+
-------------------------------------------
|
6182
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6183
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6184
|
+
----------------------------------------------------------------------------------------------------------------
|
6185
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
6186
|
+
----------------------------------------------------------------------------------------------------------------
|
6187
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6188
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6189
|
+
-----------------------------------------------------------------------------------
|
6190
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
6191
|
+
-----------------------------------------------------------------------------------
|
6192
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6193
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6194
|
+
--------------------------------------------------------------------------
|
6195
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
6196
|
+
--------------------------------------------------------------------------
|
6197
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6198
|
+
[1m[35m (0.0ms)[0m BEGIN
|
6199
|
+
-------------------------------------------------------------------------------------------------------------------
|
6200
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
6201
|
+
-------------------------------------------------------------------------------------------------------------------
|
6202
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6203
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6204
|
+
-------------------------------------------------------------------------
|
6205
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
6206
|
+
-------------------------------------------------------------------------
|
6207
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6208
|
+
[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 14:23:39.049474"], ["updated_at", "2016-04-04 14:23:39.049474"]]
|
6209
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6211
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
6212
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6213
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6214
|
+
---------------------------------------------------------------------------------------------------------
|
6215
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
6216
|
+
---------------------------------------------------------------------------------------------------------
|
6217
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6218
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6219
|
+
----------------------------------------------
|
6220
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
6221
|
+
----------------------------------------------
|
6222
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6223
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6224
|
+
-----------------------------------------------------------------
|
6225
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
6226
|
+
-----------------------------------------------------------------
|
6227
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6228
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6229
|
+
-----------------------------------------------------------------------
|
6230
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
6231
|
+
-----------------------------------------------------------------------
|
6232
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6233
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6234
|
+
------------------------------------------------------------------------
|
6235
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
6236
|
+
------------------------------------------------------------------------
|
6237
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6238
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6239
|
+
----------------------------------------------------------------------------------------------
|
6240
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
6241
|
+
----------------------------------------------------------------------------------------------
|
6242
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6243
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6244
|
+
------------------------------------------------------------------------------------------
|
6245
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
6246
|
+
------------------------------------------------------------------------------------------
|
6247
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6248
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6249
|
+
---------------------------------------------------------------------
|
6250
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
6251
|
+
---------------------------------------------------------------------
|
6252
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6253
|
+
[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 14:23:39.058706"], ["updated_at", "2016-04-04 14:23:39.058706"]]
|
6254
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6255
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6256
|
+
[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 14:23:39.059814"], ["id", 306]]
|
6257
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6258
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6259
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6260
|
+
--------------------------------------------
|
6261
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
6262
|
+
--------------------------------------------
|
6263
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6264
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6265
|
+
-----------------------------------------------------------
|
6266
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
6267
|
+
-----------------------------------------------------------
|
6268
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6269
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6270
|
+
----------------------------------------------
|
6271
|
+
EmployeesControllerTest: test_should_get_index
|
6272
|
+
----------------------------------------------
|
6273
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6274
|
+
[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 14:23:39.090610"], ["updated_at", "2016-04-04 14:23:39.090610"]]
|
6275
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6276
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6277
|
+
[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 14:23:39.091806"], ["updated_at", "2016-04-04 14:23:39.091806"]]
|
6278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6279
|
+
Processing by EmployeesController#index as HTML
|
6280
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees"
|
6281
|
+
Rendered employees/index.html.erb within layouts/application (2.5ms)
|
6282
|
+
Completed 200 OK in 103ms (Views: 102.3ms | ActiveRecord: 0.3ms)
|
6283
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6284
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6285
|
+
----------------------------------------------------
|
6286
|
+
EmployeesControllerTest: test_should_update_employee
|
6287
|
+
----------------------------------------------------
|
6288
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6289
|
+
[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 14:23:39.198503"], ["updated_at", "2016-04-04 14:23:39.198503"]]
|
6290
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6291
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6292
|
+
[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 14:23:39.199732"], ["updated_at", "2016-04-04 14:23:39.199732"]]
|
6293
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6294
|
+
Processing by EmployeesController#update as HTML
|
6295
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"309"}
|
6296
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 309]]
|
6297
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6298
|
+
[1m[36mSQL (0.1ms)[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 14:23:39.204407"], ["id", 309]]
|
6299
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6300
|
+
Redirected to http://test.host/employees/309
|
6301
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
6302
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 309]]
|
6303
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6304
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6305
|
+
---------------------------------------------
|
6306
|
+
EmployeesControllerTest: test_should_get_edit
|
6307
|
+
---------------------------------------------
|
6308
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6309
|
+
[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 14:23:39.208224"], ["updated_at", "2016-04-04 14:23:39.208224"]]
|
6310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6311
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6312
|
+
[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 14:23:39.209273"], ["updated_at", "2016-04-04 14:23:39.209273"]]
|
6313
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6314
|
+
Processing by EmployeesController#edit as HTML
|
6315
|
+
Parameters: {"id"=>"311"}
|
6316
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 311]]
|
6317
|
+
Rendered employees/_form.html.erb (5.2ms)
|
6318
|
+
Rendered employees/edit.html.erb within layouts/application (7.9ms)
|
6319
|
+
Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms)
|
6320
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6321
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6322
|
+
----------------------------------------------------
|
6323
|
+
EmployeesControllerTest: test_should_create_employee
|
6324
|
+
----------------------------------------------------
|
6325
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6326
|
+
[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 14:23:39.222201"], ["updated_at", "2016-04-04 14:23:39.222201"]]
|
6327
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6328
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6329
|
+
[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 14:23:39.223382"], ["updated_at", "2016-04-04 14:23:39.223382"]]
|
6330
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6331
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6332
|
+
Processing by EmployeesController#create as HTML
|
6333
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
6334
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6335
|
+
[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 14:23:39.226267"], ["updated_at", "2016-04-04 14:23:39.226267"]]
|
6336
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6337
|
+
Redirected to http://test.host/employees/315
|
6338
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
6339
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6340
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
6341
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
6342
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6343
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6344
|
+
-----------------------------------------------------
|
6345
|
+
EmployeesControllerTest: test_should_destroy_employee
|
6346
|
+
-----------------------------------------------------
|
6347
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6348
|
+
[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 14:23:39.230733"], ["updated_at", "2016-04-04 14:23:39.230733"]]
|
6349
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6350
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6351
|
+
[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 14:23:39.231771"], ["updated_at", "2016-04-04 14:23:39.231771"]]
|
6352
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6353
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
6354
|
+
Processing by EmployeesController#destroy as HTML
|
6355
|
+
Parameters: {"id"=>"316"}
|
6356
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 316]]
|
6357
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6358
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 316]]
|
6359
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6360
|
+
Redirected to http://test.host/employees
|
6361
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
6362
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6363
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6364
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6365
|
+
--------------------------------------------
|
6366
|
+
EmployeesControllerTest: test_should_get_new
|
6367
|
+
--------------------------------------------
|
6368
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6369
|
+
[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 14:23:39.236966"], ["updated_at", "2016-04-04 14:23:39.236966"]]
|
6370
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6371
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6372
|
+
[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 14:23:39.238096"], ["updated_at", "2016-04-04 14:23:39.238096"]]
|
6373
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6374
|
+
Processing by EmployeesController#new as HTML
|
6375
|
+
Rendered employees/_form.html.erb (1.3ms)
|
6376
|
+
Rendered employees/new.html.erb within layouts/application (1.8ms)
|
6377
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
6378
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6379
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6380
|
+
--------------------------------------------------------------
|
6381
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
6382
|
+
--------------------------------------------------------------
|
6383
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6384
|
+
[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 14:23:39.245066"], ["updated_at", "2016-04-04 14:23:39.245066"]]
|
6385
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
6386
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6387
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:23:39.267858"], ["updated_at", "2016-04-04 14:23:39.267858"]]
|
6388
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6389
|
+
Processing by EmployeesController#edit as HTML
|
6390
|
+
Parameters: {"id"=>"320"}
|
6391
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 320]]
|
6392
|
+
Rendered employees/_form.html.erb (1.6ms)
|
6393
|
+
Rendered employees/edit.html.erb within layouts/application (1.8ms)
|
6394
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
6395
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6396
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6397
|
+
--------------------------------------------------
|
6398
|
+
EmployeesControllerTest: test_should_show_employee
|
6399
|
+
--------------------------------------------------
|
6400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6401
|
+
[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 14:23:39.275987"], ["updated_at", "2016-04-04 14:23:39.275987"]]
|
6402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6403
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6404
|
+
[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 14:23:39.277292"], ["updated_at", "2016-04-04 14:23:39.277292"]]
|
6405
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6406
|
+
Processing by EmployeesController#show as HTML
|
6407
|
+
Parameters: {"id"=>"322"}
|
6408
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 322]]
|
6409
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
6410
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
6411
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
6412
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6413
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6414
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6415
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
6416
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6417
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6418
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6419
|
+
-----------------------------------------------------------------------------------------
|
6420
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
6421
|
+
-----------------------------------------------------------------------------------------
|
6422
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6423
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6424
|
+
---------------------------------------------------------------------------------
|
6425
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
6426
|
+
---------------------------------------------------------------------------------
|
6427
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6428
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6429
|
+
-----------------------------------------------------------------------------------------------
|
6430
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
6431
|
+
-----------------------------------------------------------------------------------------------
|
6432
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6433
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6434
|
+
------------------------------------------------------------------------------------------
|
6435
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
6436
|
+
------------------------------------------------------------------------------------------
|
6437
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6438
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6439
|
+
-------------------------------------------------------------------------------
|
6440
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
6441
|
+
-------------------------------------------------------------------------------
|
6442
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6443
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6444
|
+
---------------------------------------------------------------------------------
|
6445
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
6446
|
+
---------------------------------------------------------------------------------
|
6447
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6448
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6449
|
+
-----------------------------------------------------------
|
6450
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
6451
|
+
-----------------------------------------------------------
|
6452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6454
|
+
---------------------------------------------------------------------------------------------------------
|
6455
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
6456
|
+
---------------------------------------------------------------------------------------------------------
|
6457
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6458
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6459
|
+
-----------------------------------------------------------
|
6460
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
6461
|
+
-----------------------------------------------------------
|
6462
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6463
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6464
|
+
----------------------------------------------------------------------------------------------------------------
|
6465
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
6466
|
+
----------------------------------------------------------------------------------------------------------------
|
6467
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6468
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6469
|
+
----------------------------------------------------------------------------------------------
|
6470
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
6471
|
+
----------------------------------------------------------------------------------------------
|
6472
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6473
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6474
|
+
-------------------------------------------
|
6475
|
+
EmployeeTest: test_invalid_day_raises_error
|
6476
|
+
-------------------------------------------
|
6477
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6478
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6479
|
+
---------------------------------------------------------------------
|
6480
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
6481
|
+
---------------------------------------------------------------------
|
6482
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6483
|
+
[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 14:24:11.900636"], ["updated_at", "2016-04-04 14:24:11.900636"]]
|
6484
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6486
|
+
[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 14:24:11.904146"], ["id", 324]]
|
6487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6488
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6490
|
+
-------------------------------------------------------------------------
|
6491
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
6492
|
+
-------------------------------------------------------------------------
|
6493
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6494
|
+
[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 14:24:11.908601"], ["updated_at", "2016-04-04 14:24:11.908601"]]
|
6495
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6496
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6497
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
6498
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6499
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6500
|
+
------------------------------------------------------------------------------------------
|
6501
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
6502
|
+
------------------------------------------------------------------------------------------
|
6503
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6504
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6505
|
+
-------------------------------------------------------------------------------------------------------------------
|
6506
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
6507
|
+
-------------------------------------------------------------------------------------------------------------------
|
6508
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6509
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6510
|
+
------------------------------------------------------------------------
|
6511
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
6512
|
+
------------------------------------------------------------------------
|
6513
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6514
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6515
|
+
-----------------------------------------------------------------------
|
6516
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
6517
|
+
-----------------------------------------------------------------------
|
6518
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6519
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6520
|
+
--------------------------------------------
|
6521
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
6522
|
+
--------------------------------------------
|
6523
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6524
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6525
|
+
--------------------------------------------------------------------------
|
6526
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
6527
|
+
--------------------------------------------------------------------------
|
6528
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6529
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6530
|
+
-----------------------------------------------------------------
|
6531
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
6532
|
+
-----------------------------------------------------------------
|
6533
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6534
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6535
|
+
-----------------------------------------------------------------------------------
|
6536
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
6537
|
+
-----------------------------------------------------------------------------------
|
6538
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6540
|
+
----------------------------------------------
|
6541
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
6542
|
+
----------------------------------------------
|
6543
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6544
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6545
|
+
---------------------------------------------------------------------
|
6546
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
6547
|
+
---------------------------------------------------------------------
|
6548
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6550
|
+
----------------------------------------------------
|
6551
|
+
EmployeesControllerTest: test_should_update_employee
|
6552
|
+
----------------------------------------------------
|
6553
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
6554
|
+
[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 14:24:11.951454"], ["updated_at", "2016-04-04 14:24:11.951454"]]
|
6555
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6557
|
+
[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 14:24:11.952695"], ["updated_at", "2016-04-04 14:24:11.952695"]]
|
6558
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6559
|
+
Processing by EmployeesController#update as HTML
|
6560
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"326"}
|
6561
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]
|
6562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6563
|
+
[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 14:24:11.958841"], ["id", 326]]
|
6564
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6565
|
+
Redirected to http://test.host/employees/326
|
6566
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
6567
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 326]]
|
6568
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6569
|
+
[1m[35m (0.8ms)[0m BEGIN
|
6570
|
+
----------------------------------------------
|
6571
|
+
EmployeesControllerTest: test_should_get_index
|
6572
|
+
----------------------------------------------
|
6573
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6574
|
+
[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 14:24:11.963685"], ["updated_at", "2016-04-04 14:24:11.963685"]]
|
6575
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6576
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6577
|
+
[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 14:24:11.964895"], ["updated_at", "2016-04-04 14:24:11.964895"]]
|
6578
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6579
|
+
Processing by EmployeesController#index as HTML
|
6580
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
6581
|
+
Rendered employees/index.html.erb within layouts/application (2.0ms)
|
6582
|
+
Completed 200 OK in 106ms (Views: 105.5ms | ActiveRecord: 0.1ms)
|
6583
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
6584
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6585
|
+
--------------------------------------------------
|
6586
|
+
EmployeesControllerTest: test_should_show_employee
|
6587
|
+
--------------------------------------------------
|
6588
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6589
|
+
[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 14:24:12.073577"], ["updated_at", "2016-04-04 14:24:12.073577"]]
|
6590
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6592
|
+
[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 14:24:12.074837"], ["updated_at", "2016-04-04 14:24:12.074837"]]
|
6593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6594
|
+
Processing by EmployeesController#show as HTML
|
6595
|
+
Parameters: {"id"=>"330"}
|
6596
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 330]]
|
6597
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
6598
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)
|
6599
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6600
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6601
|
+
--------------------------------------------
|
6602
|
+
EmployeesControllerTest: test_should_get_new
|
6603
|
+
--------------------------------------------
|
6604
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6605
|
+
[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 14:24:12.079608"], ["updated_at", "2016-04-04 14:24:12.079608"]]
|
6606
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6608
|
+
[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 14:24:12.080642"], ["updated_at", "2016-04-04 14:24:12.080642"]]
|
6609
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6610
|
+
Processing by EmployeesController#new as HTML
|
6611
|
+
Rendered employees/_form.html.erb (7.0ms)
|
6612
|
+
Rendered employees/new.html.erb within layouts/application (9.1ms)
|
6613
|
+
Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)
|
6614
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6615
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6616
|
+
----------------------------------------------------
|
6617
|
+
EmployeesControllerTest: test_should_create_employee
|
6618
|
+
----------------------------------------------------
|
6619
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6620
|
+
[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 14:24:12.093996"], ["updated_at", "2016-04-04 14:24:12.093996"]]
|
6621
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6622
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6623
|
+
[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 14:24:12.095198"], ["updated_at", "2016-04-04 14:24:12.095198"]]
|
6624
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6625
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6626
|
+
Processing by EmployeesController#create as HTML
|
6627
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
6628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6629
|
+
[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 14:24:12.098813"], ["updated_at", "2016-04-04 14:24:12.098813"]]
|
6630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6631
|
+
Redirected to http://test.host/employees/336
|
6632
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
6633
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6634
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
6635
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
6636
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6637
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6638
|
+
--------------------------------------------------------------
|
6639
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
6640
|
+
--------------------------------------------------------------
|
6641
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6642
|
+
[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 14:24:12.102463"], ["updated_at", "2016-04-04 14:24:12.102463"]]
|
6643
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6644
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6645
|
+
[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 14:24:12.103474"], ["updated_at", "2016-04-04 14:24:12.103474"]]
|
6646
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6647
|
+
Processing by EmployeesController#edit as HTML
|
6648
|
+
Parameters: {"id"=>"337"}
|
6649
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 337]]
|
6650
|
+
Rendered employees/_form.html.erb (1.4ms)
|
6651
|
+
Rendered employees/edit.html.erb within layouts/application (1.8ms)
|
6652
|
+
Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
|
6653
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6654
|
+
[1m[35m (0.0ms)[0m BEGIN
|
6655
|
+
---------------------------------------------
|
6656
|
+
EmployeesControllerTest: test_should_get_edit
|
6657
|
+
---------------------------------------------
|
6658
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6659
|
+
[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 14:24:12.126600"], ["updated_at", "2016-04-04 14:24:12.126600"]]
|
6660
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6661
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6662
|
+
[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 14:24:12.127733"], ["updated_at", "2016-04-04 14:24:12.127733"]]
|
6663
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6664
|
+
Processing by EmployeesController#edit as HTML
|
6665
|
+
Parameters: {"id"=>"339"}
|
6666
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 339]]
|
6667
|
+
Rendered employees/_form.html.erb (1.4ms)
|
6668
|
+
Rendered employees/edit.html.erb within layouts/application (1.6ms)
|
6669
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
6670
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6671
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6672
|
+
-----------------------------------------------------
|
6673
|
+
EmployeesControllerTest: test_should_destroy_employee
|
6674
|
+
-----------------------------------------------------
|
6675
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6676
|
+
[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 14:24:12.133007"], ["updated_at", "2016-04-04 14:24:12.133007"]]
|
6677
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6678
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6679
|
+
[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 14:24:12.134078"], ["updated_at", "2016-04-04 14:24:12.134078"]]
|
6680
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6681
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
6682
|
+
Processing by EmployeesController#destroy as HTML
|
6683
|
+
Parameters: {"id"=>"341"}
|
6684
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 341]]
|
6685
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6686
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 341]]
|
6687
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6688
|
+
Redirected to http://test.host/employees
|
6689
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
6690
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6691
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6692
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6693
|
+
---------------------------------------------------------------
|
6694
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
6695
|
+
---------------------------------------------------------------
|
6696
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6697
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6698
|
+
--------------------------------------------------------
|
6699
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
6700
|
+
--------------------------------------------------------
|
6701
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6702
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6703
|
+
-------------------------------------------------------
|
6704
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
6705
|
+
-------------------------------------------------------
|
6706
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6707
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6708
|
+
------------------------------------------
|
6709
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
6710
|
+
------------------------------------------
|
6711
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6712
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6713
|
+
-----------------------------------------------------------
|
6714
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
6715
|
+
-----------------------------------------------------------
|
6716
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6717
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6718
|
+
-------------------------------------
|
6719
|
+
GovUkDateFieldsTest: test_squash_html
|
6720
|
+
-------------------------------------
|
6721
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6723
|
+
-------------------------------------------------------------
|
6724
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
6725
|
+
-------------------------------------------------------------
|
6726
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6727
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6728
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6729
|
+
[1m[35m (0.2ms)[0m BEGIN
|
6730
|
+
-------------------------------------------------------------------------------
|
6731
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
6732
|
+
-------------------------------------------------------------------------------
|
6733
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6734
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6735
|
+
---------------------------------------------------------------------------------
|
6736
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
6737
|
+
---------------------------------------------------------------------------------
|
6738
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6739
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6740
|
+
---------------------------------------------------------------------------------
|
6741
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
6742
|
+
---------------------------------------------------------------------------------
|
6743
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6744
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6745
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6746
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
6747
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
6748
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6749
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6750
|
+
-----------------------------------------------------------------------------------------
|
6751
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
6752
|
+
-----------------------------------------------------------------------------------------
|
6753
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6754
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6755
|
+
------------------------------------------------------------------------------------------
|
6756
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
6757
|
+
------------------------------------------------------------------------------------------
|
6758
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6759
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6760
|
+
-----------------------------------------------------------------------------------------------
|
6761
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
6762
|
+
-----------------------------------------------------------------------------------------------
|
6763
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6764
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6765
|
+
------------------------------------------
|
6766
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
6767
|
+
------------------------------------------
|
6768
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6769
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6770
|
+
---------------------------------------------------
|
6771
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
6772
|
+
---------------------------------------------------
|
6773
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6774
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6775
|
+
--------------------------------------------------------
|
6776
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
6777
|
+
--------------------------------------------------------
|
6778
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6779
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6780
|
+
-------------------------------------------------------------
|
6781
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
6782
|
+
-------------------------------------------------------------
|
6783
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6784
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6785
|
+
-------------------------------------
|
6786
|
+
GovUkDateFieldsTest: test_squash_html
|
6787
|
+
-------------------------------------
|
6788
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6789
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6790
|
+
-----------------------------------------------------------
|
6791
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
6792
|
+
-----------------------------------------------------------
|
6793
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6794
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6795
|
+
-------------------------------------------------------
|
6796
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
6797
|
+
-------------------------------------------------------
|
6798
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6799
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6800
|
+
---------------------------------------------------------------
|
6801
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
6802
|
+
---------------------------------------------------------------
|
6803
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6804
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6805
|
+
----------------------------------------------------
|
6806
|
+
EmployeesControllerTest: test_should_create_employee
|
6807
|
+
----------------------------------------------------
|
6808
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
6809
|
+
[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 14:28:13.030069"], ["updated_at", "2016-04-04 14:28:13.030069"]]
|
6810
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6812
|
+
[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 14:28:13.033123"], ["updated_at", "2016-04-04 14:28:13.033123"]]
|
6813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6814
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6815
|
+
Processing by EmployeesController#create as HTML
|
6816
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
6817
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6818
|
+
[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 14:28:13.037270"], ["updated_at", "2016-04-04 14:28:13.037270"]]
|
6819
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6820
|
+
Redirected to http://test.host/employees/345
|
6821
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
6822
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6823
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
6824
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
6825
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6826
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6827
|
+
--------------------------------------------------
|
6828
|
+
EmployeesControllerTest: test_should_show_employee
|
6829
|
+
--------------------------------------------------
|
6830
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6831
|
+
[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 14:28:13.042315"], ["updated_at", "2016-04-04 14:28:13.042315"]]
|
6832
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6833
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6834
|
+
[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 14:28:13.043545"], ["updated_at", "2016-04-04 14:28:13.043545"]]
|
6835
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6836
|
+
Processing by EmployeesController#show as HTML
|
6837
|
+
Parameters: {"id"=>"346"}
|
6838
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 346]]
|
6839
|
+
Rendered employees/show.html.erb within layouts/application (0.9ms)
|
6840
|
+
Completed 200 OK in 108ms (Views: 104.4ms | ActiveRecord: 0.2ms)
|
6841
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6842
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6843
|
+
--------------------------------------------
|
6844
|
+
EmployeesControllerTest: test_should_get_new
|
6845
|
+
--------------------------------------------
|
6846
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6847
|
+
[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 14:28:13.154963"], ["updated_at", "2016-04-04 14:28:13.154963"]]
|
6848
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6849
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6850
|
+
[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 14:28:13.156182"], ["updated_at", "2016-04-04 14:28:13.156182"]]
|
6851
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6852
|
+
Processing by EmployeesController#new as HTML
|
6853
|
+
Rendered employees/_form.html.erb (5.4ms)
|
6854
|
+
Rendered employees/new.html.erb within layouts/application (7.5ms)
|
6855
|
+
Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms)
|
6856
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6857
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6858
|
+
----------------------------------------------
|
6859
|
+
EmployeesControllerTest: test_should_get_index
|
6860
|
+
----------------------------------------------
|
6861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6862
|
+
[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 14:28:13.168461"], ["updated_at", "2016-04-04 14:28:13.168461"]]
|
6863
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6864
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6865
|
+
[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 14:28:13.169958"], ["updated_at", "2016-04-04 14:28:13.169958"]]
|
6866
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6867
|
+
Processing by EmployeesController#index as HTML
|
6868
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
6869
|
+
Rendered employees/index.html.erb within layouts/application (1.7ms)
|
6870
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
6871
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6872
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6873
|
+
-----------------------------------------------------
|
6874
|
+
EmployeesControllerTest: test_should_destroy_employee
|
6875
|
+
-----------------------------------------------------
|
6876
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6877
|
+
[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 14:28:13.176189"], ["updated_at", "2016-04-04 14:28:13.176189"]]
|
6878
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6879
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6880
|
+
[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 14:28:13.177211"], ["updated_at", "2016-04-04 14:28:13.177211"]]
|
6881
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6882
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
6883
|
+
Processing by EmployeesController#destroy as HTML
|
6884
|
+
Parameters: {"id"=>"352"}
|
6885
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 352]]
|
6886
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6887
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 352]]
|
6888
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6889
|
+
Redirected to http://test.host/employees
|
6890
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
|
6891
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
6892
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6893
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6894
|
+
--------------------------------------------------------------
|
6895
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
6896
|
+
--------------------------------------------------------------
|
6897
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6898
|
+
[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 14:28:13.181888"], ["updated_at", "2016-04-04 14:28:13.181888"]]
|
6899
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6900
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6901
|
+
[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 14:28:13.182882"], ["updated_at", "2016-04-04 14:28:13.182882"]]
|
6902
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6903
|
+
Processing by EmployeesController#edit as HTML
|
6904
|
+
Parameters: {"id"=>"354"}
|
6905
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 354]]
|
6906
|
+
Rendered employees/_form.html.erb (1.3ms)
|
6907
|
+
Rendered employees/edit.html.erb within layouts/application (1.7ms)
|
6908
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
|
6909
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
6910
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6911
|
+
---------------------------------------------
|
6912
|
+
EmployeesControllerTest: test_should_get_edit
|
6913
|
+
---------------------------------------------
|
6914
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6915
|
+
[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 14:28:13.191713"], ["updated_at", "2016-04-04 14:28:13.191713"]]
|
6916
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6917
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6918
|
+
[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 14:28:13.192943"], ["updated_at", "2016-04-04 14:28:13.192943"]]
|
6919
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6920
|
+
Processing by EmployeesController#edit as HTML
|
6921
|
+
Parameters: {"id"=>"356"}
|
6922
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 356]]
|
6923
|
+
Rendered employees/_form.html.erb (2.5ms)
|
6924
|
+
Rendered employees/edit.html.erb within layouts/application (2.7ms)
|
6925
|
+
Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
|
6926
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
6927
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6928
|
+
----------------------------------------------------
|
6929
|
+
EmployeesControllerTest: test_should_update_employee
|
6930
|
+
----------------------------------------------------
|
6931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6932
|
+
[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 14:28:13.199887"], ["updated_at", "2016-04-04 14:28:13.199887"]]
|
6933
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
6934
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6935
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:28:13.222717"], ["updated_at", "2016-04-04 14:28:13.222717"]]
|
6936
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6937
|
+
Processing by EmployeesController#update as HTML
|
6938
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"358"}
|
6939
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]
|
6940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6941
|
+
[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 14:28:13.225986"], ["id", 358]]
|
6942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6943
|
+
Redirected to http://test.host/employees/358
|
6944
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
6945
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 358]]
|
6946
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6947
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6948
|
+
---------------------------------------------------------------------
|
6949
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
6950
|
+
---------------------------------------------------------------------
|
6951
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
6952
|
+
[1m[35m (0.1ms)[0m BEGIN
|
6953
|
+
-------------------------------------------------------------------------
|
6954
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
6955
|
+
-------------------------------------------------------------------------
|
6956
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6957
|
+
[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 14:28:13.230990"], ["updated_at", "2016-04-04 14:28:13.230990"]]
|
6958
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6960
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
6961
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6962
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6963
|
+
---------------------------------------------------------------------
|
6964
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
6965
|
+
---------------------------------------------------------------------
|
6966
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6967
|
+
[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 14:28:13.233467"], ["updated_at", "2016-04-04 14:28:13.233467"]]
|
6968
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6969
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6970
|
+
[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 14:28:13.234783"], ["id", 361]]
|
6971
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6972
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6973
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6974
|
+
-----------------------------------------------------------------------------------
|
6975
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
6976
|
+
-----------------------------------------------------------------------------------
|
6977
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6978
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6979
|
+
-------------------------------------------------------------------------------------------------------------------
|
6980
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
6981
|
+
-------------------------------------------------------------------------------------------------------------------
|
6982
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6983
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6984
|
+
-----------------------------------------------------------------
|
6985
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
6986
|
+
-----------------------------------------------------------------
|
6987
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6988
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
6989
|
+
----------------------------------------------------------------------------------------------
|
6990
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
6991
|
+
----------------------------------------------------------------------------------------------
|
6992
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6993
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6994
|
+
-----------------------------------------------------------------------
|
6995
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
6996
|
+
-----------------------------------------------------------------------
|
6997
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
6998
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
6999
|
+
----------------------------------------------
|
7000
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
7001
|
+
----------------------------------------------
|
7002
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7003
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7004
|
+
-------------------------------------------
|
7005
|
+
EmployeeTest: test_invalid_day_raises_error
|
7006
|
+
-------------------------------------------
|
7007
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7008
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7009
|
+
-----------------------------------------------------------
|
7010
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
7011
|
+
-----------------------------------------------------------
|
7012
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7013
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7014
|
+
----------------------------------------------------------------------------------------------------------------
|
7015
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
7016
|
+
----------------------------------------------------------------------------------------------------------------
|
7017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7019
|
+
--------------------------------------------
|
7020
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
7021
|
+
--------------------------------------------
|
7022
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7023
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7024
|
+
---------------------------------------------------------------------------------------------------------
|
7025
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
7026
|
+
---------------------------------------------------------------------------------------------------------
|
7027
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7028
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7029
|
+
--------------------------------------------------------------------------
|
7030
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
7031
|
+
--------------------------------------------------------------------------
|
7032
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7033
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7034
|
+
------------------------------------------------------------------------------------------
|
7035
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
7036
|
+
------------------------------------------------------------------------------------------
|
7037
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7038
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7039
|
+
------------------------------------------------------------------------
|
7040
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
7041
|
+
------------------------------------------------------------------------
|
7042
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7044
|
+
-----------------------------------------------------------
|
7045
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
7046
|
+
-----------------------------------------------------------
|
7047
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7048
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7049
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7050
|
+
---------------------------------------------------------------
|
7051
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7052
|
+
---------------------------------------------------------------
|
7053
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7054
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7055
|
+
-------------------------------------
|
7056
|
+
GovUkDateFieldsTest: test_squash_html
|
7057
|
+
-------------------------------------
|
7058
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7059
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7060
|
+
--------------------------------------------------------
|
7061
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7062
|
+
--------------------------------------------------------
|
7063
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7064
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7065
|
+
-------------------------------------------------------------
|
7066
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7067
|
+
-------------------------------------------------------------
|
7068
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7069
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7070
|
+
---------------------------------------------------
|
7071
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7072
|
+
---------------------------------------------------
|
7073
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7074
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7075
|
+
------------------------------------------
|
7076
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7077
|
+
------------------------------------------
|
7078
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7079
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7080
|
+
-----------------------------------------------------------
|
7081
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7082
|
+
-----------------------------------------------------------
|
7083
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7084
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7085
|
+
-------------------------------------------------------
|
7086
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7087
|
+
-------------------------------------------------------
|
7088
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7089
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7090
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7091
|
+
-------------------------------------------------------
|
7092
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7093
|
+
-------------------------------------------------------
|
7094
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7095
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7096
|
+
------------------------------------------
|
7097
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7098
|
+
------------------------------------------
|
7099
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7100
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7101
|
+
--------------------------------------------------------
|
7102
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7103
|
+
--------------------------------------------------------
|
7104
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7105
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7106
|
+
-------------------------------------------------------------
|
7107
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7108
|
+
-------------------------------------------------------------
|
7109
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7110
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7111
|
+
---------------------------------------------------
|
7112
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7113
|
+
---------------------------------------------------
|
7114
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7115
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7116
|
+
-----------------------------------------------------------
|
7117
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7118
|
+
-----------------------------------------------------------
|
7119
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7120
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7121
|
+
-------------------------------------
|
7122
|
+
GovUkDateFieldsTest: test_squash_html
|
7123
|
+
-------------------------------------
|
7124
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7125
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7126
|
+
---------------------------------------------------------------
|
7127
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7128
|
+
---------------------------------------------------------------
|
7129
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7131
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7132
|
+
--------------------------------------------------------
|
7133
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7134
|
+
--------------------------------------------------------
|
7135
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7136
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7137
|
+
-------------------------------------------------------------
|
7138
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7139
|
+
-------------------------------------------------------------
|
7140
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7141
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7142
|
+
------------------------------------------
|
7143
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7144
|
+
------------------------------------------
|
7145
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7146
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7147
|
+
-------------------------------------------------------
|
7148
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7149
|
+
-------------------------------------------------------
|
7150
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7151
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7152
|
+
---------------------------------------------------------------
|
7153
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7154
|
+
---------------------------------------------------------------
|
7155
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7156
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7157
|
+
-----------------------------------------------------------
|
7158
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7159
|
+
-----------------------------------------------------------
|
7160
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7161
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7162
|
+
-------------------------------------
|
7163
|
+
GovUkDateFieldsTest: test_squash_html
|
7164
|
+
-------------------------------------
|
7165
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7166
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7167
|
+
---------------------------------------------------
|
7168
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7169
|
+
---------------------------------------------------
|
7170
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7172
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7173
|
+
-------------------------------------
|
7174
|
+
GovUkDateFieldsTest: test_squash_html
|
7175
|
+
-------------------------------------
|
7176
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7177
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7178
|
+
------------------------------------------
|
7179
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7180
|
+
------------------------------------------
|
7181
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7182
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7183
|
+
-----------------------------------------------------------
|
7184
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7185
|
+
-----------------------------------------------------------
|
7186
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7187
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7188
|
+
--------------------------------------------------------
|
7189
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7190
|
+
--------------------------------------------------------
|
7191
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7192
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7193
|
+
-------------------------------------------------------------
|
7194
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7195
|
+
-------------------------------------------------------------
|
7196
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7197
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7198
|
+
-------------------------------------------------------
|
7199
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7200
|
+
-------------------------------------------------------
|
7201
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7202
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7203
|
+
---------------------------------------------------
|
7204
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7205
|
+
---------------------------------------------------
|
7206
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7207
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7208
|
+
---------------------------------------------------------------
|
7209
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7210
|
+
---------------------------------------------------------------
|
7211
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7212
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7213
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7214
|
+
------------------------------------------
|
7215
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7216
|
+
------------------------------------------
|
7217
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7218
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7219
|
+
---------------------------------------------------
|
7220
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7221
|
+
---------------------------------------------------
|
7222
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7223
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7224
|
+
-------------------------------------
|
7225
|
+
GovUkDateFieldsTest: test_squash_html
|
7226
|
+
-------------------------------------
|
7227
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7228
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7229
|
+
-------------------------------------------------------------
|
7230
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7231
|
+
-------------------------------------------------------------
|
7232
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7233
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7234
|
+
-----------------------------------------------------------
|
7235
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7236
|
+
-----------------------------------------------------------
|
7237
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7238
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7239
|
+
--------------------------------------------------------
|
7240
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7241
|
+
--------------------------------------------------------
|
7242
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7243
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7244
|
+
---------------------------------------------------------------
|
7245
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7246
|
+
---------------------------------------------------------------
|
7247
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7248
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7249
|
+
-------------------------------------------------------
|
7250
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7251
|
+
-------------------------------------------------------
|
7252
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7253
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7254
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7255
|
+
---------------------------------------------------------------
|
7256
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7257
|
+
---------------------------------------------------------------
|
7258
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7259
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7260
|
+
-----------------------------------------------------------
|
7261
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7262
|
+
-----------------------------------------------------------
|
7263
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7264
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7265
|
+
------------------------------------------
|
7266
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7267
|
+
------------------------------------------
|
7268
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7269
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7270
|
+
-------------------------------------------------------------
|
7271
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7272
|
+
-------------------------------------------------------------
|
7273
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7274
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7275
|
+
---------------------------------------------------
|
7276
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7277
|
+
---------------------------------------------------
|
7278
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7279
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7280
|
+
-------------------------------------
|
7281
|
+
GovUkDateFieldsTest: test_squash_html
|
7282
|
+
-------------------------------------
|
7283
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7284
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7285
|
+
--------------------------------------------------------
|
7286
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7287
|
+
--------------------------------------------------------
|
7288
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7289
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7290
|
+
-------------------------------------------------------
|
7291
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7292
|
+
-------------------------------------------------------
|
7293
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7294
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7295
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7296
|
+
-------------------------------------
|
7297
|
+
GovUkDateFieldsTest: test_squash_html
|
7298
|
+
-------------------------------------
|
7299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7300
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7301
|
+
-------------------------------------------------------
|
7302
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7303
|
+
-------------------------------------------------------
|
7304
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7305
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7306
|
+
-------------------------------------------------------------
|
7307
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7308
|
+
-------------------------------------------------------------
|
7309
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7310
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7311
|
+
---------------------------------------------------------------
|
7312
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7313
|
+
---------------------------------------------------------------
|
7314
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7315
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7316
|
+
---------------------------------------------------
|
7317
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7318
|
+
---------------------------------------------------
|
7319
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
7320
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7321
|
+
--------------------------------------------------------
|
7322
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7323
|
+
--------------------------------------------------------
|
7324
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7325
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7326
|
+
-----------------------------------------------------------
|
7327
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7328
|
+
-----------------------------------------------------------
|
7329
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7330
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7331
|
+
------------------------------------------
|
7332
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7333
|
+
------------------------------------------
|
7334
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7335
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7336
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7337
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7338
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7339
|
+
-------------------------------------------------------------
|
7340
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7341
|
+
-------------------------------------------------------------
|
7342
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7344
|
+
---------------------------------------------------
|
7345
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7346
|
+
---------------------------------------------------
|
7347
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7348
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7349
|
+
-------------------------------------
|
7350
|
+
GovUkDateFieldsTest: test_squash_html
|
7351
|
+
-------------------------------------
|
7352
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7353
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7354
|
+
---------------------------------------------------------------
|
7355
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7356
|
+
---------------------------------------------------------------
|
7357
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7358
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7359
|
+
-------------------------------------------------------
|
7360
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7361
|
+
-------------------------------------------------------
|
7362
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7363
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7364
|
+
------------------------------------------
|
7365
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7366
|
+
------------------------------------------
|
7367
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7368
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7369
|
+
-----------------------------------------------------------
|
7370
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7371
|
+
-----------------------------------------------------------
|
7372
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7373
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7374
|
+
--------------------------------------------------------
|
7375
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7376
|
+
--------------------------------------------------------
|
7377
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7378
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7379
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7380
|
+
---------------------------------------------------
|
7381
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7382
|
+
---------------------------------------------------
|
7383
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7384
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7385
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7386
|
+
---------------------------------------------------
|
7387
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7388
|
+
---------------------------------------------------
|
7389
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7390
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7391
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7392
|
+
---------------------------------------------------
|
7393
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7394
|
+
---------------------------------------------------
|
7395
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7396
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7397
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7398
|
+
---------------------------------------------------
|
7399
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7400
|
+
---------------------------------------------------
|
7401
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7402
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7403
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7404
|
+
---------------------------------------------------
|
7405
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7406
|
+
---------------------------------------------------
|
7407
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7408
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7409
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7410
|
+
---------------------------------------------------
|
7411
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7412
|
+
---------------------------------------------------
|
7413
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7415
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7416
|
+
---------------------------------------------------
|
7417
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7418
|
+
---------------------------------------------------
|
7419
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7420
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7421
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7422
|
+
---------------------------------------------------
|
7423
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7424
|
+
---------------------------------------------------
|
7425
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7427
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7428
|
+
---------------------------------------------------------------
|
7429
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7430
|
+
---------------------------------------------------------------
|
7431
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7432
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7433
|
+
-------------------------------------------------------
|
7434
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7435
|
+
-------------------------------------------------------
|
7436
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7437
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7438
|
+
-------------------------------------
|
7439
|
+
GovUkDateFieldsTest: test_squash_html
|
7440
|
+
-------------------------------------
|
7441
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7442
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7443
|
+
-------------------------------------------------------------
|
7444
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7445
|
+
-------------------------------------------------------------
|
7446
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7447
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7448
|
+
--------------------------------------------------------
|
7449
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7450
|
+
--------------------------------------------------------
|
7451
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7452
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7453
|
+
-----------------------------------------------------------
|
7454
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7455
|
+
-----------------------------------------------------------
|
7456
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7457
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7458
|
+
---------------------------------------------------
|
7459
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7460
|
+
---------------------------------------------------
|
7461
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7462
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7463
|
+
------------------------------------------
|
7464
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7465
|
+
------------------------------------------
|
7466
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7467
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7468
|
+
[1m[35m (0.2ms)[0m BEGIN
|
7469
|
+
-----------------------------------------------------------------------------------
|
7470
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
7471
|
+
-----------------------------------------------------------------------------------
|
7472
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7473
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7474
|
+
-----------------------------------------------------------------------
|
7475
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
7476
|
+
-----------------------------------------------------------------------
|
7477
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7478
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7479
|
+
---------------------------------------------------------------------
|
7480
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
7481
|
+
---------------------------------------------------------------------
|
7482
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7483
|
+
[1m[35mSQL (0.9ms)[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 14:53:38.284961"], ["updated_at", "2016-04-04 14:53:38.284961"]]
|
7484
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7485
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7486
|
+
[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 14:53:38.288635"], ["id", 362]]
|
7487
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7488
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7489
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7490
|
+
------------------------------------------------------------------------------------------
|
7491
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
7492
|
+
------------------------------------------------------------------------------------------
|
7493
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7494
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7495
|
+
----------------------------------------------------------------------------------------------------------------
|
7496
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
7497
|
+
----------------------------------------------------------------------------------------------------------------
|
7498
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7500
|
+
-------------------------------------------
|
7501
|
+
EmployeeTest: test_invalid_day_raises_error
|
7502
|
+
-------------------------------------------
|
7503
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7504
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7505
|
+
---------------------------------------------------------------------------------------------------------
|
7506
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
7507
|
+
---------------------------------------------------------------------------------------------------------
|
7508
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7509
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7510
|
+
----------------------------------------------
|
7511
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
7512
|
+
----------------------------------------------
|
7513
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7514
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7515
|
+
-----------------------------------------------------------------
|
7516
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
7517
|
+
-----------------------------------------------------------------
|
7518
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7519
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7520
|
+
------------------------------------------------------------------------
|
7521
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
7522
|
+
------------------------------------------------------------------------
|
7523
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7524
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7525
|
+
-------------------------------------------------------------------------------------------------------------------
|
7526
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
7527
|
+
-------------------------------------------------------------------------------------------------------------------
|
7528
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7529
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7530
|
+
--------------------------------------------------------------------------
|
7531
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
7532
|
+
--------------------------------------------------------------------------
|
7533
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7534
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7535
|
+
-----------------------------------------------------------
|
7536
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
7537
|
+
-----------------------------------------------------------
|
7538
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7539
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7540
|
+
----------------------------------------------------------------------------------------------
|
7541
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
7542
|
+
----------------------------------------------------------------------------------------------
|
7543
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7544
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7545
|
+
--------------------------------------------
|
7546
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
7547
|
+
--------------------------------------------
|
7548
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7549
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7550
|
+
-------------------------------------------------------------------------
|
7551
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
7552
|
+
-------------------------------------------------------------------------
|
7553
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "John"], ["dob", "1963-08-13"], ["joined", "2014-04-21"], ["created_at", "2016-04-04 14:53:38.302017"], ["updated_at", "2016-04-04 14:53:38.302017"]]
|
7555
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7556
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7557
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
7558
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7559
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7560
|
+
-----------------------------------------------------------
|
7561
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
7562
|
+
-----------------------------------------------------------
|
7563
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7564
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7565
|
+
---------------------------------------------------------------------
|
7566
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
7567
|
+
---------------------------------------------------------------------
|
7568
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7569
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7570
|
+
--------------------------------------------
|
7571
|
+
EmployeesControllerTest: test_should_get_new
|
7572
|
+
--------------------------------------------
|
7573
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
7574
|
+
[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 14:53:38.330593"], ["updated_at", "2016-04-04 14:53:38.330593"]]
|
7575
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7576
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7577
|
+
[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 14:53:38.331852"], ["updated_at", "2016-04-04 14:53:38.331852"]]
|
7578
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7579
|
+
Processing by EmployeesController#new as HTML
|
7580
|
+
Rendered employees/_form.html.erb (7.7ms)
|
7581
|
+
Rendered employees/new.html.erb within layouts/application (10.4ms)
|
7582
|
+
Completed 200 OK in 133ms (Views: 132.9ms | ActiveRecord: 0.0ms)
|
7583
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7584
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7585
|
+
---------------------------------------------
|
7586
|
+
EmployeesControllerTest: test_should_get_edit
|
7587
|
+
---------------------------------------------
|
7588
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7589
|
+
[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 14:53:38.469073"], ["updated_at", "2016-04-04 14:53:38.469073"]]
|
7590
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7591
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7592
|
+
[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 14:53:38.470408"], ["updated_at", "2016-04-04 14:53:38.470408"]]
|
7593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7594
|
+
Processing by EmployeesController#edit as HTML
|
7595
|
+
Parameters: {"id"=>"366"}
|
7596
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 366]]
|
7597
|
+
Rendered employees/_form.html.erb (2.6ms)
|
7598
|
+
Rendered employees/edit.html.erb within layouts/application (3.2ms)
|
7599
|
+
Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.2ms)
|
7600
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
7601
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7602
|
+
----------------------------------------------------
|
7603
|
+
EmployeesControllerTest: test_should_update_employee
|
7604
|
+
----------------------------------------------------
|
7605
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7606
|
+
[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 14:53:38.481369"], ["updated_at", "2016-04-04 14:53:38.481369"]]
|
7607
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7608
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7609
|
+
[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 14:53:38.482701"], ["updated_at", "2016-04-04 14:53:38.482701"]]
|
7610
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7611
|
+
Processing by EmployeesController#update as HTML
|
7612
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"368"}
|
7613
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 368]]
|
7614
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7615
|
+
[1m[36mSQL (0.1ms)[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 14:53:38.485897"], ["id", 368]]
|
7616
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7617
|
+
Redirected to http://test.host/employees/368
|
7618
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
7619
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 368]]
|
7620
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7621
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7622
|
+
----------------------------------------------------
|
7623
|
+
EmployeesControllerTest: test_should_create_employee
|
7624
|
+
----------------------------------------------------
|
7625
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
7626
|
+
[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 14:53:38.489531"], ["updated_at", "2016-04-04 14:53:38.489531"]]
|
7627
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7628
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
7629
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Tony"], ["dob", "1965-05-17"], ["joined", "2014-05-21"], ["created_at", "2016-04-04 14:53:38.491548"], ["updated_at", "2016-04-04 14:53:38.491548"]]
|
7630
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7631
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
7632
|
+
Processing by EmployeesController#create as HTML
|
7633
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
7634
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7635
|
+
[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 14:53:38.495709"], ["updated_at", "2016-04-04 14:53:38.495709"]]
|
7636
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7637
|
+
Redirected to http://test.host/employees/372
|
7638
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
7639
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
7640
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
7641
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
7642
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7643
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7644
|
+
----------------------------------------------
|
7645
|
+
EmployeesControllerTest: test_should_get_index
|
7646
|
+
----------------------------------------------
|
7647
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7648
|
+
[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 14:53:38.500086"], ["updated_at", "2016-04-04 14:53:38.500086"]]
|
7649
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7650
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7651
|
+
[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 14:53:38.501225"], ["updated_at", "2016-04-04 14:53:38.501225"]]
|
7652
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7653
|
+
Processing by EmployeesController#index as HTML
|
7654
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
7655
|
+
Rendered employees/index.html.erb within layouts/application (1.9ms)
|
7656
|
+
Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms)
|
7657
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
7658
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7659
|
+
-----------------------------------------------------
|
7660
|
+
EmployeesControllerTest: test_should_destroy_employee
|
7661
|
+
-----------------------------------------------------
|
7662
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7663
|
+
[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 14:53:38.508229"], ["updated_at", "2016-04-04 14:53:38.508229"]]
|
7664
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7665
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7666
|
+
[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 14:53:38.510262"], ["updated_at", "2016-04-04 14:53:38.510262"]]
|
7667
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7668
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
7669
|
+
Processing by EmployeesController#destroy as HTML
|
7670
|
+
Parameters: {"id"=>"375"}
|
7671
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 375]]
|
7672
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7673
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 375]]
|
7674
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7675
|
+
Redirected to http://test.host/employees
|
7676
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
|
7677
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
7678
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7679
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7680
|
+
--------------------------------------------------------------
|
7681
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
7682
|
+
--------------------------------------------------------------
|
7683
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7684
|
+
[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 14:53:38.515063"], ["updated_at", "2016-04-04 14:53:38.515063"]]
|
7685
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7687
|
+
[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 14:53:38.516060"], ["updated_at", "2016-04-04 14:53:38.516060"]]
|
7688
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7689
|
+
Processing by EmployeesController#edit as HTML
|
7690
|
+
Parameters: {"id"=>"377"}
|
7691
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 377]]
|
7692
|
+
Rendered employees/_form.html.erb (1.4ms)
|
7693
|
+
Rendered employees/edit.html.erb within layouts/application (1.6ms)
|
7694
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
7695
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
7696
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7697
|
+
--------------------------------------------------
|
7698
|
+
EmployeesControllerTest: test_should_show_employee
|
7699
|
+
--------------------------------------------------
|
7700
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7701
|
+
[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 14:53:38.523437"], ["updated_at", "2016-04-04 14:53:38.523437"]]
|
7702
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7703
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7704
|
+
[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 14:53:38.524602"], ["updated_at", "2016-04-04 14:53:38.524602"]]
|
7705
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7706
|
+
Processing by EmployeesController#show as HTML
|
7707
|
+
Parameters: {"id"=>"379"}
|
7708
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 379]]
|
7709
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
7710
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
7711
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7712
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7713
|
+
------------------------------------------
|
7714
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
7715
|
+
------------------------------------------
|
7716
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7717
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7718
|
+
-------------------------------------
|
7719
|
+
GovUkDateFieldsTest: test_squash_html
|
7720
|
+
-------------------------------------
|
7721
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7723
|
+
---------------------------------------------------
|
7724
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class
|
7725
|
+
---------------------------------------------------
|
7726
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7727
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7728
|
+
-----------------------------------------------------------
|
7729
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
7730
|
+
-----------------------------------------------------------
|
7731
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7732
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7733
|
+
-------------------------------------------------------------
|
7734
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
7735
|
+
-------------------------------------------------------------
|
7736
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7737
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7738
|
+
-------------------------------------------------------
|
7739
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
7740
|
+
-------------------------------------------------------
|
7741
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7742
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7743
|
+
--------------------------------------------------------
|
7744
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
7745
|
+
--------------------------------------------------------
|
7746
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7747
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7748
|
+
---------------------------------------------------------------
|
7749
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
7750
|
+
---------------------------------------------------------------
|
7751
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7752
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7753
|
+
-----------------------------------------------------------------------------------------
|
7754
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
7755
|
+
-----------------------------------------------------------------------------------------
|
7756
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7757
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7758
|
+
-----------------------------------------------------------------------------------------------
|
7759
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
7760
|
+
-----------------------------------------------------------------------------------------------
|
7761
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7762
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7763
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
7764
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
7765
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
7766
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7768
|
+
------------------------------------------------------------------------------------------
|
7769
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
7770
|
+
------------------------------------------------------------------------------------------
|
7771
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7772
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7773
|
+
-------------------------------------------------------------------------------
|
7774
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
7775
|
+
-------------------------------------------------------------------------------
|
7776
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7777
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7778
|
+
---------------------------------------------------------------------------------
|
7779
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
7780
|
+
---------------------------------------------------------------------------------
|
7781
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
7782
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
7783
|
+
---------------------------------------------------------------------------------
|
7784
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
7785
|
+
---------------------------------------------------------------------------------
|
7786
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|