Sha256: 750ee4735cd2e60043e0cc5a114e63e5ef500104d42341636af6574b5a0a2316

Contents?: true

Size: 644 Bytes

Versions: 17

Compression:

Stored size: 644 Bytes

Contents

require 'pio/open_flow13/write_metadata'

describe Pio::WriteMetadata do
  describe '.new' do
    When(:write_metadata) { Pio::WriteMetadata.new(options) }

    context 'with metadata: 1' do
      Given(:options) do
        {
          metadata: 0x1
        }
      end
      Then { write_metadata.metadata == 1 }
      Then { write_metadata.metadata_mask == 0 }
    end

    context 'with metadata: 1, metadata_mask: 1' do
      Given(:options) do
        {
          metadata: 0x1,
          metadata_mask: 0x1
        }
      end
      Then { write_metadata.metadata == 1 }
      Then { write_metadata.metadata_mask == 1 }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pio-0.30.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.29.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.28.1 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.28.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.27.2 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.27.1 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.27.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.26.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.25.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.24.2 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.24.1 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.24.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.23.1 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.23.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.22.0 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.21.1 spec/pio/open_flow13/write_metadata_spec.rb
pio-0.21.0 spec/pio/open_flow13/write_metadata_spec.rb