Sha256: 7be9d348538593b38c1bf93d7083d6af56319f05bab747bae0b66e524a77d328

Contents?: true

Size: 502 Bytes

Versions: 9

Compression:

Stored size: 502 Bytes

Contents

require 'test_helper'

describe Gtk::TargetEntry do
  describe '.new' do
    it 'takes and uses three arguments' do
      entry = Gtk::TargetEntry.new('foo', 3, 42)
      entry.target.must_equal 'foo'
      entry.flags.must_equal 3
      entry.info.must_equal 42
    end

    it 'allows symbol values for the second argument' do
      entry = Gtk::TargetEntry.new('foo', :same_app, 42)
      entry.target.must_equal 'foo'
      entry.flags.must_equal 1
      entry.info.must_equal 42
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.14.1 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.14.0 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.13.1 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.13.0 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.12.1 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.12.0 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.11.0 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.10.0 test/gir_ffi-gtk/target_entry_test.rb
gir_ffi-gtk-0.9.0 test/gir_ffi-gtk/target_entry_test.rb