diff options
Diffstat (limited to 'spec/unit/type/sshkey_spec.rb')
-rw-r--r-- | spec/unit/type/sshkey_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/type/sshkey_spec.rb b/spec/unit/type/sshkey_spec.rb index 53448ed..2804ee4 100644 --- a/spec/unit/type/sshkey_spec.rb +++ b/spec/unit/type/sshkey_spec.rb @@ -81,5 +81,10 @@ describe Puppet::Type.type(:sshkey) do described_class.new(name: 'host,host.domain,ip') }.to raise_error(Puppet::Error, %r{No comma in resourcename}) end + + it 'aliases :title to :name' do + key = described_class.new(name: 'foo', type: :rsa) + expect(key.name).to eq key.title + end end end |