Sha256: f19d185470d17f01f48b05554e7bc5a2124604a6183e1bb0bc6ad970e6125ba9

Contents?: true

Size: 446 Bytes

Versions: 8

Compression:

Stored size: 446 Bytes

Contents

require 'test_helper'

describe Gtk::MessageDialog do
  describe ".new" do
    it "creates a Gtk::MessageDialog with the right text" do
      dialog = Gtk::MessageDialog.new nil, :modal, :info, :close, 'Foo'
      dialog.text.must_equal 'Foo'
    end

    it "handles all % characters in the message as literals" do
      dialog = Gtk::MessageDialog.new nil, :modal, :info, :close, 'Foo %'
      dialog.text.must_equal 'Foo %'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.12.1 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.12.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.11.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.10.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.9.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.8.1 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.8.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.7.2 test/gir_ffi-gtk/message_dialog_test.rb