Sha256: a8d8a524a52a904cfbef29f78708f223d7dd3910b8620bf716862b9276057044

Contents?: true

Size: 305 Bytes

Versions: 19

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

require 'minitest/autorun'
require 'legitbot'

class BotMatchTest < Minitest::Test
  def test_valid_class_syntax
    assert Legitbot::Google.valid?('66.249.64.141'), msg: 'Valid Googlebot'
    assert Legitbot::Google.fake?('149.210.164.47'), msg: 'Fake Googlebot'
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
legitbot-1.5.1 test/botmatch_test.rb
legitbot-1.5.0 test/botmatch_test.rb
legitbot-1.4.5 test/botmatch_test.rb
legitbot-1.4.4 test/botmatch_test.rb
legitbot-1.4.3 test/botmatch_test.rb
legitbot-1.4.2 test/botmatch_test.rb
legitbot-1.4.1 test/botmatch_test.rb
legitbot-1.4.0 test/botmatch_test.rb
legitbot-1.3.0 test/botmatch_test.rb
legitbot-1.2.0 test/botmatch_test.rb
legitbot-1.1.1 test/botmatch_test.rb
legitbot-1.1.0 test/botmatch_test.rb
legitbot-1.0.2 test/botmatch_test.rb
legitbot-1.0.1 test/botmatch_test.rb
legitbot-1.0.0 test/botmatch_test.rb
legitbot-0.4.3 test/botmatch_test.rb
legitbot-0.4.2 test/botmatch_test.rb
legitbot-0.4.1 test/botmatch_test.rb
legitbot-0.4.0 test/botmatch_test.rb