Browse Source

Enable hostname config for all system specs (#32109)

dariusk-working/4_3_0
Matt Jankowski 2 years ago committed by Claire
parent
commit
aa46348c03
  1. 5
      spec/rails_helper.rb
  2. 5
      spec/system/invites_spec.rb

5
spec/rails_helper.rb

@ -161,6 +161,11 @@ RSpec.configure do |config|
host! Rails.configuration.x.local_domain
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
Rails.cache.clear
redis.del(redis.keys)

5
spec/system/invites_spec.rb

@ -7,10 +7,7 @@ RSpec.describe 'Invites' do
let(:user) { Fabricate :user }
before do
host! 'localhost:3000' # TODO: Move into before for all system specs?
sign_in user
end
before { sign_in user }
describe 'Viewing invites' do
it 'Lists existing user invites' do

Loading…
Cancel
Save