diff options
author | Bobosila Victor <vbobosila1@gmail.com> | 2021-09-25 13:15:58 +0300 |
---|---|---|
committer | Bobosila Victor <vbobosila1@gmail.com> | 2021-10-01 14:04:22 +0300 |
commit | 36a46c84de29e127dee95ebd5caa992ac39046b6 (patch) | |
tree | 34b66f1fdfd8205489cfa2b1c3d7a24b0a7f7a50 /spec/unit | |
parent | e78ecf8948988656bcb83aff2587f1641099416d (diff) | |
download | puppet-hosts_core-36a46c84de29e127dee95ebd5caa992ac39046b6.tar.gz puppet-hosts_core-36a46c84de29e127dee95ebd5caa992ac39046b6.tar.bz2 |
(MODULES-11197) Rubocop fixes
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/type/host_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/type/host_spec.rb b/spec/unit/type/host_spec.rb index 54d9b75..3fa5985 100644 --- a/spec/unit/type/host_spec.rb +++ b/spec/unit/type/host_spec.rb @@ -12,13 +12,13 @@ describe Puppet::Type.type(:host) do describe 'when validating attributes' do [:name, :provider].each do |param| - it "should have a #{param} parameter" do + it "has a #{param} parameter" do expect(described_class.attrtype(param)).to eq(:param) end end [:ip, :target, :host_aliases, :comment, :ensure].each do |property| - it "should have a #{property} property" do + it "has a #{property} property" do expect(described_class.attrtype(property)).to eq(:property) end end @@ -256,7 +256,7 @@ describe Puppet::Type.type(:host) do '0:a:b:c:d:e:f::', '::0:a:b:c:d:e:f', # syntactically correct, but bad form (::0:... could be combined) 'a:b:c:d:e:f:0::'].each do |ip| - it "should accept #{ip.inspect} as an IPv6 address" do + it "accepts #{ip.inspect} as an IPv6 address" do expect { described_class.new(name: 'foo', ip: ip) }.not_to raise_error end end @@ -587,7 +587,7 @@ describe Puppet::Type.type(:host) do '1111::3333:4444:5555:6666:7777:8888:', '::3333:4444:5555:6666:7777:8888:', '::2222:3333:4444:5555:6666:7777:8888:'].each do |ip| - it "should reject #{ip.inspect} as an IPv6 address" do + it "rejects #{ip.inspect} as an IPv6 address" do expect { described_class.new(name: 'foo', ip: ip) }.to raise_error(Puppet::ResourceError, %r{Parameter ip failed}) end end |