Sha256: 6e5ffb871795a351b39bd6d376141c4f9ed9f26992f537f58cc229f70db708be

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

require 'minitest/autorun'
require 'minitest/hooks/test'
require 'lib/dns_server_mock'
require 'legitbot'

class BotMatchTest < Minitest::Test
  include Minitest::Hooks
  include DnsServerMock

  def test_valid_class_syntax
    assert Legitbot::Google.valid?('66.249.64.141')
    assert Legitbot::Google.fake?('149.210.164.47')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
legitbot-1.7.1 test/botmatch_test.rb
legitbot-1.7.0 test/botmatch_test.rb
legitbot-1.6.1 test/botmatch_test.rb
legitbot-1.6.0 test/botmatch_test.rb