Sha256: 30838ca65b737d2565a416126bfd058d112ea5b957cbb5bf933ab606ac359ca9
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
require 'test_helper' describe Gtk::RadioButton do describe '.new_from_widget' do it 'works when called with nil' do result = Gtk::RadioButton.new_from_widget(nil) result.must_be_instance_of Gtk::RadioButton end it 'works when called with another radio button' do btn = Gtk::RadioButton.new_from_widget nil result = Gtk::RadioButton.new_from_widget btn result.must_be_instance_of Gtk::RadioButton end end describe '#get_group' do it 'returns a GLib::SList object' do btn = Gtk::RadioButton.new_from_widget nil grp = btn.get_group assert_instance_of GLib::SList, grp end end describe '.new' do it 'works when called with nil' do result = Gtk::RadioButton.new nil result.must_be_instance_of Gtk::RadioButton end it 'works when called with the result of #get_group' do btn = Gtk::RadioButton.new_from_widget nil result = Gtk::RadioButton.new btn.get_group result.must_be_instance_of Gtk::RadioButton end end end
Version data entries
4 entries across 4 versions & 1 rubygems