Sha256: 6eb13977476ae18f335631436868e4d6015dd52c6fc5c9928827df448129330b

Contents?: true

Size: 593 Bytes

Versions: 7

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

require "simplecov"
SimpleCov.start

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

module Minitest
  class Test
    setup do
      Browser::Bot.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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
browser-3.0.2 test/test_helper.rb
browser-3.0.1 test/test_helper.rb
browser-3.0.0 test/test_helper.rb
browser-2.7.1 test/test_helper.rb
browser-2.7.0 test/test_helper.rb
browser-2.6.1 test/test_helper.rb
browser-2.6.0 test/test_helper.rb