-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10-10CG] Add ability to not call fully_validate_schema in SavedClaim #19468
Changes from all commits
3a6d104
852ca8f
278c97d
e2842e0
7bf174d
632c00d
a9f505d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,13 @@ | |
let(:user_struct) { FactoryBot.build(:user_struct) } | ||
let(:saved_claim) { create(:dependency_claim_no_vet_information) } | ||
|
||
before do | ||
allow(Flipper).to receive(:enabled?).and_call_original | ||
end | ||
|
||
context 'The flipper is turned on' do | ||
before do | ||
Flipper.enable(:dependents_enqueue_with_user_struct) | ||
allow(Flipper).to receive(:enabled?).with(:dependents_enqueue_with_user_struct).and_return(true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change these to stubs instead of actually enabling/disabling the toggle. Added stub at the top to default to original values to handle any that are not stubbed. |
||
end | ||
|
||
# @TODO: may want to return something else | ||
|
@@ -82,7 +86,7 @@ | |
|
||
context 'The flipper is turned off' do | ||
before do | ||
Flipper.disable(:dependents_enqueue_with_user_struct) | ||
allow(Flipper).to receive(:enabled?).with(:dependents_enqueue_with_user_struct).and_return(false) | ||
end | ||
|
||
# @TODO: may want to return something else | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3270,6 +3270,10 @@ | |
end | ||
|
||
describe 'contact us' do | ||
before do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These were failing because some expectations were validating that some toggle was set and the new Flipper call in saved_claim was expecting it. I added this to default all to call the original so any that don't have explicit expectations won't fail. |
||
allow(Flipper).to receive(:enabled?).and_call_original | ||
end | ||
|
||
describe 'POST v0/contact_us/inquiries' do | ||
let(:post_body) do | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently this was missing? The github job flagged it since I had updated one of the specs in the directory so I went ahead and added the codeowners to match the actual implementation directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!