Skip to content

Commit a945ded

Browse files
fix tests
1 parent 4a9a99c commit a945ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/omniauth/strategies/gitea_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858

5959
context '#raw_info' do
6060
it 'should use relative paths' do
61-
expect(access_token).to receive(:get).with('user').and_return(response)
61+
expect(access_token).to receive(:get).with('api/v1/user').and_return(response)
6262
expect(subject.raw_info).to eq(parsed_response)
6363
end
6464

6565
it 'should use the header auth mode' do
66-
expect(access_token).to receive(:get).with('user').and_return(response)
66+
expect(access_token).to receive(:get).with('api/v1/user').and_return(response)
6767
subject.raw_info
6868
expect(access_token.options[:mode]).to eq(:header)
6969
end

0 commit comments

Comments
 (0)