Sha256: c9e01b6d61d2740116be91cc39c4e68850a5985a097498bf95de33c3f7d587e2

Contents?: true

Size: 497 Bytes

Versions: 23

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class OtterBrowserTest < Minitest::Test
  test "detects Otter Browser" do
    browser = Browser.new(Browser["OTTER"])

    assert browser.otter?
    assert_equal "Otter", browser.name
    assert_equal :otter, browser.id
    assert_equal "0.9.91", browser.full_version
    assert_equal "0", browser.version
  end

  test "detects version by range" do
    browser = Browser.new(Browser["OTTER"])
    assert browser.otter?(%w[=0.9.91])
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
browser-2.5.2 test/unit/otter_test.rb
browser-2.5.1 test/unit/otter_test.rb
browser-2.5.0 test/unit/otter_test.rb