]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
We aren't truncating in the type
authorMorgan Haskel <morgan@puppetlabs.com>
Wed, 1 Oct 2014 18:46:14 +0000 (13:46 -0500)
committerMorgan Haskel <morgan@puppetlabs.com>
Wed, 1 Oct 2014 18:46:14 +0000 (13:46 -0500)
So don't check for truncated IDs in the type test.

spec/unit/puppet/type/apt_key_spec.rb

index c29f82b08862529c3e328cde6734bca4cff3c927..e661ba1bdbb5ea8ee1a809a36ac70dbac48846e7 100644 (file)
@@ -41,7 +41,7 @@ describe Puppet::Type::type(:apt_key) do
       :id => 'FFFFFFFF4BD6EC30'
     )}
     it 'id is set' do
-      resource[:id].should eq '4BD6EC30'
+      resource[:id].should eq 'FFFFFFFF4BD6EC30'
     end
   end
 
@@ -68,7 +68,7 @@ describe Puppet::Type::type(:apt_key) do
       :id => '0xFFFFFFFF4BD6EC30'
     )}
     it 'id is set' do
-      resource[:id].should eq '4BD6EC30'
+      resource[:id].should eq 'FFFFFFFF4BD6EC30'
     end
   end