gov_uk_date_fields 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gov_uk_date_fields/form_fields.rb +12 -10
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/log/test.log +1481 -0
- data/test/form_fields_test.rb +58 -58
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6abac7b6934a7b36e232dbd07781ad7bd3f4b9a
|
4
|
+
data.tar.gz: a47c8c9de6753239610d871d589cb9fac26247ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6c7638c8b83397eb1a1da9460bf334c5dfb5b881dbb6ce0c65d5c3614f8c59046ef4d4655e4feb9f166960e52641ef83a3a17b7680c35aaf76c181ceffe7b21
|
7
|
+
data.tar.gz: a4e92d2a87d50ffe059770a00bf7e2808abb98190f8d528f441a72abf5e44f73ce26073ee1ef97c7d40426229539bbfa0d1915458d1fe2c7f0390bacc5b6ce8f
|
@@ -6,7 +6,7 @@ module GovUkDateFields
|
|
6
6
|
DATE_SEGMENTS = {
|
7
7
|
day: '_dd',
|
8
8
|
month: '_mm',
|
9
|
-
year: '_yyyy'
|
9
|
+
year: '_yyyy',
|
10
10
|
}
|
11
11
|
|
12
12
|
DEFAULT_PLACEHOLDERS = {
|
@@ -74,7 +74,8 @@ module GovUkDateFields
|
|
74
74
|
result = "<fieldset"
|
75
75
|
result += %Q| id="#{@fieldset_id}"| unless @fieldset_id.nil?
|
76
76
|
result += %Q| class="error"| if error_for_attr?
|
77
|
-
result
|
77
|
+
result += ">"
|
78
|
+
result
|
78
79
|
end
|
79
80
|
|
80
81
|
def generate_end_fieldset
|
@@ -96,8 +97,9 @@ module GovUkDateFields
|
|
96
97
|
@object.errors[@attribute].each do |message|
|
97
98
|
result += %Q|<li><span class="error-message">#{message}</span></li>|
|
98
99
|
end
|
99
|
-
result
|
100
|
+
result += "</ul>"
|
100
101
|
end
|
102
|
+
result
|
101
103
|
end
|
102
104
|
|
103
105
|
def generate_day_value
|
@@ -122,8 +124,8 @@ module GovUkDateFields
|
|
122
124
|
def generate_day_input_field(day_value)
|
123
125
|
%Q|
|
124
126
|
<div class="form-group form-group-day">
|
125
|
-
<label for="#{
|
126
|
-
<input class="form-control" id="#{
|
127
|
+
<label for="#{html_id(:day)}">Day</label>
|
128
|
+
<input class="form-control" id="#{html_id(:day)}" name="#{html_name(:day)}" type="number" pattern="[0-9]*" min="0" max="31" aria-describedby="#{@attribute}-hint" #{generate_day_value}>
|
127
129
|
</div>
|
128
130
|
|
|
129
131
|
end
|
@@ -131,8 +133,8 @@ module GovUkDateFields
|
|
131
133
|
def generate_month_input_field(month_value)
|
132
134
|
%Q|
|
133
135
|
<div class="form-group form-group-month">
|
134
|
-
<label for="#{
|
135
|
-
<input class="form-control" id="#{
|
136
|
+
<label for="#{html_id(:month)}">Month</label>
|
137
|
+
<input class="form-control" id="#{html_id(:month)}" name="#{html_name(:month)}" type="number" pattern="[0-9]*" min="0" max="12" #{generate_month_value}>
|
136
138
|
</div>
|
137
139
|
|
|
138
140
|
end
|
@@ -140,8 +142,8 @@ module GovUkDateFields
|
|
140
142
|
def generate_year_input_field(year_value)
|
141
143
|
%Q|
|
142
144
|
<div class="form-group form-group-year">
|
143
|
-
<label for="#{
|
144
|
-
<input class="form-control" id="#{
|
145
|
+
<label for="#{html_id(:year)}">Year</label>
|
146
|
+
<input class="form-control" id="#{html_id(:year)}" name="#{html_name(:year)}" type="number" pattern="[0-9]*" min="0" max="#{Date.today.year}" #{generate_year_value}>
|
145
147
|
</div>
|
146
148
|
|
|
147
149
|
end
|
@@ -175,7 +177,7 @@ module GovUkDateFields
|
|
175
177
|
end
|
176
178
|
|
177
179
|
def html_id(date_segment)
|
178
|
-
|
180
|
+
"#{@object_name}_#{@attribute}#{DATE_SEGMENTS[date_segment]}"
|
179
181
|
end
|
180
182
|
|
181
183
|
def html_name(date_segment)
|
data/test/dummy/log/test.log
CHANGED
@@ -9814,3 +9814,1484 @@ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_dat
|
|
9814
9814
|
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
9815
9815
|
----------------------------------------------------------------------------------------------------------------------------------
|
9816
9816
|
[1m[35m (0.1ms)[0m ROLLBACK
|
9817
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9818
|
+
[1m[35m (0.2ms)[0m BEGIN
|
9819
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9820
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
9821
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
9822
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
9823
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9824
|
+
-----------------------------------------------------------------------------------------
|
9825
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
9826
|
+
-----------------------------------------------------------------------------------------
|
9827
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9828
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9829
|
+
---------------------------------------------------------------------------------
|
9830
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
9831
|
+
---------------------------------------------------------------------------------
|
9832
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9833
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9834
|
+
-----------------------------------------------------------------------------------------------
|
9835
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
9836
|
+
-----------------------------------------------------------------------------------------------
|
9837
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9838
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9839
|
+
-------------------------------------------------------------------------------
|
9840
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
9841
|
+
-------------------------------------------------------------------------------
|
9842
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9843
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9844
|
+
---------------------------------------------------------------------------------
|
9845
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
9846
|
+
---------------------------------------------------------------------------------
|
9847
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9848
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9849
|
+
------------------------------------------------------------------------------------------
|
9850
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
9851
|
+
------------------------------------------------------------------------------------------
|
9852
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9853
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9854
|
+
---------------------------------------------------------------
|
9855
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
9856
|
+
---------------------------------------------------------------
|
9857
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9858
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9859
|
+
-------------------------------------
|
9860
|
+
GovUkDateFieldsTest: test_squash_html
|
9861
|
+
-------------------------------------
|
9862
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9863
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9864
|
+
------------------------------------------
|
9865
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
9866
|
+
------------------------------------------
|
9867
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9868
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9869
|
+
-----------------------------------------------------------
|
9870
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
9871
|
+
-----------------------------------------------------------
|
9872
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9873
|
+
[1m[35m (0.0ms)[0m BEGIN
|
9874
|
+
---------------------------------------------------------------
|
9875
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
9876
|
+
---------------------------------------------------------------
|
9877
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9878
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9879
|
+
-------------------------------------------------------------
|
9880
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
9881
|
+
-------------------------------------------------------------
|
9882
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9883
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9884
|
+
-------------------------------------------------------
|
9885
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
9886
|
+
-------------------------------------------------------
|
9887
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9888
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9889
|
+
--------------------------------------------------------
|
9890
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
9891
|
+
--------------------------------------------------------
|
9892
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9893
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9894
|
+
-----------------------------------------------------------
|
9895
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
9896
|
+
-----------------------------------------------------------
|
9897
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9898
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9899
|
+
---------------------------------------------------------------------------------------------------------
|
9900
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
9901
|
+
---------------------------------------------------------------------------------------------------------
|
9902
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
9903
|
+
[1m[35m (0.1ms)[0m BEGIN
|
9904
|
+
-------------------------------------------------------------------------
|
9905
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
9906
|
+
-------------------------------------------------------------------------
|
9907
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9908
|
+
[1m[35mSQL (0.5ms)[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-05 12:29:23.626945"], ["updated_at", "2016-04-05 12:29:23.626945"]]
|
9909
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9910
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9911
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9912
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9913
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9914
|
+
--------------------------------------------
|
9915
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
9916
|
+
--------------------------------------------
|
9917
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9918
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9919
|
+
-----------------------------------------------------------
|
9920
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
9921
|
+
-----------------------------------------------------------
|
9922
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9923
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9924
|
+
------------------------------------------------------------------------------------------
|
9925
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
9926
|
+
------------------------------------------------------------------------------------------
|
9927
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9928
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9929
|
+
----------------------------------------------
|
9930
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
9931
|
+
----------------------------------------------
|
9932
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9933
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9934
|
+
---------------------------------------------------------------------
|
9935
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
9936
|
+
---------------------------------------------------------------------
|
9937
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9938
|
+
[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-05 12:29:23.634069"], ["updated_at", "2016-04-05 12:29:23.634069"]]
|
9939
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9940
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9941
|
+
[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-05 12:29:23.635082"], ["id", 515]]
|
9942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9943
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9944
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9945
|
+
-------------------------------------------
|
9946
|
+
EmployeeTest: test_invalid_day_raises_error
|
9947
|
+
-------------------------------------------
|
9948
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9949
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9950
|
+
---------------------------------------------------------------------
|
9951
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
9952
|
+
---------------------------------------------------------------------
|
9953
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9954
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9955
|
+
-----------------------------------------------------------------------
|
9956
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
9957
|
+
-----------------------------------------------------------------------
|
9958
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9959
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9960
|
+
----------------------------------------------------------------------------------------------
|
9961
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
9962
|
+
----------------------------------------------------------------------------------------------
|
9963
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9964
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9965
|
+
-------------------------------------------------------------------------------------------------------------------
|
9966
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
9967
|
+
-------------------------------------------------------------------------------------------------------------------
|
9968
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9969
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9970
|
+
----------------------------------------------------------------------------------------------------------------
|
9971
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
9972
|
+
----------------------------------------------------------------------------------------------------------------
|
9973
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9974
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9975
|
+
--------------------------------------------------------------------------
|
9976
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
9977
|
+
--------------------------------------------------------------------------
|
9978
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9979
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9980
|
+
------------------------------------------------------------------------
|
9981
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
9982
|
+
------------------------------------------------------------------------
|
9983
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9984
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9985
|
+
-----------------------------------------------------------------
|
9986
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
9987
|
+
-----------------------------------------------------------------
|
9988
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9989
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9990
|
+
-----------------------------------------------------------------------------------
|
9991
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
9992
|
+
-----------------------------------------------------------------------------------
|
9993
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
9994
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
9995
|
+
--------------------------------------------
|
9996
|
+
EmployeesControllerTest: test_should_get_new
|
9997
|
+
--------------------------------------------
|
9998
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9999
|
+
[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-05 12:29:23.670529"], ["updated_at", "2016-04-05 12:29:23.670529"]]
|
10000
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10001
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10002
|
+
[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-05 12:29:23.671765"], ["updated_at", "2016-04-05 12:29:23.671765"]]
|
10003
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10004
|
+
Processing by EmployeesController#new as HTML
|
10005
|
+
Rendered employees/_form.html.erb (6.3ms)
|
10006
|
+
Rendered employees/new.html.erb within layouts/application (9.8ms)
|
10007
|
+
Completed 200 OK in 129ms (Views: 128.2ms | ActiveRecord: 0.0ms)
|
10008
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
10009
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10010
|
+
--------------------------------------------------
|
10011
|
+
EmployeesControllerTest: test_should_show_employee
|
10012
|
+
--------------------------------------------------
|
10013
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10014
|
+
[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-05 12:29:23.804200"], ["updated_at", "2016-04-05 12:29:23.804200"]]
|
10015
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10017
|
+
[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-05 12:29:23.805485"], ["updated_at", "2016-04-05 12:29:23.805485"]]
|
10018
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10019
|
+
Processing by EmployeesController#show as HTML
|
10020
|
+
Parameters: {"id"=>"518"}
|
10021
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 518]]
|
10022
|
+
Rendered employees/show.html.erb within layouts/application (0.8ms)
|
10023
|
+
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
10024
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10025
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10026
|
+
----------------------------------------------------
|
10027
|
+
EmployeesControllerTest: test_should_create_employee
|
10028
|
+
----------------------------------------------------
|
10029
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10030
|
+
[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-05 12:29:23.813126"], ["updated_at", "2016-04-05 12:29:23.813126"]]
|
10031
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10032
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10033
|
+
[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-05 12:29:23.814284"], ["updated_at", "2016-04-05 12:29:23.814284"]]
|
10034
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10035
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10036
|
+
Processing by EmployeesController#create as HTML
|
10037
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
10038
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10039
|
+
[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-05 12:29:23.817313"], ["updated_at", "2016-04-05 12:29:23.817313"]]
|
10040
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10041
|
+
Redirected to http://test.host/employees/522
|
10042
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
10043
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10044
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
10045
|
+
[1m[36mEmployee Load (0.3ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
10046
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10047
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10048
|
+
-----------------------------------------------------
|
10049
|
+
EmployeesControllerTest: test_should_destroy_employee
|
10050
|
+
-----------------------------------------------------
|
10051
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10052
|
+
[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-05 12:29:23.821044"], ["updated_at", "2016-04-05 12:29:23.821044"]]
|
10053
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10054
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
10055
|
+
[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-05 12:29:23.822266"], ["updated_at", "2016-04-05 12:29:23.822266"]]
|
10056
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10057
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
10058
|
+
Processing by EmployeesController#destroy as HTML
|
10059
|
+
Parameters: {"id"=>"523"}
|
10060
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 523]]
|
10061
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10062
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 523]]
|
10063
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10064
|
+
Redirected to http://test.host/employees
|
10065
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
|
10066
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10067
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10068
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10069
|
+
----------------------------------------------
|
10070
|
+
EmployeesControllerTest: test_should_get_index
|
10071
|
+
----------------------------------------------
|
10072
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10073
|
+
[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-05 12:29:23.827008"], ["updated_at", "2016-04-05 12:29:23.827008"]]
|
10074
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10075
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10076
|
+
[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-05 12:29:23.828039"], ["updated_at", "2016-04-05 12:29:23.828039"]]
|
10077
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10078
|
+
Processing by EmployeesController#index as HTML
|
10079
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
10080
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
10081
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
10082
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10083
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10084
|
+
--------------------------------------------------------------
|
10085
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
10086
|
+
--------------------------------------------------------------
|
10087
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10088
|
+
[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-05 12:29:23.833697"], ["updated_at", "2016-04-05 12:29:23.833697"]]
|
10089
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10090
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10091
|
+
[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-05 12:29:23.834762"], ["updated_at", "2016-04-05 12:29:23.834762"]]
|
10092
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10093
|
+
Processing by EmployeesController#edit as HTML
|
10094
|
+
Parameters: {"id"=>"527"}
|
10095
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 527]]
|
10096
|
+
Rendered employees/_form.html.erb (1.5ms)
|
10097
|
+
Rendered employees/edit.html.erb within layouts/application (2.0ms)
|
10098
|
+
Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
|
10099
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10100
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10101
|
+
---------------------------------------------
|
10102
|
+
EmployeesControllerTest: test_should_get_edit
|
10103
|
+
---------------------------------------------
|
10104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10105
|
+
[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-05 12:29:23.849028"], ["updated_at", "2016-04-05 12:29:23.849028"]]
|
10106
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10107
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10108
|
+
[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-05 12:29:23.850195"], ["updated_at", "2016-04-05 12:29:23.850195"]]
|
10109
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10110
|
+
Processing by EmployeesController#edit as HTML
|
10111
|
+
Parameters: {"id"=>"529"}
|
10112
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 529]]
|
10113
|
+
Rendered employees/_form.html.erb (1.4ms)
|
10114
|
+
Rendered employees/edit.html.erb within layouts/application (1.6ms)
|
10115
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
10116
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10117
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10118
|
+
----------------------------------------------------
|
10119
|
+
EmployeesControllerTest: test_should_update_employee
|
10120
|
+
----------------------------------------------------
|
10121
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10122
|
+
[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-05 12:29:23.855475"], ["updated_at", "2016-04-05 12:29:23.855475"]]
|
10123
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10125
|
+
[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-05 12:29:23.856693"], ["updated_at", "2016-04-05 12:29:23.856693"]]
|
10126
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10127
|
+
Processing by EmployeesController#update as HTML
|
10128
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"531"}
|
10129
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 531]]
|
10130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10131
|
+
[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-05 12:29:23.859463"], ["id", 531]]
|
10132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10133
|
+
Redirected to http://test.host/employees/531
|
10134
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
10135
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 531]]
|
10136
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10137
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10138
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10139
|
+
-------------------------------------------
|
10140
|
+
EmployeeTest: test_invalid_day_raises_error
|
10141
|
+
-------------------------------------------
|
10142
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10143
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10144
|
+
---------------------------------------------------------------------
|
10145
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
10146
|
+
---------------------------------------------------------------------
|
10147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10148
|
+
[1m[35mSQL (0.4ms)[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-05 12:30:11.508486"], ["updated_at", "2016-04-05 12:30:11.508486"]]
|
10149
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10151
|
+
[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-05 12:30:11.511812"], ["id", 533]]
|
10152
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10153
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10154
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10155
|
+
-----------------------------------------------------------------------------------
|
10156
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
10157
|
+
-----------------------------------------------------------------------------------
|
10158
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10159
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10160
|
+
------------------------------------------------------------------------
|
10161
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
10162
|
+
------------------------------------------------------------------------
|
10163
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10164
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10165
|
+
------------------------------------------------------------------------------------------
|
10166
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
10167
|
+
------------------------------------------------------------------------------------------
|
10168
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10169
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10170
|
+
----------------------------------------------------------------------------------------------
|
10171
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
10172
|
+
----------------------------------------------------------------------------------------------
|
10173
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10174
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10175
|
+
---------------------------------------------------------------------------------------------------------
|
10176
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
10177
|
+
---------------------------------------------------------------------------------------------------------
|
10178
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10179
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10180
|
+
-----------------------------------------------------------------
|
10181
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
10182
|
+
-----------------------------------------------------------------
|
10183
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10184
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10185
|
+
----------------------------------------------------------------------------------------------------------------
|
10186
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
10187
|
+
----------------------------------------------------------------------------------------------------------------
|
10188
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10189
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10190
|
+
-------------------------------------------------------------------------------------------------------------------
|
10191
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
10192
|
+
-------------------------------------------------------------------------------------------------------------------
|
10193
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10194
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10195
|
+
----------------------------------------------
|
10196
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
10197
|
+
----------------------------------------------
|
10198
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10199
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10200
|
+
---------------------------------------------------------------------
|
10201
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
10202
|
+
---------------------------------------------------------------------
|
10203
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10204
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10205
|
+
-----------------------------------------------------------
|
10206
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
10207
|
+
-----------------------------------------------------------
|
10208
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10209
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10210
|
+
--------------------------------------------
|
10211
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
10212
|
+
--------------------------------------------
|
10213
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10214
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10215
|
+
-----------------------------------------------------------
|
10216
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
10217
|
+
-----------------------------------------------------------
|
10218
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10219
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10220
|
+
--------------------------------------------------------------------------
|
10221
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
10222
|
+
--------------------------------------------------------------------------
|
10223
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10224
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10225
|
+
-----------------------------------------------------------------------
|
10226
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
10227
|
+
-----------------------------------------------------------------------
|
10228
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10229
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10230
|
+
-------------------------------------------------------------------------
|
10231
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
10232
|
+
-------------------------------------------------------------------------
|
10233
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10234
|
+
[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-05 12:30:11.537473"], ["updated_at", "2016-04-05 12:30:11.537473"]]
|
10235
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10236
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10237
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10238
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10239
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10240
|
+
---------------------------------------------------------------------------------
|
10241
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
10242
|
+
---------------------------------------------------------------------------------
|
10243
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10244
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10245
|
+
---------------------------------------------------------------------------------
|
10246
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
10247
|
+
---------------------------------------------------------------------------------
|
10248
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10249
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10250
|
+
-----------------------------------------------------------------------------------------------
|
10251
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
10252
|
+
-----------------------------------------------------------------------------------------------
|
10253
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10254
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10255
|
+
------------------------------------------------------------------------------------------
|
10256
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
10257
|
+
------------------------------------------------------------------------------------------
|
10258
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10259
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10260
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
10261
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
10262
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
10263
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10264
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10265
|
+
-----------------------------------------------------------------------------------------
|
10266
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
10267
|
+
-----------------------------------------------------------------------------------------
|
10268
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10269
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10270
|
+
-------------------------------------------------------------------------------
|
10271
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
10272
|
+
-------------------------------------------------------------------------------
|
10273
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10274
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10275
|
+
---------------------------------------------
|
10276
|
+
EmployeesControllerTest: test_should_get_edit
|
10277
|
+
---------------------------------------------
|
10278
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
10279
|
+
[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-05 12:30:11.570324"], ["updated_at", "2016-04-05 12:30:11.570324"]]
|
10280
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10281
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10282
|
+
[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-05 12:30:11.571741"], ["updated_at", "2016-04-05 12:30:11.571741"]]
|
10283
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10284
|
+
Processing by EmployeesController#edit as HTML
|
10285
|
+
Parameters: {"id"=>"535"}
|
10286
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 535]]
|
10287
|
+
Rendered employees/_form.html.erb (8.3ms)
|
10288
|
+
Rendered employees/edit.html.erb within layouts/application (11.2ms)
|
10289
|
+
Completed 200 OK in 114ms (Views: 111.3ms | ActiveRecord: 0.2ms)
|
10290
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10291
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10292
|
+
----------------------------------------------------
|
10293
|
+
EmployeesControllerTest: test_should_create_employee
|
10294
|
+
----------------------------------------------------
|
10295
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10296
|
+
[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-05 12:30:11.690517"], ["updated_at", "2016-04-05 12:30:11.690517"]]
|
10297
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10298
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10299
|
+
[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-05 12:30:11.691781"], ["updated_at", "2016-04-05 12:30:11.691781"]]
|
10300
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10301
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10302
|
+
Processing by EmployeesController#create as HTML
|
10303
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
10304
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10305
|
+
[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-05 12:30:11.694819"], ["updated_at", "2016-04-05 12:30:11.694819"]]
|
10306
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10307
|
+
Redirected to http://test.host/employees/539
|
10308
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
10309
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10310
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
10311
|
+
[1m[36mEmployee Load (0.4ms)[0m [1mSELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1[0m
|
10312
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10313
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10314
|
+
--------------------------------------------
|
10315
|
+
EmployeesControllerTest: test_should_get_new
|
10316
|
+
--------------------------------------------
|
10317
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10318
|
+
[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-05 12:30:11.698766"], ["updated_at", "2016-04-05 12:30:11.698766"]]
|
10319
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10320
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10321
|
+
[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-05 12:30:11.699805"], ["updated_at", "2016-04-05 12:30:11.699805"]]
|
10322
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10323
|
+
Processing by EmployeesController#new as HTML
|
10324
|
+
Rendered employees/_form.html.erb (1.4ms)
|
10325
|
+
Rendered employees/new.html.erb within layouts/application (1.8ms)
|
10326
|
+
Completed 200 OK in 3ms (Views: 3.3ms | ActiveRecord: 0.0ms)
|
10327
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10328
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10329
|
+
-----------------------------------------------------
|
10330
|
+
EmployeesControllerTest: test_should_destroy_employee
|
10331
|
+
-----------------------------------------------------
|
10332
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10333
|
+
[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-05 12:30:11.705909"], ["updated_at", "2016-04-05 12:30:11.705909"]]
|
10334
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10335
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10336
|
+
[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-05 12:30:11.706975"], ["updated_at", "2016-04-05 12:30:11.706975"]]
|
10337
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10338
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
10339
|
+
Processing by EmployeesController#destroy as HTML
|
10340
|
+
Parameters: {"id"=>"542"}
|
10341
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 542]]
|
10342
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10343
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "employees" WHERE "employees"."id" = $1[0m [["id", 542]]
|
10344
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10345
|
+
Redirected to http://test.host/employees
|
10346
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
|
10347
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10348
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10349
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10350
|
+
----------------------------------------------------
|
10351
|
+
EmployeesControllerTest: test_should_update_employee
|
10352
|
+
----------------------------------------------------
|
10353
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10354
|
+
[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-05 12:30:11.711815"], ["updated_at", "2016-04-05 12:30:11.711815"]]
|
10355
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10356
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10357
|
+
[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-05 12:30:11.712823"], ["updated_at", "2016-04-05 12:30:11.712823"]]
|
10358
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10359
|
+
Processing by EmployeesController#update as HTML
|
10360
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"544"}
|
10361
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]
|
10362
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10363
|
+
[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-05 12:30:11.715408"], ["id", 544]]
|
10364
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10365
|
+
Redirected to http://test.host/employees/544
|
10366
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
10367
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 544]]
|
10368
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10369
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10370
|
+
--------------------------------------------------------------
|
10371
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
10372
|
+
--------------------------------------------------------------
|
10373
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10374
|
+
[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-05 12:30:11.718271"], ["updated_at", "2016-04-05 12:30:11.718271"]]
|
10375
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10376
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10377
|
+
[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-05 12:30:11.719253"], ["updated_at", "2016-04-05 12:30:11.719253"]]
|
10378
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10379
|
+
Processing by EmployeesController#edit as HTML
|
10380
|
+
Parameters: {"id"=>"546"}
|
10381
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 546]]
|
10382
|
+
Rendered employees/_form.html.erb (1.4ms)
|
10383
|
+
Rendered employees/edit.html.erb within layouts/application (1.6ms)
|
10384
|
+
Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
|
10385
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10386
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10387
|
+
--------------------------------------------------
|
10388
|
+
EmployeesControllerTest: test_should_show_employee
|
10389
|
+
--------------------------------------------------
|
10390
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10391
|
+
[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-05 12:30:11.726423"], ["updated_at", "2016-04-05 12:30:11.726423"]]
|
10392
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10393
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10394
|
+
[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-05 12:30:11.727786"], ["updated_at", "2016-04-05 12:30:11.727786"]]
|
10395
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10396
|
+
Processing by EmployeesController#show as HTML
|
10397
|
+
Parameters: {"id"=>"548"}
|
10398
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 548]]
|
10399
|
+
Rendered employees/show.html.erb within layouts/application (1.6ms)
|
10400
|
+
Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
|
10401
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10402
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10403
|
+
----------------------------------------------
|
10404
|
+
EmployeesControllerTest: test_should_get_index
|
10405
|
+
----------------------------------------------
|
10406
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10407
|
+
[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-05 12:30:11.734203"], ["updated_at", "2016-04-05 12:30:11.734203"]]
|
10408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10409
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10410
|
+
[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-05 12:30:11.735196"], ["updated_at", "2016-04-05 12:30:11.735196"]]
|
10411
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10412
|
+
Processing by EmployeesController#index as HTML
|
10413
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
10414
|
+
Rendered employees/index.html.erb within layouts/application (1.3ms)
|
10415
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)
|
10416
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10417
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10418
|
+
---------------------------------------------------------------
|
10419
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
10420
|
+
---------------------------------------------------------------
|
10421
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10422
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10423
|
+
-------------------------------------------------------
|
10424
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
10425
|
+
-------------------------------------------------------
|
10426
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10427
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10428
|
+
-----------------------------------------------------------
|
10429
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
10430
|
+
-----------------------------------------------------------
|
10431
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10432
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10433
|
+
-------------------------------------------------------------
|
10434
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
10435
|
+
-------------------------------------------------------------
|
10436
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10437
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10438
|
+
--------------------------------------------------------
|
10439
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
10440
|
+
--------------------------------------------------------
|
10441
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10442
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10443
|
+
-------------------------------------
|
10444
|
+
GovUkDateFieldsTest: test_squash_html
|
10445
|
+
-------------------------------------
|
10446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10448
|
+
------------------------------------------
|
10449
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10450
|
+
------------------------------------------
|
10451
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10452
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10453
|
+
---------------------------------------------------------------
|
10454
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10455
|
+
---------------------------------------------------------------
|
10456
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10457
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10458
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10459
|
+
---------------------------------------------
|
10460
|
+
EmployeesControllerTest: test_should_get_edit
|
10461
|
+
---------------------------------------------
|
10462
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10463
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 12:30:33.851478"], ["updated_at", "2016-04-05 12:30:33.851478"]]
|
10464
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10465
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10466
|
+
[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-05 12:30:33.854993"], ["updated_at", "2016-04-05 12:30:33.854993"]]
|
10467
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10468
|
+
Processing by EmployeesController#edit as HTML
|
10469
|
+
Parameters: {"id"=>"552"}
|
10470
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 552]]
|
10471
|
+
Rendered employees/_form.html.erb (7.8ms)
|
10472
|
+
Rendered employees/edit.html.erb within layouts/application (10.5ms)
|
10473
|
+
Completed 200 OK in 119ms (Views: 115.8ms | ActiveRecord: 0.2ms)
|
10474
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
10475
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10476
|
+
----------------------------------------------
|
10477
|
+
EmployeesControllerTest: test_should_get_index
|
10478
|
+
----------------------------------------------
|
10479
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10480
|
+
[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-05 12:30:33.978650"], ["updated_at", "2016-04-05 12:30:33.978650"]]
|
10481
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10482
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10483
|
+
[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-05 12:30:33.979918"], ["updated_at", "2016-04-05 12:30:33.979918"]]
|
10484
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10485
|
+
Processing by EmployeesController#index as HTML
|
10486
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees"
|
10487
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
10488
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
|
10489
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10490
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10491
|
+
--------------------------------------------
|
10492
|
+
EmployeesControllerTest: test_should_get_new
|
10493
|
+
--------------------------------------------
|
10494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10495
|
+
[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-05 12:30:33.985616"], ["updated_at", "2016-04-05 12:30:33.985616"]]
|
10496
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10498
|
+
[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-05 12:30:33.986759"], ["updated_at", "2016-04-05 12:30:33.986759"]]
|
10499
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10500
|
+
Processing by EmployeesController#new as HTML
|
10501
|
+
Rendered employees/_form.html.erb (1.3ms)
|
10502
|
+
Rendered employees/new.html.erb within layouts/application (1.7ms)
|
10503
|
+
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
10504
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10505
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10506
|
+
-----------------------------------------------------
|
10507
|
+
EmployeesControllerTest: test_should_destroy_employee
|
10508
|
+
-----------------------------------------------------
|
10509
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10510
|
+
[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-05 12:30:33.992397"], ["updated_at", "2016-04-05 12:30:33.992397"]]
|
10511
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10512
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10513
|
+
[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-05 12:30:33.993454"], ["updated_at", "2016-04-05 12:30:33.993454"]]
|
10514
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10515
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10516
|
+
Processing by EmployeesController#destroy as HTML
|
10517
|
+
Parameters: {"id"=>"558"}
|
10518
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 558]]
|
10519
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10520
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 558]]
|
10521
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10522
|
+
Redirected to http://test.host/employees
|
10523
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
10524
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
10525
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10526
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10527
|
+
--------------------------------------------------------------
|
10528
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
10529
|
+
--------------------------------------------------------------
|
10530
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10531
|
+
[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-05 12:30:33.998632"], ["updated_at", "2016-04-05 12:30:33.998632"]]
|
10532
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10534
|
+
[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-05 12:30:33.999699"], ["updated_at", "2016-04-05 12:30:33.999699"]]
|
10535
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10536
|
+
Processing by EmployeesController#edit as HTML
|
10537
|
+
Parameters: {"id"=>"560"}
|
10538
|
+
[1m[36mEmployee Load (0.1ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 560]]
|
10539
|
+
Rendered employees/_form.html.erb (1.3ms)
|
10540
|
+
Rendered employees/edit.html.erb within layouts/application (1.5ms)
|
10541
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
|
10542
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10543
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10544
|
+
----------------------------------------------------
|
10545
|
+
EmployeesControllerTest: test_should_create_employee
|
10546
|
+
----------------------------------------------------
|
10547
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10548
|
+
[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-05 12:30:34.006573"], ["updated_at", "2016-04-05 12:30:34.006573"]]
|
10549
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10550
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10551
|
+
[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-05 12:30:34.007672"], ["updated_at", "2016-04-05 12:30:34.007672"]]
|
10552
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10553
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
10554
|
+
Processing by EmployeesController#create as HTML
|
10555
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
10556
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10557
|
+
[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-05 12:30:34.010363"], ["updated_at", "2016-04-05 12:30:34.010363"]]
|
10558
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10559
|
+
Redirected to http://test.host/employees/564
|
10560
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
10561
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
10562
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
10563
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
10564
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10565
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10566
|
+
--------------------------------------------------
|
10567
|
+
EmployeesControllerTest: test_should_show_employee
|
10568
|
+
--------------------------------------------------
|
10569
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10570
|
+
[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-05 12:30:34.014195"], ["updated_at", "2016-04-05 12:30:34.014195"]]
|
10571
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10572
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10573
|
+
[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-05 12:30:34.015375"], ["updated_at", "2016-04-05 12:30:34.015375"]]
|
10574
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10575
|
+
Processing by EmployeesController#show as HTML
|
10576
|
+
Parameters: {"id"=>"565"}
|
10577
|
+
[1m[36mEmployee Load (0.5ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 565]]
|
10578
|
+
Rendered employees/show.html.erb within layouts/application (0.6ms)
|
10579
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)
|
10580
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10581
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10582
|
+
----------------------------------------------------
|
10583
|
+
EmployeesControllerTest: test_should_update_employee
|
10584
|
+
----------------------------------------------------
|
10585
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10586
|
+
[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-05 12:30:34.021992"], ["updated_at", "2016-04-05 12:30:34.021992"]]
|
10587
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10588
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10589
|
+
[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-05 12:30:34.022958"], ["updated_at", "2016-04-05 12:30:34.022958"]]
|
10590
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10591
|
+
Processing by EmployeesController#update as HTML
|
10592
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"567"}
|
10593
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]
|
10594
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10595
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "employees" SET "name" = $1, "dob" = $2, "joined" = $3, "updated_at" = $4 WHERE "employees"."id" = $5 [["name", "Ioannis Kole"], ["dob", "1981-11-01"], ["joined", "2015-10-03"], ["updated_at", "2016-04-05 12:30:34.025506"], ["id", 567]]
|
10596
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10597
|
+
Redirected to http://test.host/employees/567
|
10598
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
10599
|
+
[1m[35mEmployee Load (0.1ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 567]]
|
10600
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10601
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10602
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
10603
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
10604
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
10605
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10606
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10607
|
+
-----------------------------------------------------------------------------------------
|
10608
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
10609
|
+
-----------------------------------------------------------------------------------------
|
10610
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10611
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10612
|
+
-------------------------------------------------------------------------------
|
10613
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
10614
|
+
-------------------------------------------------------------------------------
|
10615
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10616
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10617
|
+
------------------------------------------------------------------------------------------
|
10618
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
10619
|
+
------------------------------------------------------------------------------------------
|
10620
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10621
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10622
|
+
---------------------------------------------------------------------------------
|
10623
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
10624
|
+
---------------------------------------------------------------------------------
|
10625
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10626
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10627
|
+
---------------------------------------------------------------------------------
|
10628
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
10629
|
+
---------------------------------------------------------------------------------
|
10630
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10631
|
+
[1m[35m (0.0ms)[0m BEGIN
|
10632
|
+
-----------------------------------------------------------------------------------------------
|
10633
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
10634
|
+
-----------------------------------------------------------------------------------------------
|
10635
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10636
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10637
|
+
---------------------------------------------------------------------------------------------------------
|
10638
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
10639
|
+
---------------------------------------------------------------------------------------------------------
|
10640
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10641
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10642
|
+
------------------------------------------------------------------------------------------
|
10643
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
10644
|
+
------------------------------------------------------------------------------------------
|
10645
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10646
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10647
|
+
---------------------------------------------------------------------
|
10648
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
10649
|
+
---------------------------------------------------------------------
|
10650
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10651
|
+
[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-05 12:30:34.035999"], ["updated_at", "2016-04-05 12:30:34.035999"]]
|
10652
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10653
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10654
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-05 12:30:34.037082"], ["id", 569]]
|
10655
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10656
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10657
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10658
|
+
-----------------------------------------------------------------------
|
10659
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
10660
|
+
-----------------------------------------------------------------------
|
10661
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10662
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10663
|
+
---------------------------------------------------------------------
|
10664
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
10665
|
+
---------------------------------------------------------------------
|
10666
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10667
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10668
|
+
----------------------------------------------
|
10669
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
10670
|
+
----------------------------------------------
|
10671
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10672
|
+
[1m[35m (0.0ms)[0m BEGIN
|
10673
|
+
-----------------------------------------------------------------
|
10674
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
10675
|
+
-----------------------------------------------------------------
|
10676
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10677
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10678
|
+
----------------------------------------------------------------------------------------------------------------
|
10679
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
10680
|
+
----------------------------------------------------------------------------------------------------------------
|
10681
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10682
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10683
|
+
-------------------------------------------------------------------------------------------------------------------
|
10684
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
10685
|
+
-------------------------------------------------------------------------------------------------------------------
|
10686
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10687
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10688
|
+
-----------------------------------------------------------------------------------
|
10689
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
10690
|
+
-----------------------------------------------------------------------------------
|
10691
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10692
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10693
|
+
--------------------------------------------------------------------------
|
10694
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
10695
|
+
--------------------------------------------------------------------------
|
10696
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10697
|
+
[1m[35m (0.0ms)[0m BEGIN
|
10698
|
+
-----------------------------------------------------------
|
10699
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
10700
|
+
-----------------------------------------------------------
|
10701
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10702
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10703
|
+
--------------------------------------------
|
10704
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
10705
|
+
--------------------------------------------
|
10706
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10707
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10708
|
+
------------------------------------------------------------------------
|
10709
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
10710
|
+
------------------------------------------------------------------------
|
10711
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10712
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10713
|
+
-----------------------------------------------------------
|
10714
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
10715
|
+
-----------------------------------------------------------
|
10716
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10717
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10718
|
+
-------------------------------------------------------------------------
|
10719
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
10720
|
+
-------------------------------------------------------------------------
|
10721
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10722
|
+
[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-05 12:30:34.046036"], ["updated_at", "2016-04-05 12:30:34.046036"]]
|
10723
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10724
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10725
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10726
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10727
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10728
|
+
-------------------------------------------
|
10729
|
+
EmployeeTest: test_invalid_day_raises_error
|
10730
|
+
-------------------------------------------
|
10731
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10732
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10733
|
+
----------------------------------------------------------------------------------------------
|
10734
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
10735
|
+
----------------------------------------------------------------------------------------------
|
10736
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10737
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10738
|
+
-----------------------------------------------------------
|
10739
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
10740
|
+
-----------------------------------------------------------
|
10741
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10742
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10743
|
+
-------------------------------------------------------------
|
10744
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
10745
|
+
-------------------------------------------------------------
|
10746
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10747
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10748
|
+
---------------------------------------------------------------
|
10749
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
10750
|
+
---------------------------------------------------------------
|
10751
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10752
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
10753
|
+
-------------------------------------
|
10754
|
+
GovUkDateFieldsTest: test_squash_html
|
10755
|
+
-------------------------------------
|
10756
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10757
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10758
|
+
---------------------------------------------------------------
|
10759
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10760
|
+
---------------------------------------------------------------
|
10761
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10762
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10763
|
+
-------------------------------------------------------
|
10764
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
10765
|
+
-------------------------------------------------------
|
10766
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10767
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10768
|
+
--------------------------------------------------------
|
10769
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
10770
|
+
--------------------------------------------------------
|
10771
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10772
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10773
|
+
------------------------------------------
|
10774
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10775
|
+
------------------------------------------
|
10776
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
10777
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10778
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10779
|
+
---------------------------------------------------------------
|
10780
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10781
|
+
---------------------------------------------------------------
|
10782
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10783
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10784
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10785
|
+
---------------------------------------------------------------
|
10786
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10787
|
+
---------------------------------------------------------------
|
10788
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10789
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10790
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10791
|
+
------------------------------------------
|
10792
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10793
|
+
------------------------------------------
|
10794
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10795
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10796
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10797
|
+
------------------------------------------
|
10798
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10799
|
+
------------------------------------------
|
10800
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10801
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10802
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10803
|
+
------------------------------------------
|
10804
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10805
|
+
------------------------------------------
|
10806
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
10807
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10808
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10809
|
+
------------------------------------------
|
10810
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10811
|
+
------------------------------------------
|
10812
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10813
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10814
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10815
|
+
------------------------------------------
|
10816
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10817
|
+
------------------------------------------
|
10818
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10819
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10820
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10821
|
+
------------------------------------------
|
10822
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10823
|
+
------------------------------------------
|
10824
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10825
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10826
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10827
|
+
------------------------------------------
|
10828
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10829
|
+
------------------------------------------
|
10830
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10831
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10832
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10833
|
+
------------------------------------------
|
10834
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10835
|
+
------------------------------------------
|
10836
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10837
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10838
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10839
|
+
------------------------------------------
|
10840
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10841
|
+
------------------------------------------
|
10842
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
10843
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10844
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10845
|
+
------------------------------------------
|
10846
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10847
|
+
------------------------------------------
|
10848
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10849
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10850
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10851
|
+
------------------------------------------
|
10852
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10853
|
+
------------------------------------------
|
10854
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10855
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10856
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10857
|
+
---------------------------------------------------------------
|
10858
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10859
|
+
---------------------------------------------------------------
|
10860
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10861
|
+
[1m[35m (0.0ms)[0m BEGIN
|
10862
|
+
-------------------------------------------------------------
|
10863
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
10864
|
+
-------------------------------------------------------------
|
10865
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10866
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10867
|
+
------------------------------------------
|
10868
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10869
|
+
------------------------------------------
|
10870
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10871
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10872
|
+
--------------------------------------------------------
|
10873
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
10874
|
+
--------------------------------------------------------
|
10875
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10876
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10877
|
+
---------------------------------------------------------------
|
10878
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
10879
|
+
---------------------------------------------------------------
|
10880
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10881
|
+
[1m[35m (0.0ms)[0m BEGIN
|
10882
|
+
-----------------------------------------------------------
|
10883
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
10884
|
+
-----------------------------------------------------------
|
10885
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10886
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10887
|
+
-------------------------------------------------------
|
10888
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
10889
|
+
-------------------------------------------------------
|
10890
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10891
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10892
|
+
-------------------------------------
|
10893
|
+
GovUkDateFieldsTest: test_squash_html
|
10894
|
+
-------------------------------------
|
10895
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10896
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10897
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10898
|
+
-------------------------------------------------------------
|
10899
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
10900
|
+
-------------------------------------------------------------
|
10901
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10902
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10903
|
+
--------------------------------------------------------
|
10904
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
10905
|
+
--------------------------------------------------------
|
10906
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10907
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10908
|
+
---------------------------------------------------------------
|
10909
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
10910
|
+
---------------------------------------------------------------
|
10911
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10912
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10913
|
+
-------------------------------------------------------
|
10914
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
10915
|
+
-------------------------------------------------------
|
10916
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10917
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10918
|
+
-----------------------------------------------------------
|
10919
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
10920
|
+
-----------------------------------------------------------
|
10921
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
10922
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10923
|
+
------------------------------------------
|
10924
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10925
|
+
------------------------------------------
|
10926
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10927
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10928
|
+
-------------------------------------
|
10929
|
+
GovUkDateFieldsTest: test_squash_html
|
10930
|
+
-------------------------------------
|
10931
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10932
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10933
|
+
---------------------------------------------------------------
|
10934
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10935
|
+
---------------------------------------------------------------
|
10936
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10937
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10938
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10939
|
+
---------------------------------------------------------------
|
10940
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
10941
|
+
---------------------------------------------------------------
|
10942
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10943
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10944
|
+
-------------------------------------------------------------
|
10945
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
10946
|
+
-------------------------------------------------------------
|
10947
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10948
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10949
|
+
---------------------------------------------------------------
|
10950
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
10951
|
+
---------------------------------------------------------------
|
10952
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10953
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10954
|
+
------------------------------------------
|
10955
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
10956
|
+
------------------------------------------
|
10957
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10958
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10959
|
+
-------------------------------------------------------
|
10960
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
10961
|
+
-------------------------------------------------------
|
10962
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10964
|
+
-------------------------------------
|
10965
|
+
GovUkDateFieldsTest: test_squash_html
|
10966
|
+
-------------------------------------
|
10967
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10968
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10969
|
+
--------------------------------------------------------
|
10970
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
10971
|
+
--------------------------------------------------------
|
10972
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10973
|
+
[1m[35m (0.1ms)[0m BEGIN
|
10974
|
+
-----------------------------------------------------------
|
10975
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
10976
|
+
-----------------------------------------------------------
|
10977
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
10978
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
10979
|
+
[1m[35m (0.2ms)[0m BEGIN
|
10980
|
+
---------------------------------------------
|
10981
|
+
EmployeesControllerTest: test_should_get_edit
|
10982
|
+
---------------------------------------------
|
10983
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10984
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "employees" ("name", "dob", "joined", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Stephen"], ["dob", "1963-08-13"], ["joined", "2014-04-01"], ["created_at", "2016-04-05 13:15:01.641664"], ["updated_at", "2016-04-05 13:15:01.641664"]]
|
10985
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10986
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10987
|
+
[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-05 13:15:01.645888"], ["updated_at", "2016-04-05 13:15:01.645888"]]
|
10988
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10989
|
+
Processing by EmployeesController#edit as HTML
|
10990
|
+
Parameters: {"id"=>"571"}
|
10991
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 571]]
|
10992
|
+
Rendered employees/_form.html.erb (8.2ms)
|
10993
|
+
Rendered employees/edit.html.erb within layouts/application (11.1ms)
|
10994
|
+
Completed 200 OK in 118ms (Views: 114.3ms | ActiveRecord: 0.2ms)
|
10995
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
10996
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
10997
|
+
----------------------------------------------------
|
10998
|
+
EmployeesControllerTest: test_should_update_employee
|
10999
|
+
----------------------------------------------------
|
11000
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11001
|
+
[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-05 13:15:01.768289"], ["updated_at", "2016-04-05 13:15:01.768289"]]
|
11002
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11003
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11004
|
+
[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-05 13:15:01.769567"], ["updated_at", "2016-04-05 13:15:01.769567"]]
|
11005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11006
|
+
Processing by EmployeesController#update as HTML
|
11007
|
+
Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"573"}
|
11008
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]
|
11009
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11010
|
+
[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-05 13:15:01.772425"], ["id", 573]]
|
11011
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11012
|
+
Redirected to http://test.host/employees/573
|
11013
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
11014
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 573]]
|
11015
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11016
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11017
|
+
----------------------------------------------
|
11018
|
+
EmployeesControllerTest: test_should_get_index
|
11019
|
+
----------------------------------------------
|
11020
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11021
|
+
[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-05 13:15:01.776274"], ["updated_at", "2016-04-05 13:15:01.776274"]]
|
11022
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11023
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11024
|
+
[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-05 13:15:01.777387"], ["updated_at", "2016-04-05 13:15:01.777387"]]
|
11025
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11026
|
+
Processing by EmployeesController#index as HTML
|
11027
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees"[0m
|
11028
|
+
Rendered employees/index.html.erb within layouts/application (1.4ms)
|
11029
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
11030
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11031
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11032
|
+
--------------------------------------------------------------
|
11033
|
+
EmployeesControllerTest: test_should_render_gov_uk_date_fields
|
11034
|
+
--------------------------------------------------------------
|
11035
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11036
|
+
[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-05 13:15:01.782929"], ["updated_at", "2016-04-05 13:15:01.782929"]]
|
11037
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11038
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11039
|
+
[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-05 13:15:01.784002"], ["updated_at", "2016-04-05 13:15:01.784002"]]
|
11040
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11041
|
+
Processing by EmployeesController#edit as HTML
|
11042
|
+
Parameters: {"id"=>"577"}
|
11043
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 577]]
|
11044
|
+
Rendered employees/_form.html.erb (1.3ms)
|
11045
|
+
Rendered employees/edit.html.erb within layouts/application (1.5ms)
|
11046
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
11047
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11048
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11049
|
+
--------------------------------------------------
|
11050
|
+
EmployeesControllerTest: test_should_show_employee
|
11051
|
+
--------------------------------------------------
|
11052
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11053
|
+
[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-05 13:15:01.790999"], ["updated_at", "2016-04-05 13:15:01.790999"]]
|
11054
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11056
|
+
[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-05 13:15:01.792158"], ["updated_at", "2016-04-05 13:15:01.792158"]]
|
11057
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11058
|
+
Processing by EmployeesController#show as HTML
|
11059
|
+
Parameters: {"id"=>"579"}
|
11060
|
+
[1m[36mEmployee Load (0.2ms)[0m [1mSELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1[0m [["id", 579]]
|
11061
|
+
Rendered employees/show.html.erb within layouts/application (0.5ms)
|
11062
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
|
11063
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11064
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11065
|
+
----------------------------------------------------
|
11066
|
+
EmployeesControllerTest: test_should_create_employee
|
11067
|
+
----------------------------------------------------
|
11068
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11069
|
+
[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-05 13:15:01.797158"], ["updated_at", "2016-04-05 13:15:01.797158"]]
|
11070
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11071
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11072
|
+
[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-05 13:15:01.798234"], ["updated_at", "2016-04-05 13:15:01.798234"]]
|
11073
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11074
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
11075
|
+
Processing by EmployeesController#create as HTML
|
11076
|
+
Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
|
11077
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11078
|
+
[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-05 13:15:01.801053"], ["updated_at", "2016-04-05 13:15:01.801053"]]
|
11079
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11080
|
+
Redirected to http://test.host/employees/583
|
11081
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
11082
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "employees"
|
11083
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
11084
|
+
[1m[35mEmployee Load (0.3ms)[0m SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
|
11085
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11086
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11087
|
+
-----------------------------------------------------
|
11088
|
+
EmployeesControllerTest: test_should_destroy_employee
|
11089
|
+
-----------------------------------------------------
|
11090
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11091
|
+
[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-05 13:15:01.805018"], ["updated_at", "2016-04-05 13:15:01.805018"]]
|
11092
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11093
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11094
|
+
[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-05 13:15:01.806232"], ["updated_at", "2016-04-05 13:15:01.806232"]]
|
11095
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11096
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "employees"[0m
|
11097
|
+
Processing by EmployeesController#destroy as HTML
|
11098
|
+
Parameters: {"id"=>"584"}
|
11099
|
+
[1m[35mEmployee Load (0.2ms)[0m SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 584]]
|
11100
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11101
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 584]]
|
11102
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11103
|
+
Redirected to http://test.host/employees
|
11104
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
|
11105
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "employees"
|
11106
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11107
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11108
|
+
--------------------------------------------
|
11109
|
+
EmployeesControllerTest: test_should_get_new
|
11110
|
+
--------------------------------------------
|
11111
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11112
|
+
[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-05 13:15:01.811958"], ["updated_at", "2016-04-05 13:15:01.811958"]]
|
11113
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11114
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11115
|
+
[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-05 13:15:01.812896"], ["updated_at", "2016-04-05 13:15:01.812896"]]
|
11116
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11117
|
+
Processing by EmployeesController#new as HTML
|
11118
|
+
Rendered employees/_form.html.erb (1.3ms)
|
11119
|
+
Rendered employees/new.html.erb within layouts/application (1.7ms)
|
11120
|
+
Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
11121
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11122
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11123
|
+
---------------------------------------------------------------
|
11124
|
+
GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
|
11125
|
+
---------------------------------------------------------------
|
11126
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11127
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11128
|
+
-------------------------------------
|
11129
|
+
GovUkDateFieldsTest: test_squash_html
|
11130
|
+
-------------------------------------
|
11131
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11132
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11133
|
+
-----------------------------------------------------------
|
11134
|
+
GovUkDateFieldsTest: test_fieldset_output_with_legend_class
|
11135
|
+
-----------------------------------------------------------
|
11136
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11137
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11138
|
+
------------------------------------------
|
11139
|
+
GovUkDateFieldsTest: test_fieldset_with_id
|
11140
|
+
------------------------------------------
|
11141
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11142
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11143
|
+
---------------------------------------------------------------
|
11144
|
+
GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
|
11145
|
+
---------------------------------------------------------------
|
11146
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11147
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11148
|
+
--------------------------------------------------------
|
11149
|
+
GovUkDateFieldsTest: test_fieldset_output_with_form_hint
|
11150
|
+
--------------------------------------------------------
|
11151
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11152
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11153
|
+
-------------------------------------------------------------
|
11154
|
+
GovUkDateFieldsTest: test_placeholder_output_without_fieldset
|
11155
|
+
-------------------------------------------------------------
|
11156
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11157
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11158
|
+
-------------------------------------------------------
|
11159
|
+
GovUkDateFieldsTest: test_basic_output_without_fieldset
|
11160
|
+
-------------------------------------------------------
|
11161
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11162
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11163
|
+
---------------------------------------------------------------------------------------------------------
|
11164
|
+
EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
|
11165
|
+
---------------------------------------------------------------------------------------------------------
|
11166
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11167
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11168
|
+
--------------------------------------------------------------------------
|
11169
|
+
EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
|
11170
|
+
--------------------------------------------------------------------------
|
11171
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11172
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11173
|
+
------------------------------------------------------------------------
|
11174
|
+
EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
|
11175
|
+
------------------------------------------------------------------------
|
11176
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11177
|
+
[1m[35m (0.0ms)[0m BEGIN
|
11178
|
+
-----------------------------------------------------------------------------------
|
11179
|
+
EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
|
11180
|
+
-----------------------------------------------------------------------------------
|
11181
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11182
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11183
|
+
----------------------------------------------
|
11184
|
+
EmployeeTest: test_valid_dates_raise_no_errors
|
11185
|
+
----------------------------------------------
|
11186
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11187
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11188
|
+
---------------------------------------------------------------------
|
11189
|
+
EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
|
11190
|
+
---------------------------------------------------------------------
|
11191
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11192
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11193
|
+
-------------------------------------------------------------------------------------------------------------------
|
11194
|
+
EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
|
11195
|
+
-------------------------------------------------------------------------------------------------------------------
|
11196
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11197
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11198
|
+
----------------------------------------------------------------------------------------------
|
11199
|
+
EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
|
11200
|
+
----------------------------------------------------------------------------------------------
|
11201
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11202
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11203
|
+
----------------------------------------------------------------------------------------------------------------
|
11204
|
+
EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
|
11205
|
+
----------------------------------------------------------------------------------------------------------------
|
11206
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11207
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11208
|
+
-----------------------------------------------------------------
|
11209
|
+
EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
|
11210
|
+
-----------------------------------------------------------------
|
11211
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11212
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11213
|
+
---------------------------------------------------------------------
|
11214
|
+
EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
|
11215
|
+
---------------------------------------------------------------------
|
11216
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11217
|
+
[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-05 13:15:01.833296"], ["updated_at", "2016-04-05 13:15:01.833296"]]
|
11218
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11219
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11220
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3[0m [["dob", "1965-05-17"], ["updated_at", "2016-04-05 13:15:01.834414"], ["id", 588]]
|
11221
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11222
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11223
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11224
|
+
-----------------------------------------------------------
|
11225
|
+
EmployeeTest: test_new_dates_can_be_populated_from_the_form
|
11226
|
+
-----------------------------------------------------------
|
11227
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
11228
|
+
[1m[35m (0.1ms)[0m BEGIN
|
11229
|
+
-------------------------------------------------------------------------
|
11230
|
+
EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
|
11231
|
+
-------------------------------------------------------------------------
|
11232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11233
|
+
[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-05 13:15:01.836723"], ["updated_at", "2016-04-05 13:15:01.836723"]]
|
11234
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11235
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11236
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
11237
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11238
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11239
|
+
------------------------------------------------------------------------------------------
|
11240
|
+
EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
|
11241
|
+
------------------------------------------------------------------------------------------
|
11242
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11243
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11244
|
+
-------------------------------------------
|
11245
|
+
EmployeeTest: test_invalid_day_raises_error
|
11246
|
+
-------------------------------------------
|
11247
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11248
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
11249
|
+
-----------------------------------------------------------
|
11250
|
+
EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
|
11251
|
+
-----------------------------------------------------------
|
11252
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11253
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
11254
|
+
--------------------------------------------
|
11255
|
+
EmployeeTest: test_nil_dates_raise_no_errors
|
11256
|
+
--------------------------------------------
|
11257
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11258
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
11259
|
+
-----------------------------------------------------------------------
|
11260
|
+
EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
|
11261
|
+
-----------------------------------------------------------------------
|
11262
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11263
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11264
|
+
-------------------------------------------------------------------------------
|
11265
|
+
GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
|
11266
|
+
-------------------------------------------------------------------------------
|
11267
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11269
|
+
---------------------------------------------------------------------------------
|
11270
|
+
GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
|
11271
|
+
---------------------------------------------------------------------------------
|
11272
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11273
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11274
|
+
-----------------------------------------------------------------------------------------------
|
11275
|
+
GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
|
11276
|
+
-----------------------------------------------------------------------------------------------
|
11277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11279
|
+
---------------------------------------------------------------------------------
|
11280
|
+
GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
|
11281
|
+
---------------------------------------------------------------------------------
|
11282
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11283
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11284
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
11285
|
+
GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
|
11286
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
11287
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11288
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11289
|
+
------------------------------------------------------------------------------------------
|
11290
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
|
11291
|
+
------------------------------------------------------------------------------------------
|
11292
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
11293
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
11294
|
+
-----------------------------------------------------------------------------------------
|
11295
|
+
GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
|
11296
|
+
-----------------------------------------------------------------------------------------
|
11297
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|