Sha256: 42a8e9e95c8cfdb54457c99b80c62f3f583fd72f490986ef055be1750fe41711
Contents?: true
Size: 697 Bytes
Versions: 11
Compression:
Stored size: 697 Bytes
Contents
require 'vagrant-conoha/spec_helper' describe VagrantPlugins::ConoHa::Action::Message do let(:ui) do double('ui').tap do |ui| ui.stub(:info).with(anything) ui.stub(:error).with(anything) end end let(:env) do {}.tap do |env| env[:ui] = ui end end let(:app) do double('app').tap do |app| app.stub(:call).with(anything) end end describe 'call' do context 'when message is given' do it 'print out the message' do expect(ui).to receive(:info).with('Message to show') expect(app).to receive(:call) @action = Message.new(app, nil, 'Message to show') @action.call(env) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems