Sha256: c1135a0128a28b1186e0291f17c6301019d3ae3dd60da5d8ded87d3765635507

Contents?: true

Size: 836 Bytes

Versions: 100

Compression:

Stored size: 836 Bytes

Contents

# -*- coding: utf-8 -*-

class TestGLibUtils < Test::Unit::TestCase
  include GLibTestUtils

  def test_user_cache_dir
    only_glib_version(2, 6, 0)
    assert_kind_of(String, GLib.user_cache_dir)
  end

  def test_user_data_dir
    only_glib_version(2, 6, 0)
    assert_kind_of(String, GLib.user_data_dir)
  end

  def test_user_config_dir
    only_glib_version(2, 6, 0)
    assert_kind_of(String, GLib.user_config_dir)
  end

  def test_system_data_dirs
    only_glib_version(2, 6, 0)
    assert_kind_of(Array, GLib.system_data_dirs)
  end

  def test_system_config_dirs
    only_glib_version(2, 6, 0)
    assert_kind_of(Array, GLib.system_config_dirs)
  end

  def test_get_user_special_dir
    only_glib_version(2, 14, 0)
    assert_nothing_raised do
      GLib.get_user_special_dir(GLib::UserDirectory::DESKTOP)
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
glib2-3.0.5-x64-mingw32 test/test_utils.rb
glib2-3.0.5-x86-mingw32 test/test_utils.rb
glib2-3.0.5 test/test_utils.rb
glib2-3.0.4-x86-mingw32 test/test_utils.rb
glib2-3.0.4-x64-mingw32 test/test_utils.rb
glib2-3.0.4 test/test_utils.rb
glib2-3.0.3-x64-mingw32 test/test_utils.rb
glib2-3.0.3-x86-mingw32 test/test_utils.rb
glib2-3.0.3 test/test_utils.rb
glib2-3.0.2-x86-mingw32 test/test_utils.rb
glib2-3.0.2-x64-mingw32 test/test_utils.rb
glib2-3.0.2 test/test_utils.rb
glib2-3.0.1-x86-mingw32 test/test_utils.rb
glib2-3.0.1-x64-mingw32 test/test_utils.rb
glib2-3.0.1 test/test_utils.rb
glib2-3.0.0-x86-mingw32 test/test_utils.rb
glib2-3.0.0-x64-mingw32 test/test_utils.rb
glib2-2.2.5-x64-mingw32 test/test_utils.rb
glib2-2.2.5-x86-mingw32 test/test_utils.rb
glib2-2.2.5 test/test_utils.rb