|
102 | 102 | end
|
103 | 103 |
|
104 | 104 | it "describes the event" do
|
105 |
| - expect(component.text).to include("Personal Information:") |
| 105 | + expect(component.text).to include("Personal information assessed") |
106 | 106 | expect(component.text).to include("Rejected")
|
107 | 107 | expect(component.text).to include(expected_failure_reason_text)
|
108 | 108 | expect(component.text).to include(failure_reason.assessor_feedback)
|
|
111 | 111 | it "attributes to the creator" do
|
112 | 112 | expect(component.text).to include(creator.name)
|
113 | 113 | end
|
| 114 | + |
| 115 | + context "when the assessment section is preliminary" do |
| 116 | + let(:assessment_section) do |
| 117 | + create(:assessment_section, :preliminary, :failed) |
| 118 | + end |
| 119 | + |
| 120 | + it "describes the event" do |
| 121 | + expect(component.text).to include( |
| 122 | + "Preliminary check (qualifications) assessed", |
| 123 | + ) |
| 124 | + end |
| 125 | + end |
114 | 126 | end
|
115 | 127 |
|
116 | 128 | context "note created" do
|
|
422 | 434 | end
|
423 | 435 |
|
424 | 436 | it "describes the event" do
|
425 |
| - expect(component.text).to include("Status has changed to: Rejected") |
| 437 | + expect(component.text).to include("Status has changed to Rejected") |
426 | 438 | expect(component.text).to include("For this reason.")
|
427 | 439 | end
|
428 | 440 |
|
|
442 | 454 | end
|
443 | 455 |
|
444 | 456 | it "describes the event" do
|
445 |
| - expect(component.text).to include("Status has changed to: Accepted") |
| 457 | + expect(component.text).to include("Status has changed to Accepted") |
446 | 458 | end
|
447 | 459 |
|
448 | 460 | it "attributes to the creator" do
|
|
461 | 473 | end
|
462 | 474 |
|
463 | 475 | it "describes the event" do
|
464 |
| - expect(component.text).to include("Status has changed to: Rejected") |
| 476 | + expect(component.text).to include("Status has changed to Rejected") |
465 | 477 | end
|
466 | 478 |
|
467 | 479 | it "attributes to the creator" do
|
|
480 | 492 | end
|
481 | 493 |
|
482 | 494 | it "describes the event" do
|
483 |
| - expect(component.text).to include("Status has changed to: Accepted") |
| 495 | + expect(component.text).to include("Status has changed to Accepted") |
484 | 496 | end
|
485 | 497 |
|
486 | 498 | it "attributes to the creator" do
|
|
499 | 511 | end
|
500 | 512 |
|
501 | 513 | it "describes the event" do
|
502 |
| - expect(component.text).to include("Status has changed to: Rejected") |
| 514 | + expect(component.text).to include("Status has changed to Rejected") |
503 | 515 | end
|
504 | 516 |
|
505 | 517 | it "attributes to the creator" do
|
|
518 | 530 | end
|
519 | 531 |
|
520 | 532 | it "describes the event" do
|
521 |
| - expect(component.text).to include("Status has changed to: Accepted") |
| 533 | + expect(component.text).to include("Status has changed to Accepted") |
522 | 534 | end
|
523 | 535 |
|
524 | 536 | it "attributes to the creator" do
|
|
537 | 549 | end
|
538 | 550 |
|
539 | 551 | it "describes the event" do
|
540 |
| - expect(component.text).to include("Status has changed to: Rejected") |
| 552 | + expect(component.text).to include("Status has changed to Rejected") |
541 | 553 | end
|
542 | 554 |
|
543 | 555 | it "attributes to the creator" do
|
|
0 commit comments