Sha256: 33e4e4024685c640221089d592e05f1a7c26efaf61db102600928e67269ea3b6

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.15.0 test/gir_ffi-gtk/message_dialog_test.rb