Sha256: 5a81949c465e52167102af6f09cac52afa9c818dca7709ee6a103dcff88dc4c7

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 Bytes

Contents

# encoding: utf-8

require 'pio'

describe Pio::Features::Reply do
  describe '.new' do
    Given(:options) do
      {
        dpid: 0x123,
        n_buffers: 0x100,
        n_tables: 0xfe,
        capabilities: 0xc7,
        actions: 0xfff
      }
    end

    When(:features_reply) { Pio::Features::Reply.new(options) }

    Then { features_reply.version == 1 }
    Then { features_reply.message_type == Pio::Features::REPLY }
    Then { features_reply.transaction_id == 0 }
    Then { features_reply.xid == 0 }
    Then { features_reply.dpid == 0x123 }
    Then { features_reply.n_buffers == 0x100 }
    Then { features_reply.n_tables == 0xfe }
    Then { features_reply.capabilities == 0xc7 }
    Then { features_reply.actions == 0xfff }
    Then { features_reply.ports == [] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.7.0 spec/pio/features/reply_spec.rb