Sha256: aafbb309253f24de11d8604d5aa5da28970e9d7c43a7bab8dbbf52130fa28bc2

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 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

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 test/gir_ffi/receiver_argument_info_test.rb
gir_ffi-0.15.2 test/gir_ffi/receiver_argument_info_test.rb
gir_ffi-0.15.1 test/gir_ffi/receiver_argument_info_test.rb
gir_ffi-0.15.0 test/gir_ffi/receiver_argument_info_test.rb