Sha256: c4a144b13b15b02d1c6cd181cf19eddfc8ca8a04aa26100eb76d1831684ac920

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class UcBrowserTest < Minitest::Test
  test "detects UC Browser" do
    browser = Browser.new(Browser["UC_BROWSER"])
    assert browser.uc_browser?
    assert_equal "UCBrowser", browser.name
  end

  test "detects version by range" do
    browser = Browser.new(Browser["UC_BROWSER"])
    assert browser.uc_browser?(%w[>=9 <10])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browser-6.1.0 test/unit/uc_browser_test.rb
browser-6.0.0 test/unit/uc_browser_test.rb