Append '.test' to hostname in stub data (#7260)
This commit is contained in:
parent
f58dcbc981
commit
eb593a5a0c
11 changed files with 76 additions and 76 deletions
|
@ -94,14 +94,14 @@ RSpec.describe Account, type: :model do
|
|||
|
||||
describe '#save_with_optional_media!' do
|
||||
before do
|
||||
stub_request(:get, 'https://remote/valid_avatar').to_return(request_fixture('avatar.txt'))
|
||||
stub_request(:get, 'https://remote/invalid_avatar').to_return(request_fixture('feed.txt'))
|
||||
stub_request(:get, 'https://remote.test/valid_avatar').to_return(request_fixture('avatar.txt'))
|
||||
stub_request(:get, 'https://remote.test/invalid_avatar').to_return(request_fixture('feed.txt'))
|
||||
end
|
||||
|
||||
let(:account) do
|
||||
Fabricate(:account,
|
||||
avatar_remote_url: 'https://remote/valid_avatar',
|
||||
header_remote_url: 'https://remote/valid_avatar')
|
||||
avatar_remote_url: 'https://remote.test/valid_avatar',
|
||||
header_remote_url: 'https://remote.test/valid_avatar')
|
||||
end
|
||||
|
||||
let!(:expectation) { account.dup }
|
||||
|
@ -121,7 +121,7 @@ RSpec.describe Account, type: :model do
|
|||
|
||||
context 'with invalid properties' do
|
||||
before do
|
||||
account.avatar_remote_url = 'https://remote/invalid_avatar'
|
||||
account.avatar_remote_url = 'https://remote.test/invalid_avatar'
|
||||
account.save_with_optional_media!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue