diff options
author | Thom May <thom@chef.io> | 2016-04-01 09:50:32 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-04-08 13:00:49 -0700 |
commit | 79548accdf02e199d48a09b6eb0cc8d8613b0916 (patch) | |
tree | 4cc9150c10a0712e3025b137e4a859731b410ad6 /spec/unit/resource | |
parent | 1eb4511c15f5042ecb0432170c6532fb065a842c (diff) | |
download | chef-79548accdf02e199d48a09b6eb0cc8d8613b0916.tar.gz |
Add an apt_repository resourcetm/apt_repository
More or less stolen from the apt cookbook, but tweaked and fixes a heap
of bugs.
Diffstat (limited to 'spec/unit/resource')
-rw-r--r-- | spec/unit/resource/apt_repository_spec.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/spec/unit/resource/apt_repository_spec.rb b/spec/unit/resource/apt_repository_spec.rb new file mode 100644 index 0000000000..88d9ca2508 --- /dev/null +++ b/spec/unit/resource/apt_repository_spec.rb @@ -0,0 +1,34 @@ +# +# Author:: Thom May (<thom@chef.io>) +# Copyright:: Copyright (c) 2016 Chef Software, Inc. +# License:: Apache License, Version 2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require "spec_helper" + +describe Chef::Resource::AptRepository do + + let(:resource) { Chef::Resource::AptRepository.new("multiverse") } + + it "should create a new Chef::Resource::AptUpdate" do + expect(resource).to be_a_kind_of(Chef::Resource) + expect(resource).to be_a_kind_of(Chef::Resource::AptRepository) + end + + it "the default keyserver should be keyserver.ubuntu.com" do + expect(resource.keyserver).to eql("keyserver.ubuntu.com") + end + +end |