diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5224928b..b8c6d9f9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -7,8 +7,8 @@ [List any existing issues this PR resolves] ### Check List -- [ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD + +- [ ] All tests pass. See - [ ] New functionality includes testing. - [ ] New functionality has been documented in the README if applicable -- [ ] The CLA has been signed. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD - +- [ ] All commits have been signed for the Developer Certificate of Origin. See diff --git a/libraries/matchers.rb b/libraries/matchers.rb index b57d2c68..7b1e94c2 100644 --- a/libraries/matchers.rb +++ b/libraries/matchers.rb @@ -4,6 +4,8 @@ # apt_preference ################# + ChefSpec.define_matcher :apt_preference + def add_apt_preference(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:apt_preference, :add, resource_name) end @@ -16,6 +18,8 @@ def remove_apt_preference(resource_name) # apt_repository ################# + ChefSpec.define_matcher :apt_repository + def add_apt_repository(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:apt_repository, :add, resource_name) end @@ -28,6 +32,8 @@ def remove_apt_repository(resource_name) # apt_update ################# + ChefSpec.define_matcher :apt_update + def update_apt_update(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:apt_update, :update, resource_name) end diff --git a/metadata.rb b/metadata.rb index c1fd33d6..1ec5b834 100644 --- a/metadata.rb +++ b/metadata.rb @@ -16,7 +16,6 @@ source_url 'https://github.com/chef-cookbooks/apt' issues_url 'https://github.com/chef-cookbooks/apt/issues' +chef_version '>= 12.1' -chef_version '>= 12.1' if respond_to?(:chef_version) - -depends 'compat_resource', '>= 12.10' +depends 'compat_resource', '>= 12.14.7'