Skip to content

Commit

Permalink
AP-5313: Update spec to test all settings and correctly show non defa…
Browse files Browse the repository at this point in the history
…ult values
  • Loading branch information
agoldstone93 committed Sep 23, 2024
1 parent 1addb15 commit 51a43ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/models/setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
expect(rec.mock_true_layer_data?).to be false
expect(rec.manually_review_all_cases?).to be true
expect(rec.allow_welsh_translation?).to be false
expect(rec.enable_ccms_submission?).to be true
expect(rec.bank_transaction_filename).to eq "db/sample_data/bank_transactions.csv"
expect(rec.alert_via_sentry?).to be true
expect(rec.linked_applications?).to be false
Expand All @@ -24,10 +25,10 @@
described_class.setting.update!(
mock_true_layer_data: true,
manually_review_all_cases: false,
allow_welsh_translation: false,
allow_welsh_translation: true,
enable_ccms_submission: false,
bank_transaction_filename: "my_special_file.csv",
alert_via_sentry: true,
alert_via_sentry: false,
linked_applications: true,
collect_hmrc_data: true,
special_childrens_act: true,
Expand All @@ -39,10 +40,10 @@
rec = described_class.setting
expect(rec.mock_true_layer_data?).to be true
expect(rec.manually_review_all_cases?).to be false
expect(rec.allow_welsh_translation?).to be false
expect(rec.allow_welsh_translation?).to be true
expect(rec.enable_ccms_submission?).to be false
expect(rec.bank_transaction_filename).to eq "my_special_file.csv"
expect(rec.alert_via_sentry?).to be true
expect(rec.alert_via_sentry?).to be false
expect(rec.linked_applications?).to be true
expect(rec.collect_hmrc_data?).to be true
expect(rec.special_childrens_act?).to be true
Expand Down

0 comments on commit 51a43ad

Please sign in to comment.