Sha256: 47dc5d07ec7de308dbc3652911101f2b848ccf09cd0a04b3ccdf6e9389ab3f64

Contents?: true

Size: 680 Bytes

Versions: 6

Compression:

Stored size: 680 Bytes

Contents

require 'test_helper'

describe Gtk::RadioAction do
  describe "#get_group" do
    it "returns a GLib::SList object" do
      action = Gtk::RadioAction.new 'name', 'label', 'tooltip', nil, 1
      grp = action.get_group
      grp.must_be_instance_of GLib::SList
    end
  end

  describe "#set_group" do
    let(:action) { Gtk::RadioAction.new 'name', 'label', 'tooltip', nil, 1 }

    it "accepts nil" do
      action.set_group nil
      pass
    end

    it "accepts a GLib::SList object" do
      grp = action.get_group
      other_action = Gtk::RadioAction.new 'other-name', 'other-label', 'other-tooltip', nil, 2
      other_action.set_group grp
      pass
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.12.1 test/gir_ffi-gtk/radio_action_test.rb
gir_ffi-gtk-0.12.0 test/gir_ffi-gtk/radio_action_test.rb
gir_ffi-gtk-0.11.0 test/gir_ffi-gtk/radio_action_test.rb
gir_ffi-gtk-0.10.0 test/gir_ffi-gtk/radio_action_test.rb
gir_ffi-gtk-0.9.0 test/gir_ffi-gtk/radio_action_test.rb
gir_ffi-gtk-0.8.1 test/gir_ffi-gtk/radio_action_test.rb