forked from rubyforgood/human-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 4248-fix-distribution-flaky-test
- Loading branch information
Showing
13 changed files
with
66 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -124,12 +124,12 @@ | |
|
||
describe "POST #create" do | ||
it "returns http success" do | ||
post admin_users_path, params: { user: { email: '[email protected]', organization_id: 1 } } | ||
post admin_users_path, params: { user: { email: @organization.email, organization_id: @organization.id } } | ||
expect(response).to redirect_to(admin_users_path) | ||
end | ||
|
||
it "preloads organizations" do | ||
post admin_users_path, params: { user: { organization_id: 1 } } | ||
post admin_users_path, params: { user: { organization_id: @organization.id } } | ||
expect(assigns(:organizations)).to eq(Organization.all.alphabetized) | ||
end | ||
end | ||
|
@@ -150,7 +150,7 @@ | |
|
||
describe "POST #create" do | ||
it "redirects" do | ||
post admin_users_path, params: { user: { organization_id: 1 } } | ||
post admin_users_path, params: { user: { organization_id: @organization.id } } | ||
expect(response).to redirect_to(dashboard_path(organization_name: @organization_admin.organization)) | ||
end | ||
end | ||
|
@@ -171,7 +171,7 @@ | |
|
||
describe "POST #create" do | ||
it "redirects" do | ||
post admin_users_path, params: { user: { organization_id: 1 } } | ||
post admin_users_path, params: { user: { organization_id: @organization.id } } | ||
expect(response).to redirect_to(dashboard_path(organization_name: @user.organization)) | ||
end | ||
end | ||
|
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -72,11 +72,11 @@ | |
end | ||
|
||
it "filters users by email" do | ||
user_email = "[email protected]" | ||
user_email = @organization_admin.email | ||
|
||
visit admin_users_path | ||
fill_in "filterrific_search_email", with: user_email | ||
expect(page.find("table")).to have_content(user_email) | ||
expect(page).to have_element("table", text: user_email) | ||
end | ||
end | ||
end |
This file contains 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