Skip to content

Commit

Permalink
The preview is not rendering because subjects is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
avinhurry committed Mar 21, 2024
1 parent 474f07c commit 4476c7e
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 4476c7e

Please sign in to comment.