gov_uk_date_fields 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6abac7b6934a7b36e232dbd07781ad7bd3f4b9a
4
- data.tar.gz: a47c8c9de6753239610d871d589cb9fac26247ff
3
+ metadata.gz: 1ec9ca6a651be83cc6a6cf10b8e0262729f9ff72
4
+ data.tar.gz: 89390a34df913cb4b83e56145df959b65c6a4de6
5
5
  SHA512:
6
- metadata.gz: c6c7638c8b83397eb1a1da9460bf334c5dfb5b881dbb6ce0c65d5c3614f8c59046ef4d4655e4feb9f166960e52641ef83a3a17b7680c35aaf76c181ceffe7b21
7
- data.tar.gz: a4e92d2a87d50ffe059770a00bf7e2808abb98190f8d528f441a72abf5e44f73ce26073ee1ef97c7d40426229539bbfa0d1915458d1fe2c7f0390bacc5b6ce8f
6
+ metadata.gz: 879582b734ad6e4f6f202a4950654c5c39d45798d68aa44ccb1ac6c6b54b95f29e9358a5b4d5c581d79c57f8e6155736bceb5ec4a0f82309da9dac3a01f94f97
7
+ data.tar.gz: 24e6f09eff12fbafaf828a8cbe094b7e00e4aa1f7599c78580efe6f0b9be87c5198695f00827f7da1a3b4932430b3d20732037c3aa4fc5a01bb437c6b856ee7c
@@ -177,13 +177,17 @@ module GovUkDateFields
177
177
  end
178
178
 
179
179
  def html_id(date_segment)
180
- "#{@object_name}_#{@attribute}#{DATE_SEGMENTS[date_segment]}"
180
+ brackets2underscore(html_name(date_segment))
181
181
  end
182
182
 
183
183
  def html_name(date_segment)
184
184
  "#{@object_name}[#{@attribute}#{DATE_SEGMENTS[date_segment]}]"
185
185
  end
186
186
 
187
+ def brackets2underscore(string)
188
+ string.tr('[','_').tr(']', '_').gsub('__', '_').gsub(/_$/, '')
189
+ end
190
+
187
191
  def field_options(value, id, name, placeholder, size)
