Skip to content
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

APPEALS-59528: Fix test spec/feature/switch_user_spec.rb #23003

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

craigrva
Copy link
Contributor

@craigrva craigrva commented Sep 27, 2024

Resolves APPEALS-59528

Description

Replace setting the env variable DEPLOY_ENV with a mock to Rails.deploy_env? to not adversely affect tests which are run after this test

Additionally removes the vbms_ext_claim table from schema.rb. This table shouldn't be in the schema because it doesn't exist in the production database. It is created to fake a VBMS integration in local/demo. Running the command make migrate removes the table and re-adds it afterward, where running rails db:migrate:primary will not remove that table and add it to the schema.rb file.

Acceptance Criteria

  • Code compiles correctly

Testing Plan

Run the example test files in order and ensure that they both pass:

make one-test spec/feature/switch_user_spec.rb spec/services/deprecation_warnings/production_handler_spec.rb

@craigrva craigrva changed the base branch from main to release/FY24Q4.6.0 September 27, 2024 16:40
Copy link
Contributor

@roberttravispierce roberttravispierce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for fix merge.

@craigrva craigrva changed the base branch from release/FY24Q4.6.0 to release/FY24Q4.6.1 October 1, 2024 15:23
@craigrva craigrva changed the base branch from release/FY24Q4.6.1 to main October 23, 2024 12:32
@craigrva craigrva dismissed roberttravispierce’s stale review October 23, 2024 12:32

The base branch was changed.

Copy link

codeclimate bot commented Oct 23, 2024

Code Climate has analyzed commit c519a02 and detected 0 issues on this pull request.

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants