Skip to content

Commit

Permalink
Fix request system specs
Browse files Browse the repository at this point in the history
  • Loading branch information
napster235 committed Jun 27, 2024
1 parent a5c908e commit 5e5aa72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/request_system_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RSpec.describe "Requests", type: :system, js: true do
let(:organization) { create(:organization) }
let(:organization) { create(:organization, default_storage_location: 1) }
let(:user) { create(:user, organization: organization) }

let(:item1) { create(:item, name: "Good item") }
Expand Down Expand Up @@ -128,7 +128,7 @@
{ item_id: item2.id, quantity: 100}
]
}
let!(:request) { create(:request, request_items: request_items, organization: create(:organization, default_storage_location: 1)) }
let!(:request) { create(:request, request_items: request_items, organization: organization) }

it "should show the request with a request sender if a partner user is set" do
visit subject
Expand Down

0 comments on commit 5e5aa72

Please sign in to comment.