Sha256: f8f120615e71efd904cb3d06356870fd7c97fb847b7c6e430c6cd4bc60423c66

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

require "test_helper"

class IosAppTest < Minitest::Test
  let(:browser) { Browser.new(ua: $ua["IOS_WEBVIEW"]) }

  test "detect as ios" do
    assert browser.ios?
  end

  test "don't detect as safari" do
    refute browser.safari?
  end

  test "detect as webview" do
    assert browser.ios_webview?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
browser-1.1.0 test/unit/ios_app_test.rb