Convert specs to RSpec 3.1.7 syntax with Transpec
[puppet-modules/puppetlabs-apt.git] / spec / defines / ppa_spec.rb
index d57c1a5895aca720b4d5466754885411a0468491..f3c76a3bde3facefa498e71c4a41ced6724a0d12 100644 (file)
@@ -96,7 +96,7 @@ describe 'apt::ppa', :type => :define do
       let(:title) { 'ppa:foo' }
       it do
         expect {
-          should compile
+          is_expected.to compile
         }.to raise_error(Puppet::Error, /lsbdistcodename fact not available: release parameter required/)
       end
     end
@@ -114,7 +114,7 @@ describe 'apt::ppa', :type => :define do
       let(:title) { 'ppa:foo' }
       it do
         expect {
-          should compile
+          is_expected.to compile
         }.to raise_error(Puppet::Error, /apt::ppa is currently supported on Ubuntu only./)
       end
     end