Sha256: 9cc8ca95ab6e9bd592e7f681017a712d63100571cc09b7aecb9b5d39c5a584c1
Contents?: true
Size: 361 Bytes
Versions: 8
Compression:
Stored size: 361 Bytes
Contents
require 'minitest/autorun' require 'legitbot' class LegitbotTest < Minitest::Test def test_rules assert !Legitbot.bot("Firefox", "127.0.0.1"), msg: "Not a bot" assert Legitbot.bot("Googlebot", "5.140.70.64"), msg: "No reverse resolve, bot" Legitbot.bot("Firefox", "127.0.0.1") do |bot| flunk "No bot Firefox is possible" end end end
Version data entries
8 entries across 8 versions & 1 rubygems