test/helper/omittable.rb in red-arrow-14.0.2 vs test/helper/omittable.rb in red-arrow-15.0.0

- old
+ new

@@ -15,9 +15,14 @@ # specific language governing permissions and limitations # under the License. module Helper module Omittable + def require_ruby(major, minor, micro=0) + return if (RUBY_VERSION <=> "#{major}.#{minor}.#{micro}") >= 0 + omit("Require Ruby #{major}.#{minor}.#{micro} or later: #{RUBY_VERSION}") + end + def require_gi_bindings(major, minor, micro) return if GLib.check_binding_version?(major, minor, micro) message = "Require gobject-introspection #{major}.#{minor}.#{micro} or later: " + GLib::BINDING_VERSION.join(".")