Sha256: ee0b974bbad4196259c50f66c14b849b4332a25a234a6a1736787b40b020ef98
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 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(/test-openflowd/) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems