Skip to content

Commit

Permalink
Merge pull request #4121 from DFE-Digital/fix-scholarship_and_bursary…
Browse files Browse the repository at this point in the history
…_preview

The preview is not rendering because subjects is undefined
  • Loading branch information
avinhurry authored Mar 21, 2024
2 parents 474f07c + 4476c7e commit 65bb3be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def scholarship_and_bursary_course
bursary_amount: 99_999_999,
scholarship_amount: 1,
has_early_career_payments: true,
subject_name: 'foobar')
subject_name: 'foobar',
subjects: [])
end

def financial_support_course
Expand All @@ -119,7 +120,7 @@ def financial_support_course

class FakeCourse
include ActiveModel::Model
attr_accessor(:has_fees, :salaried, :excluded_from_bursary, :bursary_only, :has_scholarship_and_bursary, :financial_support, :fee_uk_eu, :fee_international, :cycle_range, :fee_details, :bursary_amount, :scholarship_amount, :has_early_career_payments, :subject_name)
attr_accessor(:has_fees, :salaried, :excluded_from_bursary, :bursary_only, :has_scholarship_and_bursary, :financial_support, :fee_uk_eu, :fee_international, :cycle_range, :fee_details, :bursary_amount, :scholarship_amount, :has_early_career_payments, :subject_name, :subjects)

def enrichment_attribute(params)
send(params)
Expand Down

0 comments on commit 65bb3be

Please sign in to comment.