Sha256: 309a57c01275fc81e79d248670d8959958b66c9a6f6efe9048cdcd23091a9fd0

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class EpiphanyBrowserTest < Minitest::Test
  test "detects epiphany browser" do
    browser = Browser.new(Browser["EPIPHANY"])

    assert browser.epiphany?
    refute browser.safari?
    assert_equal "Epiphany", browser.name
    assert_equal :epiphany, browser.id
    assert_equal "3.18.11", browser.full_version
    assert_equal "3", browser.version
  end

  test "detects version by range" do
    browser = Browser.new(Browser["EPIPHANY"])
    assert browser.epiphany?(%w[=3.18.11])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser-6.2.0 test/unit/epiphany_test.rb