gov_uk_date_fields 3.1.0 → 4.0.0
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 +117 -168
- data/lib/gov_uk_date_fields/version.rb +1 -1
- data/test/dummy/app/views/employees/_form.html.erb +1 -1
- data/test/dummy/config/locales/en.yml +18 -1
- data/test/dummy/log/development.log +27 -0
- data/test/dummy/log/test.log +6027 -0
- data/test/dummy/test/controllers/employees_controller_test.rb +2 -7
- data/test/dummy/test/fixtures/files/date_fields_error.html +37 -0
- data/test/dummy/test/fixtures/files/date_fields_no_error.html +36 -0
- data/test/dummy/test/fixtures/files/date_fields_no_heading.html +34 -0
- data/test/dummy/test/models/default_error_clash_employee_test.rb +2 -2
- data/test/dummy/test/models/form_fields_test.rb +16 -311
- data/test/dummy/test/models/omit_error_clash_employee_test.rb +2 -2
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8MByLANOkxnxtwqWuaeLzh_J4rurtoIBeW03ek6Y08w.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/En/EnEfvwgFKP1AahR6eTP-u0TeHcVpHV2cuOYmDrfoDec.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/GW/GWPTgNDuFCS8p0ARIL21FLMCy42vfx4PSInNAm8hmyw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/I4/I4zyVgaaEAo-RxZorzwj10dfMJ9z4yjkfkCrJJMiEYs.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeDHuzXMfGj06rzGw-wM0tr5j4viSTDtJ3tRD3-9jRI.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/M2/M2O1kCLdiZHeElbkOPVkvow3BKa026ayrJI6fMMFyRY.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QA/QA32z-4v8KU7eagra1ogcpOZOh5qLTIKxsr-0mmUYOk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGiwsdOFJDQRfkEQ_J28GODJYTENHaNDez1hrVfCI-M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JuLBi_RjcFhLlHO-CAH2DseU3sebABcazh2bG2D3iE.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/aD/aDGWuTF47JbhohmDBQPQ88olIS3GLQnTWjXucFfudqI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hi/hivuiGt4E4n9IsL7iMnPPAzK1vMRiG38tocXbUiQDuc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCyHm9DrBpNyFSoBvDDZxU4QbPwynEtk3yQzV2nQb_0.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/vU/vU-zjPdBQL_wrwTTQHVcfWW_-JiPpwkOnTQtNpMPsVk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yH-LUVpCFC8cqvwFp8v4VzRkwWrnAqBNViBRvhjiu3I.cache +1 -0
- metadata +38 -7
- data/test/sample.html +0 -25
- data/vendor/assets/javascripts/govuk_date_fields.js +0 -57
- data/vendor/assets/stylesheets/_govuk_date_fields.scss +0 -32
@@ -12,7 +12,7 @@ class OmitErrorClashEmployeeTest < ActiveSupport::TestCase
|
|
12
12
|
|
13
13
|
def test_presence_error_messages_generated
|
14
14
|
@employee.valid?
|
15
|
-
assert_equal ["
|
15
|
+
assert_equal ["Enter the date of birth"], @employee.errors[:dob]
|
16
16
|
assert_equal ["can't be blank"], @employee.errors[:joined]
|
17
17
|
end
|
18
18
|
|
@@ -20,7 +20,7 @@ class OmitErrorClashEmployeeTest < ActiveSupport::TestCase
|
|
20
20
|
@employee.dob_dd = '32'
|
21
21
|
@employee.joined_mm = '77'
|
22
22
|
assert_false @employee.valid?
|
23
|
-
assert_equal ["
|
23
|
+
assert_equal ["Enter the date of birth"], @employee.errors[:dob]
|
24
24
|
assert_equal ["can't be blank"], @employee.errors[:joined]
|
25
25
|
end
|
26
26
|
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8MByLANOkxnxtwqWuaeLzh_J4rurtoIBeW03ek6Y08w.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/En/EnEfvwgFKP1AahR6eTP-u0TeHcVpHV2cuOYmDrfoDec.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"}app/assets/stylesheets/application.css?type=text/css&id=bfce3975043a7f48a9cd25c3ae30e985449996c6c962851bace8ebdce0339b3f:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/GW/GWPTgNDuFCS8p0ARIL21FLMCy42vfx4PSInNAm8hmyw.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/I4/I4zyVgaaEAo-RxZorzwj10dfMJ9z4yjkfkCrJJMiEYs.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=d2b5d5b7b683fadf408a79bd70415e7933abc131aa483fd8bc5b67713842a564:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeDHuzXMfGj06rzGw-wM0tr5j4viSTDtJ3tRD3-9jRI.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/M2/M2O1kCLdiZHeElbkOPVkvow3BKa026ayrJI6fMMFyRY.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/QA/QA32z-4v8KU7eagra1ogcpOZOh5qLTIKxsr-0mmUYOk.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/scaffold.css?type=text/css&pipeline=self&id=7962f78eb9ca07d5adf31621a86f929775b29def245673061c7c8343902a5668:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGiwsdOFJDQRfkEQ_J28GODJYTENHaNDez1hrVfCI-M.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JuLBi_RjcFhLlHO-CAH2DseU3sebABcazh2bG2D3iE.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/aD/aDGWuTF47JbhohmDBQPQ88olIS3GLQnTWjXucFfudqI.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=f4d3fb75921bc2b80906b9ac16c06598a759ae5f493af485b8c1d9556e7fa594:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/hi/hivuiGt4E4n9IsL7iMnPPAzK1vMRiG38tocXbUiQDuc.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/stylesheets/employees.css?type=text/css&pipeline=self&id=efcbe88344364b3264e84df0fdcec0e703e8290fa7f7996fbe534d1059c9c8fb:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCyHm9DrBpNyFSoBvDDZxU4QbPwynEtk3yQzV2nQb_0.cache
ADDED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
CHANGED
Binary file
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/vU/vU-zjPdBQL_wrwTTQHVcfWW_-JiPpwkOnTQtNpMPsVk.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/employees.js?type=application/javascript&pipeline=self&id=aecab9289c313755d061b749bddfe1f724172ed1c3aed3cd11073ab3b879ecfc:ET
|
data/test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yH-LUVpCFC8cqvwFp8v4VzRkwWrnAqBNViBRvhjiu3I.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�app/assets/javascripts/application.js?type=application/javascript&id=26aaed57045aded9d64c8a474231ac35c8d66ce159cf64ddea5e3cf79ebad433:ET
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gov_uk_date_fields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Richards
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- test/dummy/config/secrets.yml
|
94
94
|
- test/dummy/db/migrate/20150901103114_create_employees.rb
|
95
95
|
- test/dummy/db/schema.rb
|
96
|
+
- test/dummy/log/development.log
|
96
97
|
- test/dummy/log/test.log
|
97
98
|
- test/dummy/public/404.html
|
98
99
|
- test/dummy/public/422.html
|
@@ -100,6 +101,9 @@ files:
|
|
100
101
|
- test/dummy/public/favicon.ico
|
101
102
|
- test/dummy/test/controllers/employees_controller_test.rb
|
102
103
|
- test/dummy/test/fixtures/employees.yml
|
104
|
+
- test/dummy/test/fixtures/files/date_fields_error.html
|
105
|
+
- test/dummy/test/fixtures/files/date_fields_no_error.html
|
106
|
+
- test/dummy/test/fixtures/files/date_fields_no_heading.html
|
103
107
|
- test/dummy/test/models/default_error_clash_employee_test.rb
|
104
108
|
- test/dummy/test/models/director_test.rb
|
105
109
|
- test/dummy/test/models/employee_test.rb
|
@@ -112,34 +116,45 @@ files:
|
|
112
116
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/10/108c5KoSTkUfLo934Fi9JkHzMOx_lJkVMPG1ct1Hj1Y.cache
|
113
117
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/1D/1DSJep8RvpL0bKekcrPoTlfiAWzMx253hI6CPzgd_Yo.cache
|
114
118
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
119
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8MByLANOkxnxtwqWuaeLzh_J4rurtoIBeW03ek6Y08w.cache
|
115
120
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
|
116
121
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/AY/AY9AvC57Rkn-jl_1CbQHaLLJu187OaKJ_Xa1boNAQ9Q.cache
|
117
122
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
|
118
123
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
|
124
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/En/EnEfvwgFKP1AahR6eTP-u0TeHcVpHV2cuOYmDrfoDec.cache
|
125
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/GW/GWPTgNDuFCS8p0ARIL21FLMCy42vfx4PSInNAm8hmyw.cache
|
126
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/I4/I4zyVgaaEAo-RxZorzwj10dfMJ9z4yjkfkCrJJMiEYs.cache
|
119
127
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Jz/Jzjppg8cll3TxA_gcD3cXEbcs2K5YsKR0bxKd9vOVuM.cache
|
128
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeDHuzXMfGj06rzGw-wM0tr5j4viSTDtJ3tRD3-9jRI.cache
|
129
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/M2/M2O1kCLdiZHeElbkOPVkvow3BKa026ayrJI6fMMFyRY.cache
|
120
130
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/N2/N2SgsVGMNSkhPUm1NueQzvaGoGg97WYxU0bJ6jAsE1E.cache
|
121
131
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OA/OAq0JC69RB8688u80nj0uZUjqoy07Gdk-Ix9DVkq-P8.cache
|
122
132
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
133
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/QA/QA32z-4v8KU7eagra1ogcpOZOh5qLTIKxsr-0mmUYOk.cache
|
134
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGiwsdOFJDQRfkEQ_J28GODJYTENHaNDez1hrVfCI-M.cache
|
123
135
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/WR/WRD9H9nclKzl7WRqg40Cv0Aiah_8cxYk9fHbzo288CA.cache
|
124
136
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zv/ZvIP7azgTxQl6lCLJ5_4GMA9X2jdo5qkqWyhCkvLY-c.cache
|
137
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JuLBi_RjcFhLlHO-CAH2DseU3sebABcazh2bG2D3iE.cache
|
125
138
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/_Q/_Qox8K7DFagL2Xu68DQ1sa5-OLdgLiJhqxzT5yrQ_Ls.cache
|
139
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/aD/aDGWuTF47JbhohmDBQPQ88olIS3GLQnTWjXucFfudqI.cache
|
126
140
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/c2/c2eylaGC7M-UaIFspLdQSOwF2xwaBfh_KkxXy7ipAKI.cache
|
127
141
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/c4/c4yH_5hfuj7Unapfm2iHiMs3H3niA7Drv9ah10lFUE4.cache
|
128
142
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/fy/fyxgGmo8LCAXwjpG0tmrssI0QrjfoeWZSgYMshvJZTQ.cache
|
129
143
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
144
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/hi/hivuiGt4E4n9IsL7iMnPPAzK1vMRiG38tocXbUiQDuc.cache
|
130
145
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nh/nhnGmySVxVMqADIhTEbaTI5gjYNjSl7RvBYwc9KcHU8.cache
|
146
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCyHm9DrBpNyFSoBvDDZxU4QbPwynEtk3yQzV2nQb_0.cache
|
131
147
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
132
148
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rn/rnK-Quxkoezp5SGMIvmt45BYCiDE2GwhrBa2tXj3PdM.cache
|
133
149
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7zQSbx5qekH_wKj_w_ndn9Vbq4-BhdG06LSP9oRFaI.cache
|
134
150
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/v7/v7au9Ddbn0MF5xg-9xK1EhakJRPBxWGSrNZYDHTtj3A.cache
|
151
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/vU/vU-zjPdBQL_wrwTTQHVcfWW_-JiPpwkOnTQtNpMPsVk.cache
|
135
152
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/vm/vmwrjDz0X5DTjfi9Br7uufd9E3BPYuSQbjXtJ4GV0JA.cache
|
136
153
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/vr/vrkJjzYKa-iijpfapYYxHasVH4KeSWLJgnxnrMyYato.cache
|
137
154
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBfk4KXnrZkmM4gCrFY2XALXn0zTVcIZ9sE05MjD-Ao.cache
|
155
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yH-LUVpCFC8cqvwFp8v4VzRkwWrnAqBNViBRvhjiu3I.cache
|
138
156
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/z-/z-w7acMcxl_DltdfBY7fxs7s2a2voVrIPjj_uF2T8Ds.cache
|
139
|
-
- test/sample.html
|
140
157
|
- test/test_helper.rb
|
141
|
-
- vendor/assets/javascripts/govuk_date_fields.js
|
142
|
-
- vendor/assets/stylesheets/_govuk_date_fields.scss
|
143
158
|
homepage: https://github.com/ministryofjustice/gov_uk_date_fields
|
144
159
|
licenses:
|
145
160
|
- MIT
|
@@ -148,7 +163,6 @@ post_install_message:
|
|
148
163
|
rdoc_options: []
|
149
164
|
require_paths:
|
150
165
|
- lib
|
151
|
-
- vendor
|
152
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
153
167
|
requirements:
|
154
168
|
- - ">="
|
@@ -212,6 +226,7 @@ test_files:
|
|
212
226
|
- test/dummy/config.ru
|
213
227
|
- test/dummy/db/migrate/20150901103114_create_employees.rb
|
214
228
|
- test/dummy/db/schema.rb
|
229
|
+
- test/dummy/log/development.log
|
215
230
|
- test/dummy/log/test.log
|
216
231
|
- test/dummy/public/404.html
|
217
232
|
- test/dummy/public/422.html
|
@@ -221,6 +236,9 @@ test_files:
|
|
221
236
|
- test/dummy/README.rdoc
|
222
237
|
- test/dummy/test/controllers/employees_controller_test.rb
|
223
238
|
- test/dummy/test/fixtures/employees.yml
|
239
|
+
- test/dummy/test/fixtures/files/date_fields_error.html
|
240
|
+
- test/dummy/test/fixtures/files/date_fields_no_error.html
|
241
|
+
- test/dummy/test/fixtures/files/date_fields_no_heading.html
|
224
242
|
- test/dummy/test/models/default_error_clash_employee_test.rb
|
225
243
|
- test/dummy/test/models/director_test.rb
|
226
244
|
- test/dummy/test/models/employee_test.rb
|
@@ -233,29 +251,42 @@ test_files:
|
|
233
251
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/10/108c5KoSTkUfLo934Fi9JkHzMOx_lJkVMPG1ct1Hj1Y.cache
|
234
252
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/1D/1DSJep8RvpL0bKekcrPoTlfiAWzMx253hI6CPzgd_Yo.cache
|
235
253
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
254
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/8M/8MByLANOkxnxtwqWuaeLzh_J4rurtoIBeW03ek6Y08w.cache
|
255
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/_J/_JuLBi_RjcFhLlHO-CAH2DseU3sebABcazh2bG2D3iE.cache
|
236
256
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/_Q/_Qox8K7DFagL2Xu68DQ1sa5-OLdgLiJhqxzT5yrQ_Ls.cache
|
257
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/aD/aDGWuTF47JbhohmDBQPQ88olIS3GLQnTWjXucFfudqI.cache
|
237
258
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
|
238
259
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/AY/AY9AvC57Rkn-jl_1CbQHaLLJu187OaKJ_Xa1boNAQ9Q.cache
|
239
260
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/c2/c2eylaGC7M-UaIFspLdQSOwF2xwaBfh_KkxXy7ipAKI.cache
|
240
261
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/c4/c4yH_5hfuj7Unapfm2iHiMs3H3niA7Drv9ah10lFUE4.cache
|
241
262
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
|
242
263
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
|
264
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/En/EnEfvwgFKP1AahR6eTP-u0TeHcVpHV2cuOYmDrfoDec.cache
|
243
265
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/fy/fyxgGmo8LCAXwjpG0tmrssI0QrjfoeWZSgYMshvJZTQ.cache
|
266
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/GW/GWPTgNDuFCS8p0ARIL21FLMCy42vfx4PSInNAm8hmyw.cache
|
267
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/hi/hivuiGt4E4n9IsL7iMnPPAzK1vMRiG38tocXbUiQDuc.cache
|
244
268
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
269
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/I4/I4zyVgaaEAo-RxZorzwj10dfMJ9z4yjkfkCrJJMiEYs.cache
|
245
270
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Jz/Jzjppg8cll3TxA_gcD3cXEbcs2K5YsKR0bxKd9vOVuM.cache
|
271
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/Ke/KeDHuzXMfGj06rzGw-wM0tr5j4viSTDtJ3tRD3-9jRI.cache
|
272
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/M2/M2O1kCLdiZHeElbkOPVkvow3BKa026ayrJI6fMMFyRY.cache
|
246
273
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/N2/N2SgsVGMNSkhPUm1NueQzvaGoGg97WYxU0bJ6jAsE1E.cache
|
247
274
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/nh/nhnGmySVxVMqADIhTEbaTI5gjYNjSl7RvBYwc9KcHU8.cache
|
248
275
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OA/OAq0JC69RB8688u80nj0uZUjqoy07Gdk-Ix9DVkq-P8.cache
|
276
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCyHm9DrBpNyFSoBvDDZxU4QbPwynEtk3yQzV2nQb_0.cache
|
249
277
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
250
278
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
279
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/QA/QA32z-4v8KU7eagra1ogcpOZOh5qLTIKxsr-0mmUYOk.cache
|
251
280
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/rn/rnK-Quxkoezp5SGMIvmt45BYCiDE2GwhrBa2tXj3PdM.cache
|
252
281
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7zQSbx5qekH_wKj_w_ndn9Vbq4-BhdG06LSP9oRFaI.cache
|
253
282
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/v7/v7au9Ddbn0MF5xg-9xK1EhakJRPBxWGSrNZYDHTtj3A.cache
|
254
283
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/vm/vmwrjDz0X5DTjfi9Br7uufd9E3BPYuSQbjXtJ4GV0JA.cache
|
255
284
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/vr/vrkJjzYKa-iijpfapYYxHasVH4KeSWLJgnxnrMyYato.cache
|
285
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/vU/vU-zjPdBQL_wrwTTQHVcfWW_-JiPpwkOnTQtNpMPsVk.cache
|
286
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/WG/WGiwsdOFJDQRfkEQ_J28GODJYTENHaNDez1hrVfCI-M.cache
|
256
287
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/WR/WRD9H9nclKzl7WRqg40Cv0Aiah_8cxYk9fHbzo288CA.cache
|
257
288
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBfk4KXnrZkmM4gCrFY2XALXn0zTVcIZ9sE05MjD-Ao.cache
|
289
|
+
- test/dummy/tmp/cache/assets/sprockets/v3.0/yH/yH-LUVpCFC8cqvwFp8v4VzRkwWrnAqBNViBRvhjiu3I.cache
|
258
290
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/z-/z-w7acMcxl_DltdfBY7fxs7s2a2voVrIPjj_uF2T8Ds.cache
|
259
291
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zv/ZvIP7azgTxQl6lCLJ5_4GMA9X2jdo5qkqWyhCkvLY-c.cache
|
260
|
-
- test/sample.html
|
261
292
|
- test/test_helper.rb
|
data/test/sample.html
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<fieldset>
|
2
|
-
|
3
|
-
<legend>Date of birth</legend>
|
4
|
-
|
5
|
-
<div class="form-date">
|
6
|
-
|
7
|
-
<p class="form-hint" id="dob-hint">For example, 31 3 1980</p>
|
8
|
-
|
9
|
-
<div class="form-group form-group-day">
|
10
|
-
<label for="dob-day">Day</label>
|
11
|
-
<input class="form-control" id="dob-day" name="dob-day" type="number" pattern="[0-9]*" min="0" max="31" aria-describedby="dob-hint">
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="form-group form-group-month">
|
15
|
-
<label for="dob-month">Month</label>
|
16
|
-
<input class="form-control" id="dob-month" name="dob-month" type="number" pattern="[0-9]*" min="0" max="12">
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="form-group form-group-year">
|
20
|
-
<label for="dob-year">Year</label>
|
21
|
-
<input class="form-control" id="dob-year" name="dob-year" type="number" pattern="[0-9]*" min="0" max="2016">
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
|
25
|
-
</fieldset>
|
@@ -1,57 +0,0 @@
|
|
1
|
-
(function (){
|
2
|
-
var GOVUKDATEFIELDS = function (){
|
3
|
-
var $allDateGroupInstances = $(".form-date"),
|
4
|
-
|
5
|
-
init = function (){
|
6
|
-
|
7
|
-
$allDateGroupInstances.each(function (){
|
8
|
-
var $currentGroup = $(this);
|
9
|
-
var $inputs = $currentGroup.find('input');
|
10
|
-
var $todayButton = $currentGroup.find('a');
|
11
|
-
|
12
|
-
//Show Today Button if js is enabled
|
13
|
-
$todayButton.addClass('js-enabled');
|
14
|
-
|
15
|
-
$todayButton.on('click', function(event) {
|
16
|
-
//Set date and remove inputs from natural tab order
|
17
|
-
event.preventDefault();
|
18
|
-
setTodayDate($currentGroup, $inputs, $todayButton);
|
19
|
-
$inputs.attr('tabIndex', -1);
|
20
|
-
}).on('focus', function(){
|
21
|
-
$inputs.attr('tabIndex', 0);
|
22
|
-
})
|
23
|
-
})
|
24
|
-
},
|
25
|
-
setTodayDate = function($currentGroup, $inputs, $todayButton){
|
26
|
-
//Cache the input fields
|
27
|
-
var $dateField = $inputs.eq(0);
|
28
|
-
var $monthField = $inputs.eq(1);
|
29
|
-
var $yearField = $inputs.eq(2);
|
30
|
-
|
31
|
-
//Create and return todays date
|
32
|
-
var d = new Date();
|
33
|
-
var day = d.getUTCDate();
|
34
|
-
var month = d.getUTCMonth() + 1;
|
35
|
-
var year = d.getUTCFullYear();
|
36
|
-
|
37
|
-
//Set the input fields
|
38
|
-
$dateField.val(leadingZero(day));
|
39
|
-
$monthField.val(leadingZero(month));
|
40
|
-
$yearField.val(year);
|
41
|
-
},
|
42
|
-
|
43
|
-
leadingZero = function (dateValue){
|
44
|
-
var paddedValue = '00' + dateValue;
|
45
|
-
return paddedValue.substr(paddedValue.length-2);
|
46
|
-
};
|
47
|
-
|
48
|
-
return {
|
49
|
-
init : function(){
|
50
|
-
init();
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}();
|
54
|
-
|
55
|
-
GOVUKDATEFIELDS.init();
|
56
|
-
|
57
|
-
})();
|
@@ -1,32 +0,0 @@
|
|
1
|
-
.gov_uk_date {
|
2
|
-
position: relative;
|
3
|
-
display: inline-block;
|
4
|
-
width: auto;
|
5
|
-
zoom: 1;
|
6
|
-
&:before, &:after {
|
7
|
-
content: "";
|
8
|
-
display: block;
|
9
|
-
height: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
}
|
12
|
-
&:after {
|
13
|
-
clear: both;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
.gov_uk_date a {
|
18
|
-
display: none;
|
19
|
-
}
|
20
|
-
|
21
|
-
.gov_uk_date a.js-enabled {
|
22
|
-
display: inline-block;
|
23
|
-
position: absolute;
|
24
|
-
bottom: 0;
|
25
|
-
left: 100%;
|
26
|
-
}
|
27
|
-
|
28
|
-
.gov_uk_date a.js-enabled:active {
|
29
|
-
top: auto;
|
30
|
-
}
|
31
|
-
|
32
|
-
|