Sha256: 392d05e91a8223ead7cf2d1031bdce6a434b8dcda8fdac54feb19e2b4327cdc6

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

describe Gtk::Action do
  let(:action) { Gtk::Action.new('hi', 'Hello', 'hey there', Gtk::STOCK_FILE) }

  describe '#create_icon' do
    it 'works when called with a symbol' do
      result = action.create_icon :dialog
      _(result).must_be_instance_of Gtk::Image
    end

    it 'works when called with an integer' do
      result = action.create_icon 4
      _(result).must_be_instance_of Gtk::Image
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.15.0 test/gir_ffi-gtk/action_test.rb