Sha256: e8bea1e0c1b01e38e1acc7babb8533a99c0cf2fb34e248792db41b7b29b426dc
Contents?: true
Size: 1.25 KB
Versions: 11
Compression:
Stored size: 1.25 KB
Contents
require 'spec_helper' module Eos describe Host do let(:options) { @options ? @options : {} } let(:platform) do if @platform { :platform => Beaker::Platform.new(@platform) } else { :platform => Beaker::Platform.new('eos-vers-arch-extra') } end end let(:host) { make_host('name', options.merge(platform)) } describe '#get_remote_file' do it 'calls enable first' do expect(host).to receive(:execute).with(/enable/) host.get_remote_file('remote_url') end it 'begins second line with the copy command' do expect(host).to receive(:execute).with(/\ncopy/) host.get_remote_file('remote_url') end it 'ends second line with particular extension location' do expect(host).to receive(:execute).with(/extension\:\'$/) host.get_remote_file('remote_url') end end describe '#install_from_file' do it 'calls enable first' do expect(host).to receive(:execute).with(/enable/) host.install_from_file('local_file') end it 'begins second line with the extension command' do expect(host).to receive(:execute).with(/\nextension/) host.install_from_file('local_file') end end end end
Version data entries
11 entries across 11 versions & 1 rubygems