Skip to content

Commit

Permalink
add layout helper spec
Browse files Browse the repository at this point in the history
  • Loading branch information
qcannon committed Mar 20, 2024
1 parent f1e21da commit 4438999
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/helpers/application_layout_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
end
end

describe '#deployment_env_label' do
it 'returns the value of the DEPLOYMENT_ENV_LABEL environment variable' do
with_env DEPLOYMENT_ENV_LABEL: 'stage' do
expect(helper.deployment_env_label).to eq 'stage'
end
end

it 'returns nil when no DEPLOYMENT_ENV_LABEL environment variable is set' do
expect(helper.deployment_env_label).to be_nil
end
end

describe '#header_modifier' do
context 'when the header_modifier content_for has been provided' do
before do
Expand Down

0 comments on commit 4438999

Please sign in to comment.