From c892286e064abc209e9b3ba9fd69e204647623c7 Mon Sep 17 00:00:00 2001 From: Stanislaw Klajn Date: Tue, 11 Jul 2023 15:03:30 +0100 Subject: [PATCH] Restored EYL funding tests --- spec/lib/services/funding_eligibility_spec.rb | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/spec/lib/services/funding_eligibility_spec.rb b/spec/lib/services/funding_eligibility_spec.rb index e961e80127..c4dedee1de 100644 --- a/spec/lib/services/funding_eligibility_spec.rb +++ b/spec/lib/services/funding_eligibility_spec.rb @@ -126,26 +126,25 @@ # end # end - # context "when school offering funding for the NPQEYL course" do - # let(:eyl_funding_eligible) { true } + context "when school offering funding for the NPQEYL course" do + let(:eyl_funding_eligible) { true } - # context "when user has selected the NPQEYL course" do - # let(:course) { Course.all.find(&:eyl?) } + context "when user has selected the NPQEYL course" do + let(:course) { Course.all.find(&:eyl?) } - # it "returns true" do - # expect(subject).to be_funded - # end - # end + it "returns true" do + expect(subject).to be_funded + end + end - # context "when user has not selected the NPQEYL course" do - # let(:course) { Course.all.find(&:npqsl?) } + context "when user has not selected the NPQEYL course" do + let(:course) { Course.all.find(&:npqsl?) } - # it "returns false" do - # expect(subject).not_to be_funded - # end - # end - # end - # end + it "returns false" do + expect(subject).not_to be_funded + end + end + end end end end