diff options
Diffstat (limited to 'spec/unit/resource/apt_repository_spec.rb')
-rw-r--r-- | spec/unit/resource/apt_repository_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/resource/apt_repository_spec.rb b/spec/unit/resource/apt_repository_spec.rb index 23016c9abf..d97d746364 100644 --- a/spec/unit/resource/apt_repository_spec.rb +++ b/spec/unit/resource/apt_repository_spec.rb @@ -68,6 +68,11 @@ describe Chef::Resource::AptRepository do expect(resource.key).to eql(["key1"]) end + it "allows setting options to a String and coerces it to an Array" do + resource.options = "by-hash=no" + expect(resource.options).to eql(["by-hash=no"]) + end + it "fails if the user provides a repo_name with a forward slash" do expect { resource.repo_name "foo/bar" }.to raise_error(ArgumentError) end |