mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 11:48:06 +01:00
Enable hostname config for all system specs (#32109)
This commit is contained in:
parent
404f467fcf
commit
aa46348c03
2 changed files with 6 additions and 4 deletions
|
@ -161,6 +161,11 @@ RSpec.configure do |config|
|
||||||
host! Rails.configuration.x.local_domain
|
host! Rails.configuration.x.local_domain
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.before :each, type: :system do
|
||||||
|
# Align with capybara config so that rails helpers called from rspec use matching host
|
||||||
|
host! 'localhost:3000'
|
||||||
|
end
|
||||||
|
|
||||||
config.after do
|
config.after do
|
||||||
Rails.cache.clear
|
Rails.cache.clear
|
||||||
redis.del(redis.keys)
|
redis.del(redis.keys)
|
||||||
|
|
|
@ -7,10 +7,7 @@ RSpec.describe 'Invites' do
|
||||||
|
|
||||||
let(:user) { Fabricate :user }
|
let(:user) { Fabricate :user }
|
||||||
|
|
||||||
before do
|
before { sign_in user }
|
||||||
host! 'localhost:3000' # TODO: Move into before for all system specs?
|
|
||||||
sign_in user
|
|
||||||
end
|
|
||||||
|
|
||||||
describe 'Viewing invites' do
|
describe 'Viewing invites' do
|
||||||
it 'Lists existing user invites' do
|
it 'Lists existing user invites' do
|
||||||
|
|
Loading…
Reference in a new issue