-
Notifications
You must be signed in to change notification settings - Fork 0
staging into main #69
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
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
29fe84d
Bump @hotwired/turbo in the npm_and_yarn group across 1 directory
dependabot[bot] 78c7428
Enhance ActiveAdmin Application index by batch-loading payment data a…
rsmoke 9e335ec
Remove redundant payment queries in ActiveAdmin Application show view…
rsmoke ab3b767
Skip application mock for admin applications index in request specs t…
rsmoke 1e15adf
Optimize ActiveAdmin Application index by implementing a before_actio…
rsmoke c7a925b
Refactor ActiveAdmin Dashboard to optimize applicant balance calculat…
rsmoke 39fbbe6
Implement balance_due_with_batch method in Application model for opti…
rsmoke 95b1b1a
Merge pull request #68 from lsa-mis/dependabot/npm_and_yarn/npm_and_y…
rsmoke 1b0e5ad
Refactor ActiveAdmin Application balance calculation to use controlle…
rsmoke c02285d
Enhance error handling in Application model and ActiveAdmin for missi…
rsmoke 082ebc7
Remove unused index method from ActiveAdmin Application, streamlining…
rsmoke b6cc89c
Enhance balance_due_with_batch method in Application model to raise e…
rsmoke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| require 'rails_helper' | ||
|
|
||
| RSpec.describe 'Admin Applications index', type: :request, no_application_mock: true do | ||
| let(:admin_user) { create(:admin_user) } | ||
|
|
||
| describe 'GET /admin/applications' do | ||
| context 'when admin is not signed in' do | ||
| it 'redirects to admin sign in page' do | ||
| get admin_applications_path | ||
| expect(response).to redirect_to(new_admin_user_session_path) | ||
| end | ||
| end | ||
|
|
||
| context 'when admin is signed in' do | ||
| before { sign_in admin_user } | ||
|
|
||
| it 'renders successfully with default scope' do | ||
| get admin_applications_path | ||
| expect(response).to be_successful | ||
| end | ||
|
|
||
| it 'renders successfully with scope=all (batch data loaded)' do | ||
| get admin_applications_path, params: { scope: 'all' } | ||
| expect(response).to be_successful | ||
| end | ||
|
|
||
| it 'includes Balance Due column when applications exist' do | ||
| create(:lodging, description: 'Standard') | ||
| create(:application, lodging_selection: 'Standard') | ||
| get admin_applications_path | ||
| expect(response).to be_successful | ||
| expect(response.body).to include('Balance Due') | ||
| end | ||
| end | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.