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

fix: test failures from removing seeding #4327

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spec/requests/donations_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
RSpec.describe "Donations", type: :request, skip_seed: true do
let(:organization) { create(:organization, skip_items: true) }
let(:user) { create(:user, organization: organization) }
let(:organization_admin) { create(:organization_admin, organization: organization) }

let(:default_params) do
{ organization_name: organization.to_param }
Expand Down Expand Up @@ -114,7 +115,7 @@

context "with an inactive item - organization admin user" do
before do
sign_in(@organization_admin)
sign_in(organization_admin)
item.update(active: false)
end

Expand Down
5 changes: 3 additions & 2 deletions spec/requests/purchases_requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
RSpec.describe "Purchases", type: :request, skip_seed: true do
let(:organization) { create(:organization, skip_items: true) }
let(:user) { create(:user, organization: organization) }
let(:organization_admin) { create(:organization_admin, organization: organization) }

let(:default_params) do
{ organization_name: organization.to_param }
Expand Down Expand Up @@ -279,7 +280,7 @@

context "with an inactive item - organization admin user" do
before do
sign_in(@organization_admin)
sign_in(organization_admin)
item.update(active: false)
end

Expand Down Expand Up @@ -311,7 +312,7 @@

context "While signed in as an organizational admin" do
before do
sign_in(create(:organization_admin, organization: organization))
sign_in(organization_admin)
end

describe "DELETE #destroy" do
Expand Down