Skip to content

Commit

Permalink
Remove duplicated contexts
Browse files Browse the repository at this point in the history
Those contexts were checking for different data types while ago (integer,
string)
  • Loading branch information
jay7x committed Jul 7, 2023
1 parent cd4dd3c commit c79ca10
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions spec/defines/resource_mailhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -744,15 +744,6 @@
it { is_expected.to contain_concat__fragment("#{title}-header") }
end

context 'when listen_port != "ssl_port"' do
let :params do
default_params.merge(listen_port: 80,
ssl_port: 443)
end

it { is_expected.to contain_concat__fragment("#{title}-header") }
end

context 'when listen_port == ssl_port' do
let :params do
default_params.merge(listen_port: 80,
Expand All @@ -762,15 +753,6 @@
it { is_expected.not_to contain_concat__fragment("#{title}-header") }
end

context 'when listen_port == "ssl_port"' do
let :params do
default_params.merge(listen_port: 80,
ssl_port: 80)
end

it { is_expected.not_to contain_concat__fragment("#{title}-header") }
end

context 'when ssl => true' do
let :params do
default_params.merge(ensure: 'absent',
Expand Down

0 comments on commit c79ca10

Please sign in to comment.