Sha256: 5d40793c3b517c312beb9df840f1c3d378646188e1b67db52bb80b0927050ea6
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
require 'test_helper' describe Gtk::Dialog do describe '.new_with_buttons' do it 'creates a Gtk::Dialog with the right title and buttons' do dialog = Gtk::Dialog.new_with_buttons 'Foo', nil, :modal, [['Bar', :yes]] dialog.title.must_equal 'Foo' button = dialog.action_area.children.first button.label.must_equal 'Bar' dialog.response_for_widget(button).must_equal Gtk::ResponseType.to_int(:yes) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-gtk-0.14.1 | test/gir_ffi-gtk/dialog_test.rb |
gir_ffi-gtk-0.14.0 | test/gir_ffi-gtk/dialog_test.rb |