From 5e5aa7228e45de6b64d021e26bf94de622a153ca Mon Sep 17 00:00:00 2001 From: "Dragomir, Tudor" Date: Thu, 27 Jun 2024 13:28:45 +0300 Subject: [PATCH] Fix request system specs --- spec/system/request_system_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/request_system_spec.rb b/spec/system/request_system_spec.rb index afc8bfa794..7d9bfe468a 100644 --- a/spec/system/request_system_spec.rb +++ b/spec/system/request_system_spec.rb @@ -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") } @@ -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