Sha256: 688c5287d264dece183986856796ac01c5916f9fb66e132823b903eac2bbfd95

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 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

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.14.1 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.14.0 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.13.1 test/gir_ffi-gtk/message_dialog_test.rb
gir_ffi-gtk-0.13.0 test/gir_ffi-gtk/message_dialog_test.rb