Sha256: 85a0aa4d44c8904e7ac721a89116de6119373c3125913d0c4c8b42fae0962bda

Contents?: true

Size: 1.31 KB

Versions: 14

Compression:

Stored size: 1.31 KB

Contents

# Copyright (C) 2012-2013  Ruby-GNOME2 Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

require "test-unit"
require "test/unit/notify"

module ClutterTestUtils
  private
  def only_clutter_version(major, minor, micro=nil)
    micro ||= 0
    unless Clutter.check_version?(major, minor, micro)
      omit("Require Clutter >= #{major}.#{minor}.#{micro}")
    end
  end

  def omit_if_clutter_color_hash_expect_arguments
    unless Clutter::Color.method(:hash).parameters.empty?
      omit("This test can't be run on this environment.")
    end
  end

  def omit_on_travis_ci
    omit("This test can't be run on Travis CI") if ENV["CI"]
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
clutter-3.0.2-x86-mingw32 test/clutter-test-utils.rb
clutter-3.0.2-x64-mingw32 test/clutter-test-utils.rb
clutter-3.0.2 test/clutter-test-utils.rb
clutter-3.0.1-x64-mingw32 test/clutter-test-utils.rb
clutter-3.0.1-x86-mingw32 test/clutter-test-utils.rb
clutter-3.0.1 test/clutter-test-utils.rb
clutter-3.0.0-x86-mingw32 test/clutter-test-utils.rb
clutter-3.0.0-x64-mingw32 test/clutter-test-utils.rb
clutter-2.2.5-x64-mingw32 test/clutter-test-utils.rb
clutter-2.2.5-x86-mingw32 test/clutter-test-utils.rb
clutter-2.2.5 test/clutter-test-utils.rb
clutter-2.2.4-x64-mingw32 test/clutter-test-utils.rb
clutter-2.2.4-x86-mingw32 test/clutter-test-utils.rb
clutter-2.2.4 test/clutter-test-utils.rb