mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 19:05:01 +01:00
rubocop: autofix
This commit is contained in:
parent
b22e05176a
commit
ddc072a388
2 changed files with 4 additions and 5 deletions
|
@ -1,10 +1,9 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'hashi_stack::repo class' do
|
||||
|
||||
context 'default parameters' do
|
||||
# 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
|
||||
include hashi_stack::repo
|
||||
package { 'packer':
|
||||
|
|
|
@ -11,10 +11,10 @@ describe 'hashi_stack::repo' do
|
|||
when 'RedHat'
|
||||
it {
|
||||
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
|
||||
{
|
||||
rpm_base: 'https://somewhere.else'
|
||||
|
@ -23,7 +23,7 @@ describe 'hashi_stack::repo' do
|
|||
|
||||
it {
|
||||
is_expected.to contain_yumrepo('HashiCorp').with(
|
||||
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable',
|
||||
baseurl: 'https://somewhere.else/RHEL/$releasever/$basearch/stable'
|
||||
)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue