Sha256: df66773b1b55549e53dc15fd1cf9b584c4e35e2f86eaf662cb913ecd4842807b

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
require "bundler/setup"
require "minitest/autorun"
require "minitest/utils"
require "browser"
require "yaml"

$ua = YAML.load_file("./test/ua.yml")

class Minitest::Test
  setup do
    Browser::Bots.instance_variable_set("@detect_empty_ua", false)
  end

  def assert_deprecated(message, file, line, &block)
    message = "#{message} (called from #{file}:#{line})"
    out, err = capture_io(&block)
    assert_includes err, message
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
browser-1.1.0 test/test_helper.rb
browser2-1.0.0 test/test_helper.rb