spec/unit/provider/service/launchd_spec.rb in puppet-3.1.1 vs spec/unit/provider/service/launchd_spec.rb in puppet-3.2.0.rc1
- old
+ new
@@ -5,11 +5,11 @@
describe Puppet::Type.type(:service).provider(:launchd) do
let (:joblabel) { "com.foo.food" }
let (:provider) { subject.class }
let (:launchd_overrides) { '/var/db/launchd.db/com.apple.launchd/overrides.plist' }
- let(:resource) { Puppet::Type.type(:service).new(:name => joblabel) }
- subject { Puppet::Type.type(:service).provider(:launchd).new(resource) }
+ let(:resource) { Puppet::Type.type(:service).new(:name => joblabel, :provider => :launchd) }
+ subject { resource.provider }
describe "the type interface" do
%w{ start stop enabled? enable disable status}.each do |method|
it { should respond_to method.to_sym }
end