spec/foreman/export/launchd_spec.rb in ypadlyak-foreman-0.81.0 vs spec/foreman/export/launchd_spec.rb in ypadlyak-foreman-0.85.0
- old
+ new
@@ -8,10 +8,10 @@
let(:options) { Hash.new }
let(:engine) { Foreman::Engine.new().load_procfile(procfile) }
let(:launchd) { Foreman::Export::Launchd.new("/tmp/init", engine, options) }
before(:each) { load_export_templates_into_fakefs("launchd") }
- before(:each) { stub(launchd).say }
+ before(:each) { allow(launchd).to receive(:say) }
it "exports to the filesystem" do
launchd.export
expect(File.read("/tmp/init/app-alpha-1.plist")).to eq(example_export_file("launchd/launchd-a.default"))
expect(File.read("/tmp/init/app-bravo-1.plist")).to eq(example_export_file("launchd/launchd-b.default"))