188
192
  {
189
193
  value: value,
@@ -1,3 +1,3 @@
1
1
  module GovUkDateFields
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -11295,3 +11295,643 @@ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_d
11295
11295
  GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
11296
11296
  -----------------------------------------------------------------------------------------
11297
11297
   (0.1ms) ROLLBACK
11298
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
11299
+  (0.2ms) BEGIN
11300
+ --------------------------------------------------
11301
+ EmployeesControllerTest: test_should_show_employee
11302
+ --------------------------------------------------
11303
+  (0.1ms) SAVEPOINT active_record_1
11304
+ SQL (0.9ms) 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-12 10:29:42.320754"], ["updated_at", "2016-04-12 10:29:42.320754"]]
11305
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11306
+  (0.1ms) SAVEPOINT active_record_1
11307
+ SQL (0.1ms) 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-12 10:29:42.327231"], ["updated_at", "2016-04-12 10:29:42.327231"]]
11308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11309
+ Processing by EmployeesController#show as HTML
11310
+ Parameters: {"id"=>"590"}
11311
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 590]]
11312
+ Rendered employees/show.html.erb within layouts/application (2.1ms)
11313
+ Completed 200 OK in 123ms (Views: 115.4ms | ActiveRecord: 0.3ms)
11314
+  (0.2ms) ROLLBACK
11315
+  (0.1ms) BEGIN
11316
+ -----------------------------------------------------
11317
+ EmployeesControllerTest: test_should_destroy_employee
11318
+ -----------------------------------------------------
11319
+  (0.1ms) SAVEPOINT active_record_1
11320
+ SQL (0.2ms) 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-12 10:29:42.456356"], ["updated_at", "2016-04-12 10:29:42.456356"]]
11321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11322
+  (0.1ms) SAVEPOINT active_record_1
11323
+ SQL (0.1ms) 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-12 10:29:42.457617"], ["updated_at", "2016-04-12 10:29:42.457617"]]
11324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11325
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11326
+ Processing by EmployeesController#destroy as HTML
11327
+ Parameters: {"id"=>"592"}
11328
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 592]]
11329
+  (0.1ms) SAVEPOINT active_record_1
11330
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 592]]
11331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11332
+ Redirected to http://test.host/employees
11333
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
11334
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11335
+  (0.1ms) ROLLBACK
11336
+  (0.1ms) BEGIN
11337
+ ----------------------------------------------------
11338
+ EmployeesControllerTest: test_should_update_employee
11339
+ ----------------------------------------------------
11340
+  (0.1ms) SAVEPOINT active_record_1
11341
+ SQL (0.2ms) 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-12 10:29:42.462860"], ["updated_at", "2016-04-12 10:29:42.462860"]]
11342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11343
+  (0.1ms) SAVEPOINT active_record_1
11344
+ SQL (0.1ms) 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-12 10:29:42.464199"], ["updated_at", "2016-04-12 10:29:42.464199"]]
11345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11346
+ Processing by EmployeesController#update as HTML
11347
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"594"}
11348
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 594]]
11349
+  (0.1ms) SAVEPOINT active_record_1
11350
+ SQL (0.2ms) 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-12 10:29:42.467173"], ["id", 594]]
11351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11352
+ Redirected to http://test.host/employees/594
11353
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
11354
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 594]]
11355
+  (0.1ms) ROLLBACK
11356
+  (0.1ms) BEGIN
11357
+ --------------------------------------------------------------
11358
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
11359
+ --------------------------------------------------------------
11360
+  (0.1ms) SAVEPOINT active_record_1
11361
+ SQL (0.1ms) 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-12 10:29:42.471050"], ["updated_at", "2016-04-12 10:29:42.471050"]]
11362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11363
+  (0.1ms) SAVEPOINT active_record_1
11364
+ SQL (0.1ms) 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-12 10:29:42.472114"], ["updated_at", "2016-04-12 10:29:42.472114"]]
11365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11366
+ Processing by EmployeesController#edit as HTML
11367
+ Parameters: {"id"=>"596"}
11368
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 596]]
11369
+ Rendered employees/_form.html.erb (13.1ms)
11370
+ Rendered employees/edit.html.erb within layouts/application (17.0ms)
11371
+ Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.1ms)
11372
+  (0.2ms) ROLLBACK
11373
+  (0.1ms) BEGIN
11374
+ ----------------------------------------------
11375
+ EmployeesControllerTest: test_should_get_index
11376
+ ----------------------------------------------
11377
+  (0.1ms) SAVEPOINT active_record_1
11378
+ SQL (0.1ms) 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-12 10:29:42.503312"], ["updated_at", "2016-04-12 10:29:42.503312"]]
11379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11380
+  (0.1ms) SAVEPOINT active_record_1
11381
+ SQL (0.1ms) 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-12 10:29:42.504588"], ["updated_at", "2016-04-12 10:29:42.504588"]]
11382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11383
+ Processing by EmployeesController#index as HTML
11384
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
11385
+ Rendered employees/index.html.erb within layouts/application (1.8ms)
11386
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)
11387
+  (0.1ms) ROLLBACK
11388
+  (0.1ms) BEGIN
11389
+ ----------------------------------------------------
11390
+ EmployeesControllerTest: test_should_create_employee
11391
+ ----------------------------------------------------
11392
+  (0.1ms) SAVEPOINT active_record_1
11393
+ SQL (0.1ms) 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-12 10:29:42.511117"], ["updated_at", "2016-04-12 10:29:42.511117"]]
11394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11395
+  (0.1ms) SAVEPOINT active_record_1
11396
+ SQL (0.1ms) 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-12 10:29:42.512280"], ["updated_at", "2016-04-12 10:29:42.512280"]]
11397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11398
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11399
+ Processing by EmployeesController#create as HTML
11400
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
11401
+  (0.1ms) SAVEPOINT active_record_1
11402
+ SQL (0.1ms) 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-12 10:29:42.515047"], ["updated_at", "2016-04-12 10:29:42.515047"]]
11403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11404
+ Redirected to http://test.host/employees/602
11405
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
11406
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11407
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11408
+ Employee Load (1.9ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
11409
+  (0.1ms) ROLLBACK
11410
+  (0.1ms) BEGIN
11411
+ ---------------------------------------------
11412
+ EmployeesControllerTest: test_should_get_edit
11413
+ ---------------------------------------------
11414
+  (0.1ms) SAVEPOINT active_record_1
11415
+ SQL (0.1ms) 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-12 10:29:42.520754"], ["updated_at", "2016-04-12 10:29:42.520754"]]
11416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11417
+  (0.1ms) SAVEPOINT active_record_1
11418
+ SQL (0.1ms) 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-12 10:29:42.521949"], ["updated_at", "2016-04-12 10:29:42.521949"]]
11419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11420
+ Processing by EmployeesController#edit as HTML
11421
+ Parameters: {"id"=>"603"}
11422
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 603]]
11423
+ Rendered employees/_form.html.erb (1.4ms)
11424
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
11425
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)
11426
+  (0.1ms) ROLLBACK
11427
+  (0.1ms) BEGIN
11428
+ --------------------------------------------
11429
+ EmployeesControllerTest: test_should_get_new
11430
+ --------------------------------------------
11431
+  (0.1ms) SAVEPOINT active_record_1
11432
+ SQL (0.1ms) 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-12 10:29:42.527611"], ["updated_at", "2016-04-12 10:29:42.527611"]]
11433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11434
+  (0.1ms) SAVEPOINT active_record_1
11435
+ SQL (0.1ms) 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-12 10:29:42.528697"], ["updated_at", "2016-04-12 10:29:42.528697"]]
11436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11437
+ Processing by EmployeesController#new as HTML
11438
+ Rendered employees/_form.html.erb (2.6ms)
11439
+ Rendered employees/new.html.erb within layouts/application (3.5ms)
11440
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
11441
+  (0.1ms) ROLLBACK
11442
+  (0.1ms) BEGIN
11443
+ -------------------------------------------
11444
+ EmployeeTest: test_invalid_day_raises_error
11445
+ -------------------------------------------
11446
+  (0.1ms) ROLLBACK
11447
+  (0.1ms) BEGIN
11448
+ -----------------------------------------------------------------------
11449
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
11450
+ -----------------------------------------------------------------------
11451
+  (0.1ms) ROLLBACK
11452
+  (0.1ms) BEGIN
11453
+ ----------------------------------------------------------------------------------------------
11454
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
11455
+ ----------------------------------------------------------------------------------------------
11456
+  (0.1ms) ROLLBACK
11457
+  (0.1ms) BEGIN
11458
+ ------------------------------------------------------------------------------------------
11459
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
11460
+ ------------------------------------------------------------------------------------------
11461
+  (0.1ms) ROLLBACK
11462
+  (0.1ms) BEGIN
11463
+ --------------------------------------------
11464
+ EmployeeTest: test_nil_dates_raise_no_errors
11465
+ --------------------------------------------
11466
+  (0.1ms) ROLLBACK
11467
+  (0.1ms) BEGIN
11468
+ ---------------------------------------------------------------------------------------------------------
11469
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
11470
+ ---------------------------------------------------------------------------------------------------------
11471
+  (0.1ms) ROLLBACK
11472
+  (0.1ms) BEGIN
11473
+ -----------------------------------------------------------------
11474
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
11475
+ -----------------------------------------------------------------
11476
+  (0.1ms) ROLLBACK
11477
+  (0.1ms) BEGIN
11478
+ -------------------------------------------------------------------------------------------------------------------
11479
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
11480
+ -------------------------------------------------------------------------------------------------------------------
11481
+  (0.1ms) ROLLBACK
11482
+  (0.1ms) BEGIN
11483
+ ---------------------------------------------------------------------
11484
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
11485
+ ---------------------------------------------------------------------
11486
+  (0.1ms) ROLLBACK
11487
+  (0.1ms) BEGIN
11488
+ -----------------------------------------------------------
11489
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
11490
+ -----------------------------------------------------------
11491
+  (0.1ms) ROLLBACK
11492
+  (0.1ms) BEGIN
11493
+ -----------------------------------------------------------------------------------
11494
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
11495
+ -----------------------------------------------------------------------------------
11496
+  (0.1ms) ROLLBACK
11497
+  (0.1ms) BEGIN
11498
+ ----------------------------------------------
11499
+ EmployeeTest: test_valid_dates_raise_no_errors
11500
+ ----------------------------------------------
11501
+  (0.1ms) ROLLBACK
11502
+  (0.1ms) BEGIN
11503
+ ---------------------------------------------------------------------
11504
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
11505
+ ---------------------------------------------------------------------
11506
+  (0.1ms) SAVEPOINT active_record_1
11507
+ SQL (0.1ms) 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-12 10:29:42.548288"], ["updated_at", "2016-04-12 10:29:42.548288"]]
11508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11509
+  (0.1ms) SAVEPOINT active_record_1
11510
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-12 10:29:42.549479"], ["id", 607]]
11511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11512
+  (0.1ms) ROLLBACK
11513
+  (0.1ms) BEGIN
11514
+ ------------------------------------------------------------------------
11515
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
11516
+ ------------------------------------------------------------------------
11517
+  (0.1ms) ROLLBACK
11518
+  (0.1ms) BEGIN
11519
+ --------------------------------------------------------------------------
11520
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
11521
+ --------------------------------------------------------------------------
11522
+  (0.1ms) ROLLBACK
11523
+  (0.0ms) BEGIN
11524
+ -----------------------------------------------------------
11525
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
11526
+ -----------------------------------------------------------
11527
+  (0.1ms) ROLLBACK
11528
+  (0.1ms) BEGIN
11529
+ ----------------------------------------------------------------------------------------------------------------
11530
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
11531
+ ----------------------------------------------------------------------------------------------------------------
11532
+  (0.1ms) ROLLBACK
11533
+  (0.1ms) BEGIN
11534
+ -------------------------------------------------------------------------
11535
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
11536
+ -------------------------------------------------------------------------
11537
+  (0.1ms) SAVEPOINT active_record_1
11538
+ SQL (0.1ms) 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-12 10:29:42.553568"], ["updated_at", "2016-04-12 10:29:42.553568"]]
11539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11540
+  (0.0ms) SAVEPOINT active_record_1
11541
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11542
+  (0.1ms) ROLLBACK
11543
+  (0.1ms) BEGIN
11544
+ -------------------------------------
11545
+ GovUkDateFieldsTest: test_squash_html
11546
+ -------------------------------------
11547
+  (0.1ms) ROLLBACK
11548
+  (0.1ms) BEGIN
11549
+ -------------------------------------------------------
11550
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
11551
+ -------------------------------------------------------
11552
+  (0.2ms) ROLLBACK
11553
+  (0.1ms) BEGIN
11554
+ ---------------------------------------------------------------
11555
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
11556
+ ---------------------------------------------------------------
11557
+  (0.2ms) ROLLBACK
11558
+  (0.1ms) BEGIN
11559
+ -------------------------------------------------------------
11560
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
11561
+ -------------------------------------------------------------
11562
+  (0.1ms) ROLLBACK
11563
+  (0.1ms) BEGIN
11564
+ -----------------------------------------------------------
11565
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
11566
+ -----------------------------------------------------------
11567
+  (0.1ms) ROLLBACK
11568
+  (0.1ms) BEGIN
11569
+ ---------------------------------------------------------------
11570
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
11571
+ ---------------------------------------------------------------
11572
+  (0.1ms) ROLLBACK
11573
+  (0.0ms) BEGIN
11574
+ ------------------------------------------
11575
+ GovUkDateFieldsTest: test_fieldset_with_id
11576
+ ------------------------------------------
11577
+  (0.1ms) ROLLBACK
11578
+  (0.1ms) BEGIN
11579
+ --------------------------------------------------------
11580
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
11581
+ --------------------------------------------------------
11582
+  (0.1ms) ROLLBACK
11583
+  (0.2ms) BEGIN
11584
+ ---------------------------------------------------------------------------------
11585
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
11586
+ ---------------------------------------------------------------------------------
11587
+  (0.2ms) ROLLBACK
11588
+  (0.1ms) BEGIN
11589
+ -----------------------------------------------------------------------------------------
11590
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
11591
+ -----------------------------------------------------------------------------------------
11592
+  (0.1ms) ROLLBACK
11593
+  (0.1ms) BEGIN
11594
+ -------------------------------------------------------------------------------
11595
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
11596
+ -------------------------------------------------------------------------------
11597
+  (0.1ms) ROLLBACK
11598
+  (0.0ms) BEGIN
11599
+ ----------------------------------------------------------------------------------------------------------------------------------
11600
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
11601
+ ----------------------------------------------------------------------------------------------------------------------------------
11602
+  (0.1ms) ROLLBACK
11603
+  (0.1ms) BEGIN
11604
+ -----------------------------------------------------------------------------------------------
11605
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
11606
+ -----------------------------------------------------------------------------------------------
11607
+  (0.1ms) ROLLBACK
11608
+  (0.0ms) BEGIN
11609
+ ------------------------------------------------------------------------------------------
11610
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
11611
+ ------------------------------------------------------------------------------------------
11612
+  (0.1ms) ROLLBACK
11613
+  (0.1ms) BEGIN
11614
+ ---------------------------------------------------------------------------------
11615
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
11616
+ ---------------------------------------------------------------------------------
11617
+  (0.1ms) ROLLBACK
11618
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
11619
+  (0.1ms) BEGIN
11620
+ -------------------------------------------------------------------------------
11621
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
11622
+ -------------------------------------------------------------------------------
11623
+  (0.1ms) ROLLBACK
11624
+  (0.1ms) BEGIN
11625
+ ------------------------------------------------------------------------------------------
11626
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
11627
+ ------------------------------------------------------------------------------------------
11628
+  (0.1ms) ROLLBACK
11629
+  (0.1ms) BEGIN
11630
+ ---------------------------------------------------------------------------------
11631
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
11632
+ ---------------------------------------------------------------------------------
11633
+  (0.1ms) ROLLBACK
11634
+  (0.1ms) BEGIN
11635
+ -----------------------------------------------------------------------------------------------
11636
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
11637
+ -----------------------------------------------------------------------------------------------
11638
+  (0.1ms) ROLLBACK
11639
+  (0.1ms) BEGIN
11640
+ ---------------------------------------------------------------------------------
11641
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
11642
+ ---------------------------------------------------------------------------------
11643
+  (0.1ms) ROLLBACK
11644
+  (0.1ms) BEGIN
11645
+ -----------------------------------------------------------------------------------------
11646
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
11647
+ -----------------------------------------------------------------------------------------
11648
+  (0.1ms) ROLLBACK
11649
+  (0.1ms) BEGIN
11650
+ ----------------------------------------------------------------------------------------------------------------------------------
11651
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
11652
+ ----------------------------------------------------------------------------------------------------------------------------------
11653
+  (0.1ms) ROLLBACK
11654
+  (0.1ms) BEGIN
11655
+ --------------------------------------------------------------
11656
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
11657
+ --------------------------------------------------------------
11658
+  (0.2ms) SAVEPOINT active_record_1
11659
+ SQL (0.4ms) 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-12 10:42:18.562983"], ["updated_at", "2016-04-12 10:42:18.562983"]]
11660
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11661
+  (0.1ms) SAVEPOINT active_record_1
11662
+ SQL (0.1ms) 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-12 10:42:18.566379"], ["updated_at", "2016-04-12 10:42:18.566379"]]
11663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11664
+ Processing by EmployeesController#edit as HTML
11665
+ Parameters: {"id"=>"609"}
11666
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 609]]
11667
+ Rendered employees/_form.html.erb (8.3ms)
11668
+ Rendered employees/edit.html.erb within layouts/application (10.9ms)
11669
+ Completed 200 OK in 122ms (Views: 118.4ms | ActiveRecord: 0.2ms)
11670
+  (0.2ms) ROLLBACK
11671
+  (0.1ms) BEGIN
11672
+ -----------------------------------------------------
11673
+ EmployeesControllerTest: test_should_destroy_employee
11674
+ -----------------------------------------------------
11675
+  (0.1ms) SAVEPOINT active_record_1
11676
+ SQL (0.1ms) 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-12 10:42:18.695057"], ["updated_at", "2016-04-12 10:42:18.695057"]]
11677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11678
+  (0.1ms) SAVEPOINT active_record_1
11679
+ SQL (0.1ms) 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-12 10:42:18.696245"], ["updated_at", "2016-04-12 10:42:18.696245"]]
11680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11681
+  (0.2ms) SELECT COUNT(*) FROM "employees"
11682
+ Processing by EmployeesController#destroy as HTML
11683
+ Parameters: {"id"=>"611"}
11684
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 611]]
11685
+  (0.1ms) SAVEPOINT active_record_1
11686
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 611]]
11687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11688
+ Redirected to http://test.host/employees
11689
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
11690
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11691
+  (0.1ms) ROLLBACK
11692
+  (0.1ms) BEGIN
11693
+ ----------------------------------------------------
11694
+ EmployeesControllerTest: test_should_update_employee
11695
+ ----------------------------------------------------
11696
+  (0.1ms) SAVEPOINT active_record_1
11697
+ SQL (0.2ms) 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-12 10:42:18.701922"], ["updated_at", "2016-04-12 10:42:18.701922"]]
11698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11699
+  (0.1ms) SAVEPOINT active_record_1
11700
+ SQL (0.2ms) 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-12 10:42:18.703424"], ["updated_at", "2016-04-12 10:42:18.703424"]]
11701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11702
+ Processing by EmployeesController#update as HTML
11703
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"613"}
11704
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 613]]
11705
+  (0.1ms) SAVEPOINT active_record_1
11706
+ SQL (0.2ms) 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-12 10:42:18.706994"], ["id", 613]]
11707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11708
+ Redirected to http://test.host/employees/613
11709
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
11710
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 613]]
11711
+  (0.1ms) ROLLBACK
11712
+  (0.1ms) BEGIN
11713
+ --------------------------------------------
11714
+ EmployeesControllerTest: test_should_get_new
11715
+ --------------------------------------------
11716
+  (0.1ms) SAVEPOINT active_record_1
11717
+ SQL (0.1ms) 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-12 10:42:18.710800"], ["updated_at", "2016-04-12 10:42:18.710800"]]
11718
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11719
+  (0.1ms) SAVEPOINT active_record_1
11720
+ SQL (0.1ms) 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-12 10:42:18.711775"], ["updated_at", "2016-04-12 10:42:18.711775"]]
11721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11722
+ Processing by EmployeesController#new as HTML
11723
+ Rendered employees/_form.html.erb (1.4ms)
11724
+ Rendered employees/new.html.erb within layouts/application (1.9ms)
11725
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
11726
+  (0.1ms) ROLLBACK
11727
+  (0.1ms) BEGIN
11728
+ ----------------------------------------------
11729
+ EmployeesControllerTest: test_should_get_index
11730
+ ----------------------------------------------
11731
+  (0.1ms) SAVEPOINT active_record_1
11732
+ SQL (0.1ms) 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-12 10:42:18.717718"], ["updated_at", "2016-04-12 10:42:18.717718"]]
11733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11734
+  (0.1ms) SAVEPOINT active_record_1
11735
+ SQL (0.1ms) 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-12 10:42:18.718797"], ["updated_at", "2016-04-12 10:42:18.718797"]]
11736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11737
+ Processing by EmployeesController#index as HTML
11738
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
11739
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
11740
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
11741
+  (0.1ms) ROLLBACK
11742
+  (0.1ms) BEGIN
11743
+ ---------------------------------------------
11744
+ EmployeesControllerTest: test_should_get_edit
11745
+ ---------------------------------------------
11746
+  (0.1ms) SAVEPOINT active_record_1
11747
+ SQL (0.1ms) 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-12 10:42:18.724191"], ["updated_at", "2016-04-12 10:42:18.724191"]]
11748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11749
+  (0.1ms) SAVEPOINT active_record_1
11750
+ SQL (0.1ms) 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-12 10:42:18.725221"], ["updated_at", "2016-04-12 10:42:18.725221"]]
11751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11752
+ Processing by EmployeesController#edit as HTML
11753
+ Parameters: {"id"=>"619"}
11754
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 619]]
11755
+ Rendered employees/_form.html.erb (1.4ms)
11756
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
11757
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)
11758
+  (0.1ms) ROLLBACK
11759
+  (0.1ms) BEGIN
11760
+ --------------------------------------------------
11761
+ EmployeesControllerTest: test_should_show_employee
11762
+ --------------------------------------------------
11763
+  (0.1ms) SAVEPOINT active_record_1
11764
+ SQL (0.1ms) 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-12 10:42:18.730658"], ["updated_at", "2016-04-12 10:42:18.730658"]]
11765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11766
+  (0.1ms) SAVEPOINT active_record_1
11767
+ SQL (0.1ms) 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-12 10:42:18.731885"], ["updated_at", "2016-04-12 10:42:18.731885"]]
11768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11769
+ Processing by EmployeesController#show as HTML
11770
+ Parameters: {"id"=>"621"}
11771
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 621]]
11772
+ Rendered employees/show.html.erb within layouts/application (1.4ms)
11773
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)
11774
+  (0.1ms) ROLLBACK
11775
+  (0.1ms) BEGIN
11776
+ ----------------------------------------------------
11777
+ EmployeesControllerTest: test_should_create_employee
11778
+ ----------------------------------------------------
11779
+  (0.1ms) SAVEPOINT active_record_1
11780
+ SQL (0.1ms) 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-12 10:42:18.738046"], ["updated_at", "2016-04-12 10:42:18.738046"]]
11781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11782
+  (0.1ms) SAVEPOINT active_record_1
11783
+ SQL (0.1ms) 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-12 10:42:18.739164"], ["updated_at", "2016-04-12 10:42:18.739164"]]
11784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11785
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11786
+ Processing by EmployeesController#create as HTML
11787
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
11788
+  (0.1ms) SAVEPOINT active_record_1
11789
+ SQL (0.1ms) 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-12 10:42:18.741667"], ["updated_at", "2016-04-12 10:42:18.741667"]]
11790
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11791
+ Redirected to http://test.host/employees/625
11792
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
11793
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11794
+  (0.1ms) SELECT COUNT(*) FROM "employees"
11795
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
11796
+  (0.1ms) ROLLBACK
11797
+  (0.1ms) BEGIN
11798
+ -------------------------------------------------------
11799
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
11800
+ -------------------------------------------------------
11801
+  (0.1ms) ROLLBACK
11802
+  (0.1ms) BEGIN
11803
+ -------------------------------------------------------------
11804
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
11805
+ -------------------------------------------------------------
11806
+  (0.1ms) ROLLBACK
11807
+  (0.1ms) BEGIN
11808
+ -------------------------------------
11809
+ GovUkDateFieldsTest: test_squash_html
11810
+ -------------------------------------
11811
+  (0.1ms) ROLLBACK
11812
+  (0.1ms) BEGIN
11813
+ ---------------------------------------------------------------
11814
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
11815
+ ---------------------------------------------------------------
11816
+  (0.1ms) ROLLBACK
11817
+  (0.1ms) BEGIN
11818
+ --------------------------------------------------------
11819
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
11820
+ --------------------------------------------------------
11821
+  (0.1ms) ROLLBACK
11822
+  (0.1ms) BEGIN
11823
+ -----------------------------------------------------------
11824
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
11825
+ -----------------------------------------------------------
11826
+  (0.1ms) ROLLBACK
11827
+  (0.1ms) BEGIN
11828
+ ------------------------------------------
11829
+ GovUkDateFieldsTest: test_fieldset_with_id
11830
+ ------------------------------------------
11831
+  (0.1ms) ROLLBACK
11832
+  (0.1ms) BEGIN
11833
+ ---------------------------------------------------------------
11834
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
11835
+ ---------------------------------------------------------------
11836
+  (0.1ms) ROLLBACK
11837
+  (0.1ms) BEGIN
11838
+ ------------------------------------------------------------------------
11839
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
11840
+ ------------------------------------------------------------------------
11841
+  (0.1ms) ROLLBACK
11842
+  (0.1ms) BEGIN
11843
+ ------------------------------------------------------------------------------------------
11844
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
11845
+ ------------------------------------------------------------------------------------------
11846
+  (0.1ms) ROLLBACK
11847
+  (0.0ms) BEGIN
11848
+ ---------------------------------------------------------------------
11849
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
11850
+ ---------------------------------------------------------------------
11851
+  (0.1ms) ROLLBACK
11852
+  (0.1ms) BEGIN
11853
+ ---------------------------------------------------------------------------------------------------------
11854
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
11855
+ ---------------------------------------------------------------------------------------------------------
11856
+  (0.1ms) ROLLBACK
11857
+  (0.1ms) BEGIN
11858
+ --------------------------------------------------------------------------
11859
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
11860
+ --------------------------------------------------------------------------
11861
+  (0.1ms) ROLLBACK
11862
+  (0.0ms) BEGIN
11863
+ -------------------------------------------------------------------------
11864
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
11865
+ -------------------------------------------------------------------------
11866
+  (0.1ms) SAVEPOINT active_record_1
11867
+ SQL (0.1ms) 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-12 10:42:18.755954"], ["updated_at", "2016-04-12 10:42:18.755954"]]
11868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11869
+  (0.0ms) SAVEPOINT active_record_1
11870
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11871
+  (0.1ms) ROLLBACK
11872
+  (0.1ms) BEGIN
11873
+ ---------------------------------------------------------------------
11874
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
11875
+ ---------------------------------------------------------------------
11876
+  (0.1ms) SAVEPOINT active_record_1
11877
+ SQL (0.1ms) 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-12 10:42:18.757863"], ["updated_at", "2016-04-12 10:42:18.757863"]]
11878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11879
+  (0.0ms) SAVEPOINT active_record_1
11880
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-04-12 10:42:18.758797"], ["id", 627]]
11881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11882
+  (0.1ms) ROLLBACK
11883
+  (0.1ms) BEGIN
11884
+ -----------------------------------------------------------------------
11885
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
11886
+ -----------------------------------------------------------------------
11887
+  (0.1ms) ROLLBACK
11888
+  (0.0ms) BEGIN
11889
+ -------------------------------------------
11890
+ EmployeeTest: test_invalid_day_raises_error
11891
+ -------------------------------------------
11892
+  (0.1ms) ROLLBACK
11893
+  (0.1ms) BEGIN
11894
+ ----------------------------------------------------------------------------------------------
11895
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
11896
+ ----------------------------------------------------------------------------------------------
11897
+  (0.1ms) ROLLBACK
11898
+  (0.1ms) BEGIN
11899
+ -------------------------------------------------------------------------------------------------------------------
11900
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
11901
+ -------------------------------------------------------------------------------------------------------------------
11902
+  (0.1ms) ROLLBACK
11903
+  (0.1ms) BEGIN
11904
+ ----------------------------------------------
11905
+ EmployeeTest: test_valid_dates_raise_no_errors
11906
+ ----------------------------------------------
11907
+  (0.1ms) ROLLBACK
11908
+  (0.1ms) BEGIN
11909
+ -----------------------------------------------------------------
11910
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
11911
+ -----------------------------------------------------------------
11912
+  (0.1ms) ROLLBACK
11913
+  (0.1ms) BEGIN
11914
+ -----------------------------------------------------------
11915
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
11916
+ -----------------------------------------------------------
11917
+  (0.1ms) ROLLBACK
11918
+  (0.1ms) BEGIN
11919
+ --------------------------------------------
11920
+ EmployeeTest: test_nil_dates_raise_no_errors
11921
+ --------------------------------------------
11922
+  (0.1ms) ROLLBACK
11923
+  (0.0ms) BEGIN
11924
+ -----------------------------------------------------------
11925
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
11926
+ -----------------------------------------------------------
11927
+  (0.1ms) ROLLBACK
11928
+  (0.1ms) BEGIN
11929
+ -----------------------------------------------------------------------------------
11930
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
11931
+ -----------------------------------------------------------------------------------
11932
+  (0.1ms) ROLLBACK
11933
+  (0.1ms) BEGIN
11934
+ ----------------------------------------------------------------------------------------------------------------
11935
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
11936
+ ----------------------------------------------------------------------------------------------------------------
11937
+  (0.1ms) ROLLBACK
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: 1.0.5
4
+ version: 1.0.6
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: 2016-04-05 00:00:00.000000000 Z
12
+ date: 2016-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails