Skip to content

Commit

Permalink
fix: test failures from removing seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticspoon authored and dorner committed May 3, 2024
1 parent fb4149d commit 30fcd73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 30fcd73

Please sign in to comment.