mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix up index test, stub blog rss feed get
This commit is contained in:
parent
be2c2598c7
commit
46b402a633
2 changed files with 7 additions and 1 deletions
|
@ -51,7 +51,6 @@ describe '/' do
|
|||
['Donate', 'donate'],
|
||||
['API', 'api'],
|
||||
['Terms', 'terms'],
|
||||
['Privacy', 'privacy'],
|
||||
['Press', 'press']
|
||||
]
|
||||
|
||||
|
|
|
@ -31,6 +31,13 @@ require 'webmock/minitest'
|
|||
require 'sidekiq/testing'
|
||||
|
||||
WebMock.disable_net_connect! allow_localhost: true
|
||||
WebMock.enable!
|
||||
|
||||
WebMock.globally_stub_request do |request|
|
||||
if request.uri.to_s == 'https://blog.neocities.org:443/feed.xml'
|
||||
return {status: 200, body: File.read(File.join('tests', 'files', 'blogfeed.xml'))}
|
||||
end
|
||||
end
|
||||
|
||||
Sinatra::Application.configure do |app|
|
||||
app.use RackSessionAccess::Middleware
|
||||
|
|
Loading…
Add table
Reference in a new issue