Sha256: bacfbe86de8e1afe05ca9db5a09135c5f4966dab5a551d1eb72b4ff147dbf5c8

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi_test_helper'
require 'gir_ffi/receiver_argument_info'

describe GirFFI::ReceiverArgumentInfo do
  let(:dummy_type) { 'foo' }
  let(:instance) { GirFFI::ReceiverArgumentInfo.new dummy_type }

  describe '#argument_type' do
    it 'returns the argument type' do
      instance.argument_type.must_equal dummy_type
    end
  end

  describe '#direction' do
    it 'returns the correct value' do
      instance.direction.must_equal :in
    end
  end

  describe '#ownership_transfer' do
    it 'returns the correct value' do
      instance.ownership_transfer.must_equal :everything
    end
  end

  describe '#name' do
    it 'returns the correct value' do
      instance.name.must_equal '_instance'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 test/gir_ffi/receiver_argument_info_test.rb
gir_ffi-0.11.0 test/gir_ffi/receiver_argument_info_test.rb