Sha256: 2d0cb3c97771f7c7393860230a8a46b088cabee1b71a7a511919d64a86dad16d
Contents?: true
Size: 762 Bytes
Versions: 38
Compression:
Stored size: 762 Bytes
Contents
require "pathname" require "tmpdir" require File.expand_path("../../../../base", __FILE__) describe Vagrant::Action::Builtin::Message do let(:app) { lambda { |env| } } let(:env) { { ui: ui } } let(:ui) { double("ui") } describe "#call" do it "outputs the given message" do subject = described_class.new(app, env, "foo") expect(ui).to receive(:output).with("foo").ordered expect(app).to receive(:call).with(env).ordered subject.call(env) end it "outputs the given message after the call" do subject = described_class.new(app, env, "foo", post: true) expect(app).to receive(:call).with(env).ordered expect(ui).to receive(:output).with("foo").ordered subject.call(env) end end end
Version data entries
38 entries across 31 versions & 7 rubygems