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