Sha256: b5eac38cfee40120bbc2902a0b582be836a5ab425298c84d83e8d082132afcb7

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

describe Gtk::Button do
  describe '.new_from_icon_name' do
    before do
      skip if Gtk::MAJOR_VERSION == 2 || Gtk::MAJOR_VERSION == 3 && Gtk::MINOR_VERSION < 10
    end

    it 'works when called with a symbol' do
      result = Gtk::Button.new_from_icon_name('hi', :dialog)
      _(result).must_be_instance_of Gtk::Button
    end

    it 'works when called with an integer' do
      result = Gtk::Button.new_from_icon_name('hi', 4)
      _(result).must_be_instance_of Gtk::Button
    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/button_test.rb