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-6.2.0 test/unit/otter_test.rb
browser-6.1.0 test/unit/otter_test.rb
browser-6.0.0 test/unit/otter_test.rb
browser-5.3.1 test/unit/otter_test.rb
browser-5.3.0 test/unit/otter_test.rb
browser-5.2.0 test/unit/otter_test.rb
browser-5.1.0 test/unit/otter_test.rb
browser-5.0.0 test/unit/otter_test.rb
browser-4.2.0 test/unit/otter_test.rb
browser-4.1.0 test/unit/otter_test.rb
browser-4.0.0 test/unit/otter_test.rb
browser-3.0.3 test/unit/otter_test.rb
browser-3.0.2 test/unit/otter_test.rb
browser-3.0.1 test/unit/otter_test.rb
browser-3.0.0 test/unit/otter_test.rb
browser-2.7.1 test/unit/otter_test.rb
browser-2.7.0 test/unit/otter_test.rb
browser-2.6.1 test/unit/otter_test.rb
browser-2.6.0 test/unit/otter_test.rb
browser-2.5.3 test/unit/otter_test.rb