|
507 | 507 | expect(result.first[:months]).to eq([ |
508 | 508 | { |
509 | 509 | month: first_month, |
510 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 510 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 511 | + credit_hours: 3, |
| 512 | + community_engagement_hours: 39 |
511 | 513 | }, |
512 | 514 | { |
513 | 515 | month: second_month, |
514 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 516 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 517 | + credit_hours: 5, |
| 518 | + community_engagement_hours: 65 |
515 | 519 | } |
516 | 520 | ]) |
517 | 521 | end |
518 | 522 |
|
519 | | - it "shows enrollment status only for partially self-attested months" do |
| 523 | + it "shows enrollment status and credit hours for partially self-attested months" do |
520 | 524 | activity = create(:education_activity, activity_flow: flow, data_source: :partially_self_attested) |
521 | 525 | create( |
522 | 526 | :nsc_enrollment_term, |
|
533 | 537 | expect(result.first[:months]).to eq([ |
534 | 538 | { |
535 | 539 | month: first_month, |
536 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 540 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 541 | + credit_hours: 6, |
| 542 | + community_engagement_hours: 78 |
537 | 543 | }, |
538 | 544 | { |
539 | 545 | month: second_month, |
540 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 546 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 547 | + credit_hours: 6, |
| 548 | + community_engagement_hours: 78 |
541 | 549 | } |
542 | 550 | ]) |
543 | 551 | end |
|
560 | 568 | expect(result.first[:months].first).to eq( |
561 | 569 | { |
562 | 570 | month: first_month, |
563 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 571 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 572 | + credit_hours: 4, |
| 573 | + community_engagement_hours: 52 |
564 | 574 | } |
565 | 575 | ) |
566 | 576 | end |
|
591 | 601 | expect(result.first[:months]).to eq([ |
592 | 602 | { |
593 | 603 | month: second_month, |
594 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time") |
| 604 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.less_than_half_time"), |
| 605 | + credit_hours: 5, |
| 606 | + community_engagement_hours: 65 |
595 | 607 | } |
596 | 608 | ]) |
597 | 609 | end |
598 | 610 |
|
599 | | - it "shows enrollment status only for enrolled partially self-attested months" do |
| 611 | + it "shows enrollment status and credit hours for enrolled partially self-attested months" do |
600 | 612 | activity = create(:education_activity, activity_flow: flow, data_source: :partially_self_attested) |
601 | 613 | create( |
602 | 614 | :nsc_enrollment_term, |
|
613 | 625 | expect(result.first[:months]).to eq([ |
614 | 626 | { |
615 | 627 | month: first_month, |
616 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.enrolled") |
| 628 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.enrolled"), |
| 629 | + credit_hours: 5, |
| 630 | + community_engagement_hours: 65 |
617 | 631 | }, |
618 | 632 | { |
619 | 633 | month: second_month, |
620 | | - enrollment_status: I18n.t("components.enrollment_term_table_component.status.enrolled") |
| 634 | + enrollment_status: I18n.t("components.enrollment_term_table_component.status.enrolled"), |
| 635 | + credit_hours: 5, |
| 636 | + community_engagement_hours: 65 |
621 | 637 | } |
622 | 638 | ]) |
623 | 639 | end |
|
0 commit comments