Sha256: 2578c3c7b9c6bd5f85e427ed667d1120e4a367cb7a8d30a02f12e5e9e8a7b2bf
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
require 'pio/open_flow10/error/hello_failed' describe Pio::OpenFlow10::Error::HelloFailed do it_should_behave_like('an OpenFlow message', Pio::OpenFlow10::Error::HelloFailed) describe '.new' do When(:hello_failed) { Pio::OpenFlow10::Error::HelloFailed.new(options) } context 'with {}' do Given(:options) { {} } Then { hello_failed.message_length == 12 } Then { hello_failed.error_type == :hello_failed } Then { hello_failed.error_code == :incompatible } Then { hello_failed.description == '' } end context "with description: 'error description'" do Given(:options) { { description: 'error description' } } Then { hello_failed.message_length == 29 } Then { hello_failed.description == 'error description' } end end end
Version data entries
5 entries across 5 versions & 1 rubygems