spec/foreman/export/base_spec.rb in ypadlyak-foreman-0.81.0 vs spec/foreman/export/base_spec.rb in ypadlyak-foreman-0.85.0

- old
+ new

@@ -7,10 +7,10 @@ let(:location) { "/tmp/init" } let(:engine) { Foreman::Engine.new().load_procfile(procfile) } let(:subject) { Foreman::Export::Base.new(location, engine) } it "has a say method for displaying info" do - mock(subject).puts("[foreman export] foo") + expect(subject).to receive(:puts).with("[foreman export] foo") subject.send(:say, "foo") end it "raises errors as a Foreman::Export::Exception" do expect { subject.send(:error, "foo") }.to raise_error(Foreman::Export::Exception, "foo")