Skip to content

Commit

Permalink
tests[Op#48569] ensure subpaths are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru committed Jul 17, 2023
1 parent 59e566b commit 2534466
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,17 @@
expect(credentials_request).not_to have_been_made
end
end

context 'when the storage host has a subpath' do
let(:storage) { build(:nextcloud_storage, :as_automatically_managed, host: 'https://host1.example.com/api') }

it 'passes validation' do
credentials_request = mock_nextcloud_application_credentials_validation(storage.host)
contract = described_class.new(storage, current_user)

expect(contract).to be_valid
expect(credentials_request).to have_been_made.once
end
end
end
end

0 comments on commit 2534466

Please sign in to comment.