Skip to content

Commit 74388fa

Browse files
committed
Update HOTFIX_DOMAIN variable
1 parent 967b5da commit 74388fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/helpers/domain_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Helper module for domain-related functionality
44
module DomainHelper
5-
HOTFIX_DOMAIN = 'www.hotfix.bgs.uktrade.digital'
5+
HOTFIX_DOMAIN = 'https://www.hotfix.bgs.uktrade.digital'
66

77
def bgs_site?
88
Figaro.env.DOMAIN == Figaro.env.BGS_SITE

spec/helpers/domain_helper_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
expect(fetch_domain(title_only: true)).to eq('Great')
3333
end
3434

35-
it 'returns hotfix domain if DOMAIN is www.hotfix.bgs.uktrade.digital' do
36-
allow(Figaro.env).to receive(:DOMAIN).and_return('www.hotfix.bgs.uktrade.digital')
37-
allow(Figaro.env).to receive(:BGS_SITE).and_return('www.hotfix.bgs.uktrade.digital')
35+
it 'returns hotfix domain if DOMAIN is https://www.hotfix.bgs.uktrade.digital' do
36+
allow(Figaro.env).to receive(:DOMAIN).and_return('https://www.hotfix.bgs.uktrade.digital')
37+
allow(Figaro.env).to receive(:BGS_SITE).and_return('https://www.hotfix.bgs.uktrade.digital')
3838

3939
expect(fetch_domain).to eq('hotfix.bgs.uktrade.digital')
4040
end

0 commit comments

Comments
 (0)