File: proxy_test.rb

package info (click to toggle)
ruby-browser 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 900 kB
  • sloc: ruby: 4,845; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require "test_helper"

class ProxyTest < Minitest::Test
  %w[
    NOKIA
    OPERA_MINI
    UC_BROWSER
  ].each do |name|
    ua = Browser[name]

    test "detects #{name} as proxy" do
      browser = Browser.new(ua)

      assert browser.proxy?
      assert_includes browser.meta, "proxy"
    end
  end
end