Commit 18c1fc90 authored by William Yardley's avatar William Yardley
Browse files
parent acf444c7
......@@ -6,11 +6,14 @@ describe Puppet::Type.type(:package).provider(:pear) do
end
let(:provider) do
described_class.new(resource)
provider = described_class.new(resource)
provider.resource = resource
provider
end
before do
described_class.stubs(:command).with(:pear).returns '/fake/pear'
resource.provider = provider
end
describe '.instances' do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment