Sha256: 2d6cb5d7d7e5309dc2a26f66ccbdaf7f2bc49c39e5220e4a67ef0dad280cbad2
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require 'vagrant-openstack-illuin-provider/spec_helper' describe VagrantPlugins::Openstack::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-openstack-illuin-provider-0.12.0 | spec/vagrant-openstack-illuin-provider/action/message_spec.rb |