Sha256: 574cbd41fb631b8390cb582ebcb388dbf318cdd091cef68c29e60d916d8be494
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true require "test_helper" class SamsungBrowserTest < Minitest::Test test "detects samsung browser" do browser = Browser.new(Browser["SAMSUNG_BROWSER"]) assert browser.webkit? assert browser.samsung_browser? assert_equal "11", browser.version assert_equal :samsung_browser, browser.id assert_equal "11.1", browser.full_version assert_equal "Samsung Browser", browser.name refute browser.chrome? end test "detects version by range" do browser = Browser.new(Browser["SAMSUNG_BROWSER"]) assert browser.samsung_browser?(%w[>=11 <12]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browser-4.1.0 | test/unit/samsung_browser_test.rb |