Sha256: 64e7294de071f0d5ee2cd6c31fa7fc4697c8d8305725e4b52e2069570369acac
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
require 'pio/open_flow13/error/hello_failed' describe Pio::OpenFlow13::Error::HelloFailed do it_should_behave_like('an OpenFlow message', Pio::OpenFlow13::Error::HelloFailed) describe '.new' do When(:hello_failed) { Pio::OpenFlow13::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