spec/foreman/export/inittab_spec.rb in foreman-0.82.0 vs spec/foreman/export/inittab_spec.rb in foreman-0.83.0

- old
+ new

@@ -10,21 +10,21 @@ let(:engine) { Foreman::Engine.new(:formation => formation).load_procfile(procfile) } let(:options) { Hash.new } let(:inittab) { Foreman::Export::Inittab.new(location, engine, options) } before(:each) { load_export_templates_into_fakefs("inittab") } - before(:each) { stub(inittab).say } + before(:each) { allow(inittab).to receive(:say) } it "exports to the filesystem" do inittab.export expect(File.read("/tmp/inittab")).to eq(example_export_file("inittab/inittab.default")) end context "to stdout" do let(:location) { "-" } it "exports to stdout" do - mock(inittab).puts example_export_file("inittab/inittab.default") + expect(inittab).to receive(:puts).with(example_export_file("inittab/inittab.default")) inittab.export end end context "with concurrency" do