gov_uk_date_fields 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33e73dc3028bfe7eabd277ca6c445f0026b90ba1
4
- data.tar.gz: a98c3076f96577fc5fcf2f818a338b5af7ede2af
3
+ metadata.gz: 8997ff551d09a254b976d56937602201da893c67
4
+ data.tar.gz: 4bdefc4c20d7900a2737737e40d2b8ca1ab65f60
5
5
  SHA512:
6
- metadata.gz: f530377e7c3aa0488e9b84a4329620c0f93ffc4aab7d3293352bb99ea89b1249c767e3c52f3a86b2e1e2097c23ce990fad77fa621bd10997ac4324fe26a4f046
7
- data.tar.gz: 7bf3e100b1e278ad3c014b5c5cc19fe4ae701251618ba1feb1a99333fbbb677375c0e9a05bca00d302a787a657418e80546837ce98e1f556f79ce8abea4759ac
6
+ metadata.gz: 75c5ae49b6b4a6d8388e5641ca16932ea931f2ce41381149de6351af0ae5881b92c563531b5db82752c3a1da3d046983b7355103819672e726de38747c47d422
7
+ data.tar.gz: d0a31815f5d94a7cae0fa7a897f905dcc623c6d49ae0f4747e638aa572576a22232fe6069b888c990fcaf7fe3feca2af74c78ef29a7db9ff2c36f591c1a43498
@@ -28,6 +28,7 @@ module GovUkDateFields
28
28
  @fieldset_required = false
29
29
  @fieldset_id = @options[:id]
30
30
  @error_messages = @options[:error_messages]
31
+ @hint_id = @fieldset_id.nil? ? "#{@attribute}-hint" : "#{@fieldset_id}-hint"
31
32
  parse_options
32
33
  end
33
34
 
@@ -67,7 +68,7 @@ module GovUkDateFields
67
68
  #{generate_legend_tag}#{@options[:legend_text]}</legend>
68
69
  <div class="form-date">
69
70
  #{generate_error_message}
70
- <p class="form-hint" id="#{@attribute}-hint">#{@form_hint_text}</p>
71
+ <p class="form-hint" id="#{@hint_id}">#{@form_hint_text}</p>
71
72
  |
72
73
  end
73
74
 
@@ -129,7 +130,7 @@ module GovUkDateFields
129
130
  %Q|
130
131
  <div class="form-group form-group-day">
131
132
  <label for="#{html_id(:day)}">Day</label>
132
- <input class="form-control" id="#{html_id(:day)}" name="#{html_name(:day)}" type="number" min="0" max="31" aria-describedby="#{@attribute}-hint" #{generate_day_value}>
133
+ <input class="form-control" id="#{html_id(:day)}" name="#{html_name(:day)}" type="number" min="0" max="31" aria-describedby="#{@hint_id}" #{generate_day_value}>
133
134
  </div>
134
135
  |
135
136
  end
@@ -1,3 +1,3 @@
1
1
  module GovUkDateFields
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -455,3 +455,1486 @@ Processing by EmployeesController#index as HTML
455
455
  Rendered employees/index.html.erb within layouts/application (1.6ms)
456
456
  Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)
457
457
   (0.1ms) ROLLBACK
