Skip to content

Commit

Permalink
Merge pull request #835 from DFE-Digital/CPDNPQ-1221-NPQEYLFunding
Browse files Browse the repository at this point in the history
Restored EYL funding tests
  • Loading branch information
BroiSatse authored Jul 11, 2023
2 parents cdb252a + c892286 commit 9b6c707
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions spec/lib/services/funding_eligibility_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b6c707

Please sign in to comment.