rubocop: autofix

This commit is contained in:
Tim Meusel 2021-08-26 12:11:50 +02:00
parent b22e05176a
commit ddc072a388
No known key found for this signature in database
GPG key ID: 04D659E6BF1C4CC0
2 changed files with 4 additions and 5 deletions

View file

@ -1,10 +1,9 @@
require 'spec_helper_acceptance' require 'spec_helper_acceptance'
describe 'hashi_stack::repo class' do describe 'hashi_stack::repo class' do
context 'default parameters' do context 'default parameters' do
# Using puppet_apply as a helper # Using puppet_apply as a helper
it 'should work with no errors based on the example' do it 'works with no errors based on the example' do
pp = <<-EOS pp = <<-EOS
include hashi_stack::repo include hashi_stack::repo
package { 'packer': package { 'packer':

View file

@ -11,10 +11,10 @@ describe 'hashi_stack::repo' do
when 'RedHat' when 'RedHat'
it { it {
is_expected.to contain_yumrepo('HashiCorp').with( is_expected.to contain_yumrepo('HashiCorp').with(
baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable', baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable'
) )
} }
context "with custom Yum base url" do context 'with custom Yum base url' do
let(:params) do let(:params) do
{ {
rpm_base: 'https://somewhere.else' rpm_base: 'https://somewhere.else'
@ -23,7 +23,7 @@ describe 'hashi_stack::repo' do
it { it {
is_expected.to contain_yumrepo('HashiCorp').with( is_expected.to contain_yumrepo('HashiCorp').with(
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable', baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable'
) )
} }
end end