Sha256: 4868bea7f2278af64dca8cb8d5c505e6da1a0f5337dcf120675e2cea6beede34
Contents?: true
Size: 834 Bytes
Versions: 7
Compression:
Stored size: 834 Bytes
Contents
require 'ostruct' require 'pathname' require 'spec_helper' # action_root = Pathname.new(File.expand_path('../../../../lib/vagrant-rimu/actions', __FILE__)) # autoload :StopInstance, action_root.join('stop_instance') describe VagrantPlugins::Rimu::Actions::MessageNotCreated do let(:env) do {}.tap do |env| env[:ui] = double('ui').tap do |ui| ui.stub(:info).with(anything) ui.stub(:error).with(anything) end end end let(:app) do double('app').tap do |app| app.stub(:call).with(anything) end end describe 'call' do it 'sets info variable' do expect(I18n).to receive(:t).with('vagrant_rimu.not_created') expect(app).to receive(:call) @action = VagrantPlugins::Rimu::Actions::MessageNotCreated.new(app, env) @action.call(env) end end end
Version data entries
7 entries across 7 versions & 1 rubygems