458
+ ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
459
+  (0.2ms) BEGIN
460
+ --------------------------------------------------
461
+ EmployeesControllerTest: test_should_show_employee
462
+ --------------------------------------------------
463
+  (0.1ms) SAVEPOINT active_record_1
464
+ SQL (1.8ms) 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-06-23 09:03:11.857178"], ["updated_at", "2016-06-23 09:03:11.857178"]]
465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
466
+  (0.1ms) SAVEPOINT active_record_1
467
+ 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-06-23 09:03:11.863651"], ["updated_at", "2016-06-23 09:03:11.863651"]]
468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
469
+ Processing by EmployeesController#show as HTML
470
+ Parameters: {"id"=>"707"}
471
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 707]]
472
+ Rendered employees/show.html.erb within layouts/application (1.6ms)
473
+ Completed 200 OK in 243ms (Views: 235.6ms | ActiveRecord: 0.3ms)
474
+  (0.2ms) ROLLBACK
475
+  (0.2ms) BEGIN
476
+ -----------------------------------------------------
477
+ EmployeesControllerTest: test_should_destroy_employee
478
+ -----------------------------------------------------
479
+  (0.1ms) SAVEPOINT active_record_1
480
+ 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-06-23 09:03:12.113680"], ["updated_at", "2016-06-23 09:03:12.113680"]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
482
+  (0.1ms) SAVEPOINT active_record_1
483
+ 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-06-23 09:03:12.115438"], ["updated_at", "2016-06-23 09:03:12.115438"]]
484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
485
+  (0.2ms) SELECT COUNT(*) FROM "employees"
486
+ Processing by EmployeesController#destroy as HTML
487
+ Parameters: {"id"=>"709"}
488
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 709]]
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 709]]
491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
492
+ Redirected to http://test.host/employees
493
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
494
+  (0.1ms) SELECT COUNT(*) FROM "employees"
495
+  (0.2ms) ROLLBACK
496
+  (0.1ms) BEGIN
497
+ --------------------------------------------------------------
498
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
499
+ --------------------------------------------------------------
500
+  (0.1ms) SAVEPOINT active_record_1
501
+ 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-06-23 09:03:12.121590"], ["updated_at", "2016-06-23 09:03:12.121590"]]
502
+  (0.1ms) RELEASE SAVEPOINT active_record_1
503
+  (0.1ms) SAVEPOINT active_record_1
504
+ 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-06-23 09:03:12.122708"], ["updated_at", "2016-06-23 09:03:12.122708"]]
505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
506
+ Processing by EmployeesController#edit as HTML
507
+ Parameters: {"id"=>"711"}
508
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 711]]
509
+ Rendered employees/_form.html.erb (12.8ms)
510
+ Rendered employees/edit.html.erb within layouts/application (16.0ms)
511
+ Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.2ms)
512
+  (0.2ms) ROLLBACK
513
+  (0.1ms) BEGIN
514
+ ----------------------------------------------------
515
+ EmployeesControllerTest: test_should_update_employee
516
+ ----------------------------------------------------
517
+  (0.1ms) SAVEPOINT active_record_1
518
+ 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-06-23 09:03:12.154831"], ["updated_at", "2016-06-23 09:03:12.154831"]]
519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
520
+  (0.1ms) SAVEPOINT active_record_1
521
+ 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-06-23 09:03:12.156253"], ["updated_at", "2016-06-23 09:03:12.156253"]]
522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
523
+ Processing by EmployeesController#update as HTML
524
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"713"}
525
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 713]]
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ 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-06-23 09:03:12.159590"], ["id", 713]]
528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
529
+ Redirected to http://test.host/employees/713
530
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
531
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 713]]
532
+  (0.1ms) ROLLBACK
533
+  (0.1ms) BEGIN
534
+ --------------------------------------------
535
+ EmployeesControllerTest: test_should_get_new
536
+ --------------------------------------------
537
+  (0.1ms) SAVEPOINT active_record_1
538
+ 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-06-23 09:03:12.163950"], ["updated_at", "2016-06-23 09:03:12.163950"]]
539
+  (0.1ms) RELEASE SAVEPOINT active_record_1
540
+  (0.1ms) SAVEPOINT active_record_1
541
+ 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-06-23 09:03:12.165075"], ["updated_at", "2016-06-23 09:03:12.165075"]]
542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
543
+ Processing by EmployeesController#new as HTML
544
+ Rendered employees/_form.html.erb (1.9ms)
545
+ Rendered employees/new.html.erb within layouts/application (2.5ms)
546
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
547
+  (0.1ms) ROLLBACK
548
+  (0.1ms) BEGIN
549
+ ----------------------------------------------
550
+ EmployeesControllerTest: test_should_get_index
551
+ ----------------------------------------------
552
+  (0.1ms) SAVEPOINT active_record_1
553
+ 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-06-23 09:03:12.172229"], ["updated_at", "2016-06-23 09:03:12.172229"]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+  (0.1ms) SAVEPOINT active_record_1
556
+ 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-06-23 09:03:12.173510"], ["updated_at", "2016-06-23 09:03:12.173510"]]
557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
558
+ Processing by EmployeesController#index as HTML
559
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees"
560
+ Rendered employees/index.html.erb within layouts/application (2.7ms)
561
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.3ms)
562
+  (0.1ms) ROLLBACK
563
+  (0.1ms) BEGIN
564
+ ---------------------------------------------
565
+ EmployeesControllerTest: test_should_get_edit
566
+ ---------------------------------------------
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ 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-06-23 09:03:12.181654"], ["updated_at", "2016-06-23 09:03:12.181654"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+  (0.1ms) SAVEPOINT active_record_1
571
+ 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-06-23 09:03:12.183069"], ["updated_at", "2016-06-23 09:03:12.183069"]]
572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
573
+ Processing by EmployeesController#edit as HTML
574
+ Parameters: {"id"=>"719"}
575
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 719]]
576
+ Rendered employees/_form.html.erb (1.6ms)
577
+ Rendered employees/edit.html.erb within layouts/application (1.8ms)
578
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)
579
+  (0.1ms) ROLLBACK
580
+  (0.1ms) BEGIN
581
+ ----------------------------------------------------
582
+ EmployeesControllerTest: test_should_create_employee
583
+ ----------------------------------------------------
584
+  (0.1ms) SAVEPOINT active_record_1
585
+ 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-06-23 09:03:12.189141"], ["updated_at", "2016-06-23 09:03:12.189141"]]
586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
587
+  (0.1ms) SAVEPOINT active_record_1
588
+ 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-06-23 09:03:12.190319"], ["updated_at", "2016-06-23 09:03:12.190319"]]
589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
590
+  (0.2ms) SELECT COUNT(*) FROM "employees"
591
+ Processing by EmployeesController#create as HTML
592
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
593
+  (0.2ms) SAVEPOINT active_record_1
594
+ SQL (0.2ms) 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-06-23 09:03:12.193654"], ["updated_at", "2016-06-23 09:03:12.193654"]]
595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
596
+ Redirected to http://test.host/employees/723
597
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
598
+  (0.2ms) SELECT COUNT(*) FROM "employees"
599
+  (0.1ms) SELECT COUNT(*) FROM "employees"
600
+ Employee Load (0.6ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
601
+  (0.7ms) ROLLBACK
602
+  (0.1ms) BEGIN
603
+ --------------------------------------------------------
604
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
605
+ --------------------------------------------------------
606
+  (0.1ms) ROLLBACK
607
+  (0.1ms) BEGIN
608
+ ---------------------------------------------------------------
609
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
610
+ ---------------------------------------------------------------
611
+  (0.1ms) ROLLBACK
612
+  (0.0ms) BEGIN
613
+ -------------------------------------
614
+ GovUkDateFieldsTest: test_squash_html
615
+ -------------------------------------
616
+  (0.1ms) ROLLBACK
617
+  (0.1ms) BEGIN
618
+ -------------------------------------------------------------------------------
619
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
620
+ -------------------------------------------------------------------------------
621
+  (0.1ms) ROLLBACK
622
+  (0.1ms) BEGIN
623
+ ------------------------------------------
624
+ GovUkDateFieldsTest: test_fieldset_with_id
625
+ ------------------------------------------
626
+  (0.1ms) ROLLBACK
627
+  (0.1ms) BEGIN
628
+ -------------------------------------------------------
629
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
630
+ -------------------------------------------------------
631
+  (0.1ms) ROLLBACK
632
+  (0.1ms) BEGIN
633
+ ---------------------------------------------------------------
634
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
635
+ ---------------------------------------------------------------
636
+  (0.1ms) ROLLBACK
637
+  (0.1ms) BEGIN
638
+ -------------------------------------------------------------
639
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
640
+ -------------------------------------------------------------
641
+  (0.1ms) ROLLBACK
642
+  (0.1ms) BEGIN
643
+ -----------------------------------------------------------
644
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
645
+ -----------------------------------------------------------
646
+  (0.1ms) ROLLBACK
647
+  (0.1ms) BEGIN
648
+ -----------------------------------------------------------------
649
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
650
+ -----------------------------------------------------------------
651
+  (0.1ms) ROLLBACK
652
+  (0.1ms) BEGIN
653
+ -----------------------------------------------------------------------------------------------
654
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
655
+ -----------------------------------------------------------------------------------------------
656
+  (0.1ms) ROLLBACK
657
+  (0.1ms) BEGIN
658
+ --------------------------------------------------------------------------
659
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
660
+ --------------------------------------------------------------------------
661
+  (0.1ms) ROLLBACK
662
+  (0.1ms) BEGIN
663
+ -----------------------------------------------------------------------
664
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
665
+ -----------------------------------------------------------------------
666
+  (0.1ms) ROLLBACK
667
+  (0.1ms) BEGIN
668
+ ------------------------------------------------------------------------------------------------
669
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
670
+ ------------------------------------------------------------------------------------------------
671
+  (0.1ms) SAVEPOINT active_record_1
672
+ 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-06-23 09:03:12.243922"], ["updated_at", "2016-06-23 09:03:12.243922"]]
673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
674
+  (0.1ms) SAVEPOINT active_record_1
675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
676
+  (0.1ms) ROLLBACK
677
+  (0.1ms) BEGIN
678
+ ---------------------------------------------------------------------
679
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
680
+ ---------------------------------------------------------------------
681
+  (0.1ms) ROLLBACK
682
+  (0.1ms) BEGIN
683
+ -----------------------------------------------------------------------
684
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
685
+ -----------------------------------------------------------------------
686
+  (0.1ms) ROLLBACK
687
+  (0.1ms) BEGIN
688
+ ---------------------------------------------------------------------------------
689
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
690
+ ---------------------------------------------------------------------------------
691
+  (0.1ms) ROLLBACK
692
+  (0.1ms) BEGIN
693
+ ------------------------------------------------------------------------------------------
694
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
695
+ ------------------------------------------------------------------------------------------
696
+  (0.1ms) ROLLBACK
697
+  (0.1ms) BEGIN
698
+ ---------------------------------------------------------------------------------
699
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
700
+ ---------------------------------------------------------------------------------
701
+  (0.1ms) ROLLBACK
702
+  (0.1ms) BEGIN
703
+ ----------------------------------------------------------------------------------------------------------------------------------
704
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
705
+ ----------------------------------------------------------------------------------------------------------------------------------
706
+  (0.1ms) ROLLBACK
707
+  (0.1ms) BEGIN
708
+ -----------------------------------------------------------------------------------------------
709
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
710
+ -----------------------------------------------------------------------------------------------
711
+  (0.1ms) ROLLBACK
712
+  (0.1ms) BEGIN
713
+ -----------------------------------------------------------------------------------------
714
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
715
+ -----------------------------------------------------------------------------------------
716
+  (0.1ms) ROLLBACK
717
+  (0.1ms) BEGIN
718
+ -------------------------------------------------------------------------------
719
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
720
+ -------------------------------------------------------------------------------
721
+  (0.1ms) ROLLBACK
722
+  (0.1ms) BEGIN
723
+ ---------------------------------------------------------------------
724
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
725
+ ---------------------------------------------------------------------
726
+  (0.1ms) ROLLBACK
727
+  (0.0ms) BEGIN
728
+ ------------------------------------------------------------------------
729
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
730
+ ------------------------------------------------------------------------
731
+  (0.1ms) ROLLBACK
732
+  (0.1ms) BEGIN
733
+ ----------------------------------------------------------------------------------------------
734
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
735
+ ----------------------------------------------------------------------------------------------
736
+  (0.1ms) ROLLBACK
737
+  (0.1ms) BEGIN
738
+ -------------------------------------------------------------------------
739
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
740
+ -------------------------------------------------------------------------
741
+  (0.1ms) SAVEPOINT active_record_1
742
+ SQL (0.2ms) 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-06-23 09:03:12.258216"], ["updated_at", "2016-06-23 09:03:12.258216"]]
743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
744
+  (0.1ms) SAVEPOINT active_record_1
745
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
746
+  (0.1ms) ROLLBACK
747
+  (0.1ms) BEGIN
748
+ --------------------------------------------
749
+ EmployeeTest: test_nil_dates_raise_no_errors
750
+ --------------------------------------------
751
+  (0.1ms) ROLLBACK
752
+  (0.1ms) BEGIN
753
+ ----------------------------------------------
754
+ EmployeeTest: test_valid_dates_raise_no_errors
755
+ ----------------------------------------------
756
+  (0.1ms) ROLLBACK
757
+  (0.1ms) BEGIN
758
+ -----------------------------------------------------------
759
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
760
+ -----------------------------------------------------------
761
+  (0.1ms) ROLLBACK
762
+  (0.1ms) BEGIN
763
+ ---------------------------------------------------------------------------------------------------------
764
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
765
+ ---------------------------------------------------------------------------------------------------------
766
+  (0.0ms) ROLLBACK
767
+  (0.1ms) BEGIN
768
+ -----------------------------------------------------------------------------------
769
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
770
+ -----------------------------------------------------------------------------------
771
+  (0.0ms) ROLLBACK
772
+  (0.1ms) BEGIN
773
+ -----------------------------------------------------------------------
774
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
775
+ -----------------------------------------------------------------------
776
+  (0.1ms) ROLLBACK
777
+  (0.7ms) BEGIN
778
+ -------------------------------------------
779
+ EmployeeTest: test_invalid_day_raises_error
780
+ -------------------------------------------
781
+  (0.1ms) ROLLBACK
782
+  (0.1ms) BEGIN
783
+ ------------------------------------------------------------------------------------------
784
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
785
+ ------------------------------------------------------------------------------------------
786
+  (0.1ms) ROLLBACK
787
+  (0.1ms) BEGIN
788
+ --------------------------------------------------------------------------
789
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
790
+ --------------------------------------------------------------------------
791
+  (0.1ms) ROLLBACK
792
+  (0.1ms) BEGIN
793
+ -----------------------------------------------------------
794
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
795
+ -----------------------------------------------------------
796
+  (0.1ms) ROLLBACK
797
+  (0.1ms) BEGIN
798
+ ---------------------------------------------------------------------
799
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
800
+ ---------------------------------------------------------------------
801
+  (0.1ms) SAVEPOINT active_record_1
802
+ 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-06-23 09:03:12.268573"], ["updated_at", "2016-06-23 09:03:12.268573"]]
803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
804
+  (0.1ms) SAVEPOINT active_record_1
805
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-06-23 09:03:12.269697"], ["id", 726]]
806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
807
+  (0.1ms) ROLLBACK
808
+  (0.1ms) BEGIN
809
+ -----------------------------------------------------------------
810
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
811
+ -----------------------------------------------------------------
812
+  (0.1ms) ROLLBACK
813
+  (0.1ms) BEGIN
814
+ ----------------------------------------------------------------------------------------------------------------
815
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
816
+ ----------------------------------------------------------------------------------------------------------------
817
+  (0.1ms) ROLLBACK
818
+  (0.1ms) BEGIN
819
+ -------------------------------------------------------------------------------------------------------------------
820
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
821
+ -------------------------------------------------------------------------------------------------------------------
822
+  (0.1ms) ROLLBACK
823
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
824
+  (0.2ms) BEGIN
825
+ -------------------------------------
826
+ GovUkDateFieldsTest: test_squash_html
827
+ -------------------------------------
828
+  (0.1ms) ROLLBACK
829
+  (0.1ms) BEGIN
830
+ ---------------------------------------------------------------
831
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
832
+ ---------------------------------------------------------------
833
+  (0.1ms) ROLLBACK
834
+  (0.1ms) BEGIN
835
+ --------------------------------------------------------
836
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
837
+ --------------------------------------------------------
838
+  (0.1ms) ROLLBACK
839
+  (0.1ms) BEGIN
840
+ ---------------------------------------------------------------
841
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
842
+ ---------------------------------------------------------------
843
+  (0.1ms) ROLLBACK
844
+  (0.1ms) BEGIN
845
+ ------------------------------------------
846
+ GovUkDateFieldsTest: test_fieldset_with_id
847
+ ------------------------------------------
848
+  (0.1ms) ROLLBACK
849
+  (0.1ms) BEGIN
850
+ -----------------------------------------------------------
851
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
852
+ -----------------------------------------------------------
853
+  (0.2ms) ROLLBACK
854
+  (0.1ms) BEGIN
855
+ -------------------------------------------------------------------------------
856
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
857
+ -------------------------------------------------------------------------------
858
+  (0.1ms) ROLLBACK
859
+  (0.1ms) BEGIN
860
+ -------------------------------------------------------
861
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
862
+ -------------------------------------------------------
863
+  (0.1ms) ROLLBACK
864
+  (0.0ms) BEGIN
865
+ -------------------------------------------------------------
866
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
867
+ -------------------------------------------------------------
868
+  (0.1ms) ROLLBACK
869
+  (0.1ms) BEGIN
870
+ -----------------------------------------------------------------------------------------------
871
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
872
+ -----------------------------------------------------------------------------------------------
873
+  (0.1ms) ROLLBACK
874
+  (0.1ms) BEGIN
875
+ ---------------------------------------------------------------------
876
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
877
+ ---------------------------------------------------------------------
878
+  (0.1ms) ROLLBACK
879
+  (0.1ms) BEGIN
880
+ --------------------------------------------------------------------------
881
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
882
+ --------------------------------------------------------------------------
883
+  (0.1ms) ROLLBACK
884
+  (0.1ms) BEGIN
885
+ -----------------------------------------------------------------------
886
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
887
+ -----------------------------------------------------------------------
888
+  (0.1ms) ROLLBACK
889
+  (0.1ms) BEGIN
890
+ -----------------------------------------------------------------------
891
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
892
+ -----------------------------------------------------------------------
893
+  (0.1ms) ROLLBACK
894
+  (0.1ms) BEGIN
895
+ -----------------------------------------------------------------
896
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
897
+ -----------------------------------------------------------------
898
+  (0.1ms) ROLLBACK
899
+  (0.0ms) BEGIN
900
+ ------------------------------------------------------------------------------------------------
901
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
902
+ ------------------------------------------------------------------------------------------------
903
+  (0.1ms) SAVEPOINT active_record_1
904
+ SQL (0.3ms) 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-06-23 09:07:59.939202"], ["updated_at", "2016-06-23 09:07:59.939202"]]
905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
906
+  (0.1ms) SAVEPOINT active_record_1
907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
908
+  (0.1ms) ROLLBACK
909
+  (0.1ms) BEGIN
910
+ ----------------------------------------------------------------------------------------------------------------------------------
911
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
912
+ ----------------------------------------------------------------------------------------------------------------------------------
913
+  (0.1ms) ROLLBACK
914
+  (0.1ms) BEGIN
915
+ ------------------------------------------------------------------------------------------
916
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
917
+ ------------------------------------------------------------------------------------------
918
+  (0.1ms) ROLLBACK
919
+  (0.1ms) BEGIN
920
+ ---------------------------------------------------------------------------------
921
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
922
+ ---------------------------------------------------------------------------------
923
+  (0.1ms) ROLLBACK
924
+  (0.1ms) BEGIN
925
+ ---------------------------------------------------------------------------------
926
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
927
+ ---------------------------------------------------------------------------------
928
+  (0.1ms) ROLLBACK
929
+  (0.1ms) BEGIN
930
+ -----------------------------------------------------------------------------------------------
931
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
932
+ -----------------------------------------------------------------------------------------------
933
+  (0.1ms) ROLLBACK
934
+  (0.0ms) BEGIN
935
+ -----------------------------------------------------------------------------------------
936
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
937
+ -----------------------------------------------------------------------------------------
938
+  (0.1ms) ROLLBACK
939
+  (0.1ms) BEGIN
940
+ -------------------------------------------------------------------------------
941
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
942
+ -------------------------------------------------------------------------------
943
+  (0.1ms) ROLLBACK
944
+  (0.1ms) BEGIN
945
+ -----------------------------------------------------------------------
946
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
947
+ -----------------------------------------------------------------------
948
+  (0.1ms) ROLLBACK
949
+  (0.0ms) BEGIN
950
+ -------------------------------------------------------------------------
951
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
952
+ -------------------------------------------------------------------------
953
+  (0.1ms) SAVEPOINT active_record_1
954
+ 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-06-23 09:07:59.951984"], ["updated_at", "2016-06-23 09:07:59.951984"]]
955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
956
+  (0.1ms) SAVEPOINT active_record_1
957
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
958
+  (0.1ms) ROLLBACK
959
+  (0.0ms) BEGIN
960
+ --------------------------------------------
961
+ EmployeeTest: test_nil_dates_raise_no_errors
962
+ --------------------------------------------
963
+  (0.1ms) ROLLBACK
964
+  (0.1ms) BEGIN
965
+ --------------------------------------------------------------------------
966
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
967
+ --------------------------------------------------------------------------
968
+  (0.1ms) ROLLBACK
969
+  (0.1ms) BEGIN
970
+ ----------------------------------------------------------------------------------------------------------------
971
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
972
+ ----------------------------------------------------------------------------------------------------------------
973
+  (0.1ms) ROLLBACK
974
+  (0.0ms) BEGIN
975
+ ------------------------------------------------------------------------------------------
976
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
977
+ ------------------------------------------------------------------------------------------
978
+  (0.1ms) ROLLBACK
979
+  (0.1ms) BEGIN
980
+ ---------------------------------------------------------------------
981
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
982
+ ---------------------------------------------------------------------
983
+  (0.1ms) ROLLBACK
984
+  (0.1ms) BEGIN
985
+ -----------------------------------------------------------
986
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
987
+ -----------------------------------------------------------
988
+  (0.1ms) ROLLBACK
989
+  (0.1ms) BEGIN
990
+ -----------------------------------------------------------------
991
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
992
+ -----------------------------------------------------------------
993
+  (0.1ms) ROLLBACK
994
+  (0.1ms) BEGIN
995
+ ----------------------------------------------
996
+ EmployeeTest: test_valid_dates_raise_no_errors
997
+ ----------------------------------------------
998
+  (0.1ms) ROLLBACK
999
+  (0.1ms) BEGIN
1000
+ ------------------------------------------------------------------------
1001
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
1002
+ ------------------------------------------------------------------------
1003
+  (0.1ms) ROLLBACK
1004
+  (0.1ms) BEGIN
1005
+ -----------------------------------------------------------------------------------
1006
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
1007
+ -----------------------------------------------------------------------------------
1008
+  (0.1ms) ROLLBACK
1009
+  (0.1ms) BEGIN
1010
+ ---------------------------------------------------------------------------------------------------------
1011
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
1012
+ ---------------------------------------------------------------------------------------------------------
1013
+  (0.1ms) ROLLBACK
1014
+  (0.1ms) BEGIN
1015
+ ---------------------------------------------------------------------
1016
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
1017
+ ---------------------------------------------------------------------
1018
+  (0.1ms) SAVEPOINT active_record_1
1019
+ 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-06-23 09:07:59.962438"], ["updated_at", "2016-06-23 09:07:59.962438"]]
1020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1021
+  (0.1ms) SAVEPOINT active_record_1
1022
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-06-23 09:07:59.963606"], ["id", 729]]
1023
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1024
+  (0.1ms) ROLLBACK
1025
+  (0.1ms) BEGIN
1026
+ -----------------------------------------------------------
1027
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
1028
+ -----------------------------------------------------------
1029
+  (0.1ms) ROLLBACK
1030
+  (0.1ms) BEGIN
1031
+ ----------------------------------------------------------------------------------------------
1032
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
1033
+ ----------------------------------------------------------------------------------------------
1034
+  (0.1ms) ROLLBACK
1035
+  (0.1ms) BEGIN
1036
+ -------------------------------------------
1037
+ EmployeeTest: test_invalid_day_raises_error
1038
+ -------------------------------------------
1039
+  (0.1ms) ROLLBACK
1040
+  (0.1ms) BEGIN
1041
+ -------------------------------------------------------------------------------------------------------------------
1042
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
1043
+ -------------------------------------------------------------------------------------------------------------------
1044
+  (0.1ms) ROLLBACK
1045
+  (0.1ms) BEGIN
1046
+ ----------------------------------------------------
1047
+ EmployeesControllerTest: test_should_update_employee
1048
+ ----------------------------------------------------
1049
+  (0.1ms) SAVEPOINT active_record_1
1050
+ 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-06-23 09:07:59.997427"], ["updated_at", "2016-06-23 09:07:59.997427"]]
1051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1052
+  (0.1ms) SAVEPOINT active_record_1
1053
+ 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-06-23 09:07:59.998894"], ["updated_at", "2016-06-23 09:07:59.998894"]]
1054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1055
+ Processing by EmployeesController#update as HTML
1056
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"730"}
1057
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 730]]
1058
+  (0.1ms) SAVEPOINT active_record_1
1059
+ 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-06-23 09:08:00.006206"], ["id", 730]]
1060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1061
+ Redirected to http://test.host/employees/730
1062
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
1063
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 730]]
1064
+  (0.1ms) ROLLBACK
1065
+  (0.1ms) BEGIN
1066
+ -----------------------------------------------------
1067
+ EmployeesControllerTest: test_should_destroy_employee
1068
+ -----------------------------------------------------
1069
+  (0.1ms) SAVEPOINT active_record_1
1070
+ 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-06-23 09:08:00.010398"], ["updated_at", "2016-06-23 09:08:00.010398"]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1072
+  (0.1ms) SAVEPOINT active_record_1
1073
+ 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-06-23 09:08:00.011995"], ["updated_at", "2016-06-23 09:08:00.011995"]]
1074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1075
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1076
+ Processing by EmployeesController#destroy as HTML
1077
+ Parameters: {"id"=>"732"}
1078
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 732]]
1079
+  (0.1ms) SAVEPOINT active_record_1
1080
+ SQL (0.2ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 732]]
1081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1082
+ Redirected to http://test.host/employees
1083
+ Completed 302 Found in 2ms (ActiveRecord: 0.6ms)
1084
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1085
+  (0.1ms) ROLLBACK
1086
+  (0.1ms) BEGIN
1087
+ --------------------------------------------
1088
+ EmployeesControllerTest: test_should_get_new
1089
+ --------------------------------------------
1090
+  (0.1ms) SAVEPOINT active_record_1
1091
+ 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-06-23 09:08:00.019475"], ["updated_at", "2016-06-23 09:08:00.019475"]]
1092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1093
+  (0.1ms) SAVEPOINT active_record_1
1094
+ 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-06-23 09:08:00.020831"], ["updated_at", "2016-06-23 09:08:00.020831"]]
1095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1096
+ Processing by EmployeesController#new as HTML
1097
+ Rendered employees/_form.html.erb (6.0ms)
1098
+ Rendered employees/new.html.erb within layouts/application (8.8ms)
1099
+ Completed 200 OK in 138ms (Views: 137.6ms | ActiveRecord: 0.0ms)
1100
+  (0.2ms) ROLLBACK
1101
+  (0.1ms) BEGIN
1102
+ --------------------------------------------------
1103
+ EmployeesControllerTest: test_should_show_employee
1104
+ --------------------------------------------------
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ 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-06-23 09:08:00.162534"], ["updated_at", "2016-06-23 09:08:00.162534"]]
1107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1108
+  (0.1ms) SAVEPOINT active_record_1
1109
+ 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-06-23 09:08:00.163860"], ["updated_at", "2016-06-23 09:08:00.163860"]]
1110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1111
+ Processing by EmployeesController#show as HTML
1112
+ Parameters: {"id"=>"736"}
1113
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 736]]
1114
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
1115
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)
1116
+  (0.1ms) ROLLBACK
1117
+  (0.1ms) BEGIN
1118
+ ----------------------------------------------
1119
+ EmployeesControllerTest: test_should_get_index
1120
+ ----------------------------------------------
1121
+  (0.1ms) SAVEPOINT active_record_1
1122
+ 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-06-23 09:08:00.169239"], ["updated_at", "2016-06-23 09:08:00.169239"]]
1123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1124
+  (0.1ms) SAVEPOINT active_record_1
1125
+ 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-06-23 09:08:00.170548"], ["updated_at", "2016-06-23 09:08:00.170548"]]
1126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1127
+ Processing by EmployeesController#index as HTML
1128
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
1129
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
1130
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1131
+  (0.1ms) ROLLBACK
1132
+  (0.1ms) BEGIN
1133
+ --------------------------------------------------------------
1134
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
1135
+ --------------------------------------------------------------
1136
+  (0.1ms) SAVEPOINT active_record_1
1137
+ 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-06-23 09:08:00.176013"], ["updated_at", "2016-06-23 09:08:00.176013"]]
1138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1139
+  (0.1ms) SAVEPOINT active_record_1
1140
+ 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-06-23 09:08:00.177142"], ["updated_at", "2016-06-23 09:08:00.177142"]]
1141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1142
+ Processing by EmployeesController#edit as HTML
1143
+ Parameters: {"id"=>"740"}
1144
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 740]]
1145
+ Rendered employees/_form.html.erb (1.6ms)
1146
+ Rendered employees/edit.html.erb within layouts/application (2.1ms)
1147
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)
1148
+  (0.2ms) ROLLBACK
1149
+  (0.1ms) BEGIN
1150
+ ---------------------------------------------
1151
+ EmployeesControllerTest: test_should_get_edit
1152
+ ---------------------------------------------
1153
+  (0.1ms) SAVEPOINT active_record_1
1154
+ 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-06-23 09:08:00.186554"], ["updated_at", "2016-06-23 09:08:00.186554"]]
1155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1156
+  (0.1ms) SAVEPOINT active_record_1
1157
+ 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-06-23 09:08:00.187840"], ["updated_at", "2016-06-23 09:08:00.187840"]]
1158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1159
+ Processing by EmployeesController#edit as HTML
1160
+ Parameters: {"id"=>"742"}
1161
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 742]]
1162
+ Rendered employees/_form.html.erb (1.5ms)
1163
+ Rendered employees/edit.html.erb within layouts/application (1.7ms)
1164
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1165
+  (0.1ms) ROLLBACK
1166
+  (0.1ms) BEGIN
1167
+ ----------------------------------------------------
1168
+ EmployeesControllerTest: test_should_create_employee
1169
+ ----------------------------------------------------
1170
+  (0.1ms) SAVEPOINT active_record_1
1171
+ 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-06-23 09:08:00.194364"], ["updated_at", "2016-06-23 09:08:00.194364"]]
1172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1173
+  (0.1ms) SAVEPOINT active_record_1
1174
+ 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-06-23 09:08:00.195450"], ["updated_at", "2016-06-23 09:08:00.195450"]]
1175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1176
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1177
+ Processing by EmployeesController#create as HTML
1178
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
1179
+  (0.1ms) SAVEPOINT active_record_1
1180
+ 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-06-23 09:08:00.198196"], ["updated_at", "2016-06-23 09:08:00.198196"]]
1181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1182
+ Redirected to http://test.host/employees/746
1183
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
1184
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1185
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1186
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
1187
+  (0.1ms) ROLLBACK
1188
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1189
+  (0.2ms) BEGIN
1190
+ -----------------------------------------------------------
1191
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1192
+ -----------------------------------------------------------
1193
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1194
+  (0.3ms) BEGIN
1195
+ -----------------------------------------------------------
1196
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1197
+ -----------------------------------------------------------
1198
+  (0.3ms) ROLLBACK
1199
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1200
+  (0.2ms) BEGIN
1201
+ -----------------------------------------------------------
1202
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1203
+ -----------------------------------------------------------
1204
+  (0.3ms) ROLLBACK
1205
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1206
+  (0.2ms) BEGIN
1207
+ -----------------------------------------------------------
1208
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1209
+ -----------------------------------------------------------
1210
+  (0.2ms) ROLLBACK
1211
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1212
+  (0.2ms) BEGIN
1213
+ -------------------------------------------------------------------------------
1214
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
1215
+ -------------------------------------------------------------------------------
1216
+  (0.1ms) ROLLBACK
1217
+  (0.1ms) BEGIN
1218
+ -----------------------------------------------------------------------------------------------
1219
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
1220
+ -----------------------------------------------------------------------------------------------
1221
+  (0.1ms) ROLLBACK
1222
+  (0.1ms) BEGIN
1223
+ ------------------------------------------------------------------------------------------
1224
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
1225
+ ------------------------------------------------------------------------------------------
1226
+  (0.1ms) ROLLBACK
1227
+  (0.0ms) BEGIN
1228
+ -----------------------------------------------------------------------------------------
1229
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
1230
+ -----------------------------------------------------------------------------------------
1231
+  (0.1ms) ROLLBACK
1232
+  (0.1ms) BEGIN
1233
+ ----------------------------------------------------------------------------------------------------------------------------------
1234
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
1235
+ ----------------------------------------------------------------------------------------------------------------------------------
1236
+  (0.1ms) ROLLBACK
1237
+  (0.1ms) BEGIN
1238
+ ---------------------------------------------------------------------------------
1239
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
1240
+ ---------------------------------------------------------------------------------
1241
+  (0.1ms) ROLLBACK
1242
+  (0.1ms) BEGIN
1243
+ ---------------------------------------------------------------------------------
1244
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
1245
+ ---------------------------------------------------------------------------------
1246
+  (0.1ms) ROLLBACK
1247
+  (0.0ms) BEGIN
1248
+ -----------------------------------------------------------------------
1249
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
1250
+ -----------------------------------------------------------------------
1251
+  (0.1ms) ROLLBACK
1252
+  (0.1ms) BEGIN
1253
+ -----------------------------------------------------------------------
1254
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
1255
+ -----------------------------------------------------------------------
1256
+  (0.1ms) ROLLBACK
1257
+  (0.1ms) BEGIN
1258
+ -----------------------------------------------------------------------------------------------
1259
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
1260
+ -----------------------------------------------------------------------------------------------
1261
+  (0.1ms) ROLLBACK
1262
+  (0.1ms) BEGIN
1263
+ ------------------------------------------------------------------------------------------------
1264
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
1265
+ ------------------------------------------------------------------------------------------------
1266
+  (0.1ms) SAVEPOINT active_record_1
1267
+ SQL (0.3ms) 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-06-23 09:19:01.985735"], ["updated_at", "2016-06-23 09:19:01.985735"]]
1268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1269
+  (0.1ms) SAVEPOINT active_record_1
1270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1271
+  (0.1ms) ROLLBACK
1272
+  (0.1ms) BEGIN
1273
+ ---------------------------------------------------------------------
1274
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
1275
+ ---------------------------------------------------------------------
1276
+  (0.1ms) ROLLBACK
1277
+  (0.1ms) BEGIN
1278
+ -----------------------------------------------------------------
1279
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
1280
+ -----------------------------------------------------------------
1281
+  (0.1ms) ROLLBACK
1282
+  (0.1ms) BEGIN
1283
+ --------------------------------------------------------------------------
1284
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
1285
+ --------------------------------------------------------------------------
1286
+  (0.1ms) ROLLBACK
1287
+  (0.1ms) BEGIN
1288
+ -----------------------------------------------------------
1289
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
1290
+ -----------------------------------------------------------
1291
+  (0.1ms) ROLLBACK
1292
+  (0.1ms) BEGIN
1293
+ -----------------------------------------------------------
1294
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
1295
+ -----------------------------------------------------------
1296
+  (0.1ms) ROLLBACK
1297
+  (0.0ms) BEGIN
1298
+ ------------------------------------------------------------------------
1299
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
1300
+ ------------------------------------------------------------------------
1301
+  (0.1ms) ROLLBACK
1302
+  (0.1ms) BEGIN
1303
+ ---------------------------------------------------------------------------------------------------------
1304
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
1305
+ ---------------------------------------------------------------------------------------------------------
1306
+  (0.1ms) ROLLBACK
1307
+  (0.1ms) BEGIN
1308
+ -----------------------------------------------------------------
1309
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
1310
+ -----------------------------------------------------------------
1311
+  (0.1ms) ROLLBACK
1312
+  (0.1ms) BEGIN
1313
+ ---------------------------------------------------------------------
1314
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
1315
+ ---------------------------------------------------------------------
1316
+  (0.0ms) SAVEPOINT active_record_1
1317
+ SQL (0.2ms) 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-06-23 09:19:01.996327"], ["updated_at", "2016-06-23 09:19:01.996327"]]
1318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1319
+  (0.1ms) SAVEPOINT active_record_1
1320
+ SQL (0.2ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-06-23 09:19:01.997834"], ["id", 748]]
1321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1322
+  (0.1ms) ROLLBACK
1323
+  (0.1ms) BEGIN
1324
+ -----------------------------------------------------------------------
1325
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
1326
+ -----------------------------------------------------------------------
1327
+  (0.1ms) ROLLBACK
1328
+  (0.1ms) BEGIN
1329
+ ----------------------------------------------
1330
+ EmployeeTest: test_valid_dates_raise_no_errors
1331
+ ----------------------------------------------
1332
+  (0.8ms) ROLLBACK
1333
+  (0.1ms) BEGIN
1334
+ ----------------------------------------------------------------------------------------------
1335
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
1336
+ ----------------------------------------------------------------------------------------------
1337
+  (0.1ms) ROLLBACK
1338
+  (0.1ms) BEGIN
1339
+ --------------------------------------------
1340
+ EmployeeTest: test_nil_dates_raise_no_errors
1341
+ --------------------------------------------
1342
+  (0.1ms) ROLLBACK
1343
+  (0.1ms) BEGIN
1344
+ -------------------------------------------
1345
+ EmployeeTest: test_invalid_day_raises_error
1346
+ -------------------------------------------
1347
+  (0.1ms) ROLLBACK
1348
+  (0.1ms) BEGIN
1349
+ ---------------------------------------------------------------------
1350
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
1351
+ ---------------------------------------------------------------------
1352
+  (0.1ms) ROLLBACK
1353
+  (0.1ms) BEGIN
1354
+ -----------------------------------------------------------------------------------
1355
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
1356
+ -----------------------------------------------------------------------------------
1357
+  (0.1ms) ROLLBACK
1358
+  (0.0ms) BEGIN
1359
+ ------------------------------------------------------------------------------------------
1360
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
1361
+ ------------------------------------------------------------------------------------------
1362
+  (0.1ms) ROLLBACK
1363
+  (0.1ms) BEGIN
1364
+ -------------------------------------------------------------------------------------------------------------------
1365
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
1366
+ -------------------------------------------------------------------------------------------------------------------
1367
+  (0.1ms) ROLLBACK
1368
+  (0.0ms) BEGIN
1369
+ -------------------------------------------------------------------------
1370
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
1371
+ -------------------------------------------------------------------------
1372
+  (0.1ms) SAVEPOINT active_record_1
1373
+ 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-06-23 09:19:02.009160"], ["updated_at", "2016-06-23 09:19:02.009160"]]
1374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1375
+  (0.0ms) SAVEPOINT active_record_1
1376
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1377
+  (0.1ms) ROLLBACK
1378
+  (0.1ms) BEGIN
1379
+ --------------------------------------------------------------------------
1380
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
1381
+ --------------------------------------------------------------------------
1382
+  (0.1ms) ROLLBACK
1383
+  (0.1ms) BEGIN
1384
+ ----------------------------------------------------------------------------------------------------------------
1385
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
1386
+ ----------------------------------------------------------------------------------------------------------------
1387
+  (0.1ms) ROLLBACK
1388
+  (0.1ms) BEGIN
1389
+ ---------------------------------------------
1390
+ EmployeesControllerTest: test_should_get_edit
1391
+ ---------------------------------------------
1392
+  (0.1ms) SAVEPOINT active_record_1
1393
+ 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-06-23 09:19:02.037374"], ["updated_at", "2016-06-23 09:19:02.037374"]]
1394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1395
+  (0.1ms) SAVEPOINT active_record_1
1396
+ 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-06-23 09:19:02.038940"], ["updated_at", "2016-06-23 09:19:02.038940"]]
1397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1398
+ Processing by EmployeesController#edit as HTML
1399
+ Parameters: {"id"=>"750"}
1400
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 750]]
1401
+ Rendered employees/_form.html.erb (9.5ms)
1402
+ Rendered employees/edit.html.erb within layouts/application (12.3ms)
1403
+ Completed 200 OK in 219ms (Views: 216.7ms | ActiveRecord: 0.1ms)
1404
+  (0.1ms) ROLLBACK
1405
+  (0.1ms) BEGIN
1406
+ --------------------------------------------------
1407
+ EmployeesControllerTest: test_should_show_employee
1408
+ --------------------------------------------------
1409
+  (0.1ms) SAVEPOINT active_record_1
1410
+ 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-06-23 09:19:02.262167"], ["updated_at", "2016-06-23 09:19:02.262167"]]
1411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1412
+  (0.1ms) SAVEPOINT active_record_1
1413
+ 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-06-23 09:19:02.263612"], ["updated_at", "2016-06-23 09:19:02.263612"]]
1414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1415
+ Processing by EmployeesController#show as HTML
1416
+ Parameters: {"id"=>"752"}
1417
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 752]]
1418
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
1419
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)
1420
+  (0.1ms) ROLLBACK
1421
+  (0.1ms) BEGIN
1422
+ ----------------------------------------------------
1423
+ EmployeesControllerTest: test_should_update_employee
1424
+ ----------------------------------------------------
1425
+  (0.1ms) SAVEPOINT active_record_1
1426
+ 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-06-23 09:19:02.269337"], ["updated_at", "2016-06-23 09:19:02.269337"]]
1427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1428
+  (0.1ms) SAVEPOINT active_record_1
1429
+ 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-06-23 09:19:02.271373"], ["updated_at", "2016-06-23 09:19:02.271373"]]
1430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1431
+ Processing by EmployeesController#update as HTML
1432
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"754"}
1433
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 754]]
1434
+  (0.1ms) SAVEPOINT active_record_1
1435
+ SQL (0.1ms) 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-06-23 09:19:02.274411"], ["id", 754]]
1436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1437
+ Redirected to http://test.host/employees/754
1438
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
1439
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 754]]
1440
+  (0.1ms) ROLLBACK
1441
+  (0.1ms) BEGIN
1442
+ --------------------------------------------------------------
1443
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
1444
+ --------------------------------------------------------------
1445
+  (0.1ms) SAVEPOINT active_record_1
1446
+ 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-06-23 09:19:02.277489"], ["updated_at", "2016-06-23 09:19:02.277489"]]
1447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1448
+  (0.1ms) SAVEPOINT active_record_1
1449
+ 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-06-23 09:19:02.278481"], ["updated_at", "2016-06-23 09:19:02.278481"]]
1450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1451
+ Processing by EmployeesController#edit as HTML
1452
+ Parameters: {"id"=>"756"}
1453
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 756]]
1454
+ Rendered employees/_form.html.erb (1.4ms)
1455
+ Rendered employees/edit.html.erb within layouts/application (1.6ms)
1456
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
1457
+  (0.1ms) ROLLBACK
1458
+  (0.1ms) BEGIN
1459
+ ----------------------------------------------
1460
+ EmployeesControllerTest: test_should_get_index
1461
+ ----------------------------------------------
1462
+  (0.1ms) SAVEPOINT active_record_1
1463
+ 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-06-23 09:19:02.285438"], ["updated_at", "2016-06-23 09:19:02.285438"]]
1464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1465
+  (0.1ms) SAVEPOINT active_record_1
1466
+ 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-06-23 09:19:02.286566"], ["updated_at", "2016-06-23 09:19:02.286566"]]
1467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1468
+ Processing by EmployeesController#index as HTML
1469
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
1470
+ Rendered employees/index.html.erb within layouts/application (1.4ms)
1471
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1472
+  (0.1ms) ROLLBACK
1473
+  (0.1ms) BEGIN
1474
+ --------------------------------------------
1475
+ EmployeesControllerTest: test_should_get_new
1476
+ --------------------------------------------
1477
+  (0.1ms) SAVEPOINT active_record_1
1478
+ 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-06-23 09:19:02.291895"], ["updated_at", "2016-06-23 09:19:02.291895"]]
1479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1480
+  (0.1ms) SAVEPOINT active_record_1
1481
+ 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-06-23 09:19:02.293025"], ["updated_at", "2016-06-23 09:19:02.293025"]]
1482
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1483
+ Processing by EmployeesController#new as HTML
1484
+ Rendered employees/_form.html.erb (1.5ms)
1485
+ Rendered employees/new.html.erb within layouts/application (2.0ms)
1486
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
1487
+  (0.1ms) ROLLBACK
1488
+  (0.1ms) BEGIN
1489
+ ----------------------------------------------------
1490
+ EmployeesControllerTest: test_should_create_employee
1491
+ ----------------------------------------------------
1492
+  (0.1ms) SAVEPOINT active_record_1
1493
+ 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-06-23 09:19:02.299409"], ["updated_at", "2016-06-23 09:19:02.299409"]]
1494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1495
+  (0.1ms) SAVEPOINT active_record_1
1496
+ 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-06-23 09:19:02.300722"], ["updated_at", "2016-06-23 09:19:02.300722"]]
1497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1498
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1499
+ Processing by EmployeesController#create as HTML
1500
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
1501
+  (0.1ms) SAVEPOINT active_record_1
1502
+ 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-06-23 09:19:02.304647"], ["updated_at", "2016-06-23 09:19:02.304647"]]
1503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1504
+ Redirected to http://test.host/employees/764
1505
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
1506
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1507
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1508
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
1509
+  (0.1ms) ROLLBACK
1510
+  (0.1ms) BEGIN
1511
+ -----------------------------------------------------
1512
+ EmployeesControllerTest: test_should_destroy_employee
1513
+ -----------------------------------------------------
1514
+  (0.1ms) SAVEPOINT active_record_1
1515
+ 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-06-23 09:19:02.308488"], ["updated_at", "2016-06-23 09:19:02.308488"]]
1516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1517
+  (0.1ms) SAVEPOINT active_record_1
1518
+ 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-06-23 09:19:02.309499"], ["updated_at", "2016-06-23 09:19:02.309499"]]
1519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1520
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1521
+ Processing by EmployeesController#destroy as HTML
1522
+ Parameters: {"id"=>"765"}
1523
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 765]]
1524
+  (0.1ms) SAVEPOINT active_record_1
1525
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 765]]
1526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1527
+ Redirected to http://test.host/employees
1528
+ Completed 302 Found in 1ms (ActiveRecord: 0.4ms)
1529
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1530
+  (0.1ms) ROLLBACK
1531
+  (0.0ms) BEGIN
1532
+ ---------------------------------------------------------------
1533
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
1534
+ ---------------------------------------------------------------
1535
+  (0.1ms) ROLLBACK
1536
+  (0.1ms) BEGIN
1537
+ -------------------------------------------------------------------------------
1538
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
1539
+ -------------------------------------------------------------------------------
1540
+  (0.1ms) ROLLBACK
1541
+  (0.1ms) BEGIN
1542
+ --------------------------------------------------------
1543
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
1544
+ --------------------------------------------------------
1545
+  (0.1ms) ROLLBACK
1546
+  (0.1ms) BEGIN
1547
+ -------------------------------------------------------------
1548
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
1549
+ -------------------------------------------------------------
1550
+  (0.1ms) ROLLBACK
1551
+  (0.1ms) BEGIN
1552
+ ------------------------------------------
1553
+ GovUkDateFieldsTest: test_fieldset_with_id
1554
+ ------------------------------------------
1555
+  (0.1ms) ROLLBACK
1556
+  (0.1ms) BEGIN
1557
+ ---------------------------------------------------------------
1558
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
1559
+ ---------------------------------------------------------------
1560
+  (0.1ms) ROLLBACK
1561
+  (0.1ms) BEGIN
1562
+ -------------------------------------------------------
1563
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
1564
+ -------------------------------------------------------
1565
+  (0.1ms) ROLLBACK
1566
+  (0.1ms) BEGIN
1567
+ -----------------------------------------------------------
1568
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1569
+ -----------------------------------------------------------
1570
+  (0.1ms) ROLLBACK
1571
+  (0.1ms) BEGIN
1572
+ -------------------------------------
1573
+ GovUkDateFieldsTest: test_squash_html
1574
+ -------------------------------------
1575
+  (0.1ms) ROLLBACK
1576
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1577
+  (0.2ms) BEGIN
1578
+ ------------------------------------------------------------------------------------------
1579
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_a_nil_object_if_date_is_nil
1580
+ ------------------------------------------------------------------------------------------
1581
+  (0.1ms) ROLLBACK
1582
+  (0.1ms) BEGIN
1583
+ -------------------------------------------------------------------------------
1584
+ GovUkDateFields::FormDateTest: test_set_one_date_part_leaves_the_rest_unchanged
1585
+ -------------------------------------------------------------------------------
1586
+  (0.1ms) ROLLBACK
1587
+  (0.1ms) BEGIN
1588
+ ---------------------------------------------------------------------------------
1589
+ GovUkDateFields::FormDateTest: test_setting_all_three_date_parts_changes_the_date
1590
+ ---------------------------------------------------------------------------------
1591
+  (0.1ms) ROLLBACK
1592
+  (0.1ms) BEGIN
1593
+ -----------------------------------------------------------------------------------------------
1594
+ GovUkDateFields::FormDateTest: test_setting_all_date_parts_to_nil_sets_date_to_nil_and_is_valid
1595
+ -----------------------------------------------------------------------------------------------
1596
+  (0.1ms) ROLLBACK
1597
+  (0.1ms) BEGIN
1598
+ ---------------------------------------------------------------------------------
1599
+ GovUkDateFields::FormDateTest: test_new_raises_error_if_called_from_outside_class
1600
+ ---------------------------------------------------------------------------------
1601
+  (0.1ms) ROLLBACK
1602
+  (0.1ms) BEGIN
1603
+ -----------------------------------------------------------------------------------------
1604
+ GovUkDateFields::FormDateTest: test_set_from_date_instantiates_the_attribute_and_is_valid
1605
+ -----------------------------------------------------------------------------------------
1606
+  (0.1ms) ROLLBACK
1607
+  (0.1ms) BEGIN
1608
+ ----------------------------------------------------------------------------------------------------------------------------------
1609
+ GovUkDateFields::FormDateTest: test_setting_date_parts_with_invalid_values_marks_date_as_invalid_and_leaves_date_variable_the_same
1610
+ ----------------------------------------------------------------------------------------------------------------------------------
1611
+  (0.1ms) ROLLBACK
1612
+  (0.1ms) BEGIN
1613
+ -----------------------------------------------------
1614
+ EmployeesControllerTest: test_should_destroy_employee
1615
+ -----------------------------------------------------
1616
+  (0.1ms) SAVEPOINT active_record_1
1617
+ SQL (0.5ms) 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-06-23 09:21:20.113475"], ["updated_at", "2016-06-23 09:21:20.113475"]]
1618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1619
+  (0.1ms) SAVEPOINT active_record_1
1620
+ 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-06-23 09:21:20.117487"], ["updated_at", "2016-06-23 09:21:20.117487"]]
1621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1622
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1623
+ Processing by EmployeesController#destroy as HTML
1624
+ Parameters: {"id"=>"767"}
1625
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 767]]
1626
+  (0.1ms) SAVEPOINT active_record_1
1627
+ SQL (0.1ms) DELETE FROM "employees" WHERE "employees"."id" = $1 [["id", 767]]
1628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1629
+ Redirected to http://test.host/employees
1630
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
1631
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1632
+  (0.1ms) ROLLBACK
1633
+  (0.1ms) BEGIN
1634
+ --------------------------------------------------------------
1635
+ EmployeesControllerTest: test_should_render_gov_uk_date_fields
1636
+ --------------------------------------------------------------
1637
+  (0.1ms) SAVEPOINT active_record_1
1638
+ 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-06-23 09:21:20.128682"], ["updated_at", "2016-06-23 09:21:20.128682"]]
1639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1640
+  (0.1ms) SAVEPOINT active_record_1
1641
+ 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-06-23 09:21:20.129899"], ["updated_at", "2016-06-23 09:21:20.129899"]]
1642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1643
+ Processing by EmployeesController#edit as HTML
1644
+ Parameters: {"id"=>"769"}
1645
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 769]]
1646
+ Rendered employees/_form.html.erb (9.7ms)
1647
+ Rendered employees/edit.html.erb within layouts/application (12.9ms)
1648
+ Completed 200 OK in 213ms (Views: 212.2ms | ActiveRecord: 0.1ms)
1649
+  (0.2ms) ROLLBACK
1650
+  (0.1ms) BEGIN
1651
+ ----------------------------------------------
1652
+ EmployeesControllerTest: test_should_get_index
1653
+ ----------------------------------------------
1654
+  (0.1ms) SAVEPOINT active_record_1
1655
+ 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-06-23 09:21:20.347618"], ["updated_at", "2016-06-23 09:21:20.347618"]]
1656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1657
+  (0.1ms) SAVEPOINT active_record_1
1658
+ 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-06-23 09:21:20.349003"], ["updated_at", "2016-06-23 09:21:20.349003"]]
1659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1660
+ Processing by EmployeesController#index as HTML
1661
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees"
1662
+ Rendered employees/index.html.erb within layouts/application (1.6ms)
1663
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
1664
+  (0.2ms) ROLLBACK
1665
+  (0.1ms) BEGIN
1666
+ ---------------------------------------------
1667
+ EmployeesControllerTest: test_should_get_edit
1668
+ ---------------------------------------------
1669
+  (0.1ms) SAVEPOINT active_record_1
1670
+ 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-06-23 09:21:20.356059"], ["updated_at", "2016-06-23 09:21:20.356059"]]
1671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1672
+  (0.1ms) SAVEPOINT active_record_1
1673
+ 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-06-23 09:21:20.357472"], ["updated_at", "2016-06-23 09:21:20.357472"]]
1674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1675
+ Processing by EmployeesController#edit as HTML
1676
+ Parameters: {"id"=>"773"}
1677
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 773]]
1678
+ Rendered employees/_form.html.erb (1.5ms)
1679
+ Rendered employees/edit.html.erb within layouts/application (1.8ms)
1680
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)
1681
+  (0.1ms) ROLLBACK
1682
+  (0.1ms) BEGIN
1683
+ ----------------------------------------------------
1684
+ EmployeesControllerTest: test_should_create_employee
1685
+ ----------------------------------------------------
1686
+  (0.1ms) SAVEPOINT active_record_1
1687
+ 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-06-23 09:21:20.363384"], ["updated_at", "2016-06-23 09:21:20.363384"]]
1688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1689
+  (0.1ms) SAVEPOINT active_record_1
1690
+ 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-06-23 09:21:20.364552"], ["updated_at", "2016-06-23 09:21:20.364552"]]
1691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1692
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1693
+ Processing by EmployeesController#create as HTML
1694
+ Parameters: {"employee"=>{"dob_dd"=>"31", "dob_mm"=>"12", "dob_yyyy"=>"1965", "joined_dd"=>"4", "joined_mm"=>"mar", "joined_yyyy"=>"2015", "name"=>"Joe Blow"}}
1695
+  (0.1ms) SAVEPOINT active_record_1
1696
+ 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-06-23 09:21:20.367468"], ["updated_at", "2016-06-23 09:21:20.367468"]]
1697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1698
+ Redirected to http://test.host/employees/777
1699
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
1700
+  (0.2ms) SELECT COUNT(*) FROM "employees"
1701
+  (0.1ms) SELECT COUNT(*) FROM "employees"
1702
+ Employee Load (0.3ms) SELECT "employees".* FROM "employees" ORDER BY "employees"."id" DESC LIMIT 1
1703
+  (0.1ms) ROLLBACK
1704
+  (0.1ms) BEGIN
1705
+ ----------------------------------------------------
1706
+ EmployeesControllerTest: test_should_update_employee
1707
+ ----------------------------------------------------
1708
+  (0.1ms) SAVEPOINT active_record_1
1709
+ 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-06-23 09:21:20.371272"], ["updated_at", "2016-06-23 09:21:20.371272"]]
1710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1711
+  (0.1ms) SAVEPOINT active_record_1
1712
+ 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-06-23 09:21:20.372359"], ["updated_at", "2016-06-23 09:21:20.372359"]]
1713
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1714
+ Processing by EmployeesController#update as HTML
1715
+ Parameters: {"employee"=>{"dob_dd"=>"1", "dob_mm"=>"11", "dob_yyyy"=>"1981", "joined_dd"=>"3", "joined_mm"=>"oct", "joined_yyyy"=>"2015", "name"=>"Ioannis Kole"}, "id"=>"778"}
1716
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 778]]
1717
+  (0.1ms) SAVEPOINT active_record_1
1718
+ 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-06-23 09:21:20.375094"], ["id", 778]]
1719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1720
+ Redirected to http://test.host/employees/778
1721
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
1722
+ Employee Load (0.1ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 778]]
1723
+  (0.1ms) ROLLBACK
1724
+  (0.1ms) BEGIN
1725
+ --------------------------------------------
1726
+ EmployeesControllerTest: test_should_get_new
1727
+ --------------------------------------------
1728
+  (0.1ms) SAVEPOINT active_record_1
1729
+ 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-06-23 09:21:20.378918"], ["updated_at", "2016-06-23 09:21:20.378918"]]
1730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1731
+  (0.1ms) SAVEPOINT active_record_1
1732
+ 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-06-23 09:21:20.380276"], ["updated_at", "2016-06-23 09:21:20.380276"]]
1733
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1734
+ Processing by EmployeesController#new as HTML
1735
+ Rendered employees/_form.html.erb (1.4ms)
1736
+ Rendered employees/new.html.erb within layouts/application (1.9ms)
1737
+ Completed 200 OK in 4ms (Views: 4.2ms | ActiveRecord: 0.0ms)
1738
+  (0.1ms) ROLLBACK
1739
+  (0.1ms) BEGIN
1740
+ --------------------------------------------------
1741
+ EmployeesControllerTest: test_should_show_employee
1742
+ --------------------------------------------------
1743
+  (0.1ms) SAVEPOINT active_record_1
1744
+ 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-06-23 09:21:20.387427"], ["updated_at", "2016-06-23 09:21:20.387427"]]
1745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1746
+  (0.1ms) SAVEPOINT active_record_1
1747
+ 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-06-23 09:21:20.388598"], ["updated_at", "2016-06-23 09:21:20.388598"]]
1748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1749
+ Processing by EmployeesController#show as HTML
1750
+ Parameters: {"id"=>"782"}
1751
+ Employee Load (0.2ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 782]]
1752
+ Rendered employees/show.html.erb within layouts/application (0.5ms)
1753
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
1754
+  (0.1ms) ROLLBACK
1755
+  (0.1ms) BEGIN
1756
+ -----------------------------------------------------------
1757
+ GovUkDateFieldsTest: test_fieldset_output_with_legend_class
1758
+ -----------------------------------------------------------
1759
+  (0.1ms) ROLLBACK
1760
+  (0.1ms) BEGIN
1761
+ ------------------------------------------
1762
+ GovUkDateFieldsTest: test_fieldset_with_id
1763
+ ------------------------------------------
1764
+  (0.1ms) ROLLBACK
1765
+  (0.1ms) BEGIN
1766
+ --------------------------------------------------------
1767
+ GovUkDateFieldsTest: test_fieldset_output_with_form_hint
1768
+ --------------------------------------------------------
1769
+  (0.1ms) ROLLBACK
1770
+  (0.1ms) BEGIN
1771
+ -------------------------------------------------------------
1772
+ GovUkDateFieldsTest: test_placeholder_output_without_fieldset
1773
+ -------------------------------------------------------------
1774
+  (0.1ms) ROLLBACK
1775
+  (0.1ms) BEGIN
1776
+ ---------------------------------------------------------------
1777
+ GovUkDateFieldsTest: test_error_raised_if_invalid_options_given
1778
+ ---------------------------------------------------------------
1779
+  (0.1ms) ROLLBACK
1780
+  (0.1ms) BEGIN
1781
+ -------------------------------------------------------------------------------
1782
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_supplied_error_messages
1783
+ -------------------------------------------------------------------------------
1784
+  (0.1ms) ROLLBACK
1785
+  (0.1ms) BEGIN
1786
+ -------------------------------------------------------
1787
+ GovUkDateFieldsTest: test_basic_output_without_fieldset
1788
+ -------------------------------------------------------
1789
+  (0.1ms) ROLLBACK
1790
+  (0.1ms) BEGIN
1791
+ ---------------------------------------------------------------
1792
+ GovUkDateFieldsTest: test_fieldset_with_error_class_and_message
1793
+ ---------------------------------------------------------------
1794
+  (0.1ms) ROLLBACK
1795
+  (0.1ms) BEGIN
1796
+ -------------------------------------
1797
+ GovUkDateFieldsTest: test_squash_html
1798
+ -------------------------------------
1799
+  (0.1ms) ROLLBACK
1800
+  (0.1ms) BEGIN
1801
+ ----------------------------------------------
1802
+ EmployeeTest: test_valid_dates_raise_no_errors
1803
+ ----------------------------------------------
1804
+  (0.1ms) ROLLBACK
1805
+  (0.1ms) BEGIN
1806
+ ------------------------------------------------------------------------------------------
1807
+ EmployeeTest: test_employee_instance_has_form_date_instance_variables_for_each_gov_uk_date
1808
+ ------------------------------------------------------------------------------------------
1809
+  (0.1ms) ROLLBACK
1810
+  (0.1ms) BEGIN
1811
+ ---------------------------------------------------------------------
1812
+ EmployeeTest: test_createing_a_new_employee_with_valid_dates_is_valid
1813
+ ---------------------------------------------------------------------
1814
+  (0.1ms) ROLLBACK
1815
+  (0.1ms) BEGIN
1816
+ -----------------------------------------------------------
1817
+ EmployeeTest: test_new_dates_can_be_populated_from_the_form
1818
+ -----------------------------------------------------------
1819
+  (0.1ms) ROLLBACK
1820
+  (0.1ms) BEGIN
1821
+ -------------------------------------------------------------------------------------------------------------------
1822
+ EmployeeTest: test_argument_error_is_raised_if_an_object_that_doesnt_respond_to_to_date_is_assigned_to_a_date_field
1823
+ -------------------------------------------------------------------------------------------------------------------
1824
+  (0.1ms) ROLLBACK
1825
+  (0.0ms) BEGIN
1826
+ ---------------------------------------------------------------------
1827
+ EmployeeTest: test_updating_existing_record_with_valid_dates_is_valid
1828
+ ---------------------------------------------------------------------
1829
+  (0.1ms) SAVEPOINT active_record_1
1830
+ 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-06-23 09:21:20.405503"], ["updated_at", "2016-06-23 09:21:20.405503"]]
1831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1832
+  (0.1ms) SAVEPOINT active_record_1
1833
+ SQL (0.1ms) UPDATE "employees" SET "dob" = $1, "updated_at" = $2 WHERE "employees"."id" = $3 [["dob", "1965-05-17"], ["updated_at", "2016-06-23 09:21:20.406662"], ["id", 784]]
1834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1835
+  (0.1ms) ROLLBACK
1836
+  (0.1ms) BEGIN
1837
+ ------------------------------------------------------------------------
1838
+ EmployeeTest: test_creating_a_new_employee_with_invalid_dates_is_invalid
1839
+ ------------------------------------------------------------------------
1840
+  (0.1ms) ROLLBACK
1841
+  (0.1ms) BEGIN
1842
+ -----------------------------------------------------------------------
1843
+ EmployeeTest: test_that_we_can_assign_new_dates_to_the_form_date_object
1844
+ -----------------------------------------------------------------------
1845
+  (0.1ms) ROLLBACK
1846
+  (0.0ms) BEGIN
1847
+ --------------------------------------------------------------------------
1848
+ EmployeeTest: test_employee_has_class_variable_describing_all_gov_uk_dates
1849
+ --------------------------------------------------------------------------
1850
+  (0.1ms) ROLLBACK
1851
+  (0.1ms) BEGIN
1852
+ -----------------------------------------------------------------------------------
1853
+ EmployeeTest: test_that_form_population_values_can_be_extracted_from_the_date_field
1854
+ -----------------------------------------------------------------------------------
1855
+  (0.1ms) ROLLBACK
1856
+  (0.0ms) BEGIN
1857
+ --------------------------------------------
1858
+ EmployeeTest: test_nil_dates_raise_no_errors
1859
+ --------------------------------------------
1860
+  (0.0ms) ROLLBACK
1861
+  (0.0ms) BEGIN
1862
+ ---------------------------------------------------------------------------------------------------------
1863
+ EmployeeTest: test_that_argument_error_is_raised_if_unparseable_string_object_is_assigned_to_a_date_field
1864
+ ---------------------------------------------------------------------------------------------------------
1865
+  (0.0ms) ROLLBACK
1866
+  (0.0ms) BEGIN
1867
+ -----------------------------------------------------------
1868
+ EmployeeTest: test_that_nil_can_be_assigned_to_a_date_field
1869
+ -----------------------------------------------------------
1870
+  (0.0ms) ROLLBACK
1871
+  (0.0ms) BEGIN
1872
+ ----------------------------------------------------------------------------------------------------------------
1873
+ EmployeeTest: test_that_the_calling_the_field_name_on_employee_will_return_the_date_part_of_the_form_date_object
1874
+ ----------------------------------------------------------------------------------------------------------------
1875
+  (0.0ms) ROLLBACK
1876
+  (0.0ms) BEGIN
1877
+ -----------------------------------------------------------------
1878
+ EmployeeTest: test_employee_class_responds_to_acts_as_gov_uk_date
1879
+ -----------------------------------------------------------------
1880
+  (0.1ms) ROLLBACK
1881
+  (0.0ms) BEGIN
1882
+ -------------------------------------------------------------------------
1883
+ EmployeeTest: test_updating_existing_record_with_invalid_dates_is_invalid
1884
+ -------------------------------------------------------------------------
1885
+  (0.0ms) SAVEPOINT active_record_1
1886
+ 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-06-23 09:21:20.413612"], ["updated_at", "2016-06-23 09:21:20.413612"]]
1887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1888
+  (0.0ms) SAVEPOINT active_record_1
1889
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1890
+  (0.0ms) ROLLBACK
1891
+  (0.0ms) BEGIN
1892
+ -------------------------------------------
1893
+ EmployeeTest: test_invalid_day_raises_error
1894
+ -------------------------------------------
1895
+  (0.0ms) ROLLBACK
1896
+  (0.0ms) BEGIN
1897
+ ----------------------------------------------------------------------------------------------
1898
+ EmployeeTest: test_no_argument_error_is_raised_if_parseable_string_is_assigned_to_a_date_field
1899
+ ----------------------------------------------------------------------------------------------
1900
+  (0.0ms) ROLLBACK
1901
+  (0.7ms) BEGIN
1902
+ ------------------------------------------------------------------------------------------------
1903
+ DirectorTest: test_updating_existing_record_with_invalid_dates_is_valid_when_validation_disabled
1904
+ ------------------------------------------------------------------------------------------------
1905
+  (0.1ms) SAVEPOINT active_record_1
1906
+ 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-06-23 09:21:20.421512"], ["updated_at", "2016-06-23 09:21:20.421512"]]
1907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1908
+  (0.1ms) SAVEPOINT active_record_1
1909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1910
+  (0.1ms) ROLLBACK
1911
+  (0.1ms) BEGIN
1912
+ -----------------------------------------------------------------------------------------------
1913
+ DirectorTest: test_creating_a_new_director_with_invalid_dates_is_valid_when_validation_disabled
1914
+ -----------------------------------------------------------------------------------------------
1915
+  (0.1ms) ROLLBACK
1916
+  (0.1ms) BEGIN
1917
+ -----------------------------------------------------------------------
1918
+ DirectorTest: test_valid_dates_raise_no_errors_when_validation_disabled
1919
+ -----------------------------------------------------------------------
1920
+  (0.1ms) ROLLBACK
1921
+  (0.1ms) BEGIN
1922
+ ---------------------------------------------------------------------
1923
+ DirectorTest: test_nil_dates_raise_no_errors_when_validation_disabled
1924
+ ---------------------------------------------------------------------
1925
+  (0.1ms) ROLLBACK
1926
+  (0.1ms) BEGIN
1927
+ -----------------------------------------------------------------------
1928
+ DirectorTest: test_invalid_day_raises_no_error_when_validation_disabled
1929
+ -----------------------------------------------------------------------
1930
+  (0.1ms) ROLLBACK
1931
+  (0.1ms) BEGIN
1932
+ -----------------------------------------------------------------
1933
+ DirectorTest: test_director_class_responds_to_acts_as_gov_uk_date
1934
+ -----------------------------------------------------------------
1935
+  (0.1ms) ROLLBACK
1936
+  (0.1ms) BEGIN
1937
+ --------------------------------------------------------------------------
1938
+ DirectorTest: test_director_has_class_variable_describing_all_gov_uk_dates
1939
+ --------------------------------------------------------------------------
1940
+  (0.1ms) ROLLBACK