Sha256: 51c878c5e3a21fb124e23f5e09d5a67785cc854d877edc230e9b277214f4c0c3
Contents?: true
Size: 549 Bytes
Versions: 19
Compression:
Stored size: 549 Bytes
Contents
require 'phut/open_vswitch' describe Phut::OpenVswitch do describe '.new' do context 'with 0xabc' do Given(:vswitch) do Phut::OpenVswitch.new(0xabc).tap do |vswitch| allow(vswitch).to receive(:running?).and_return(false, true) allow(vswitch).to receive(:sh) end end describe '#run' do When { vswitch.run } Then do expect(vswitch).to(have_received(:sh). with('sudo ovs-vsctl add-br br0xabc')) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems