test/apple_test.rb in legitbot-0.4.3 vs test/apple_test.rb in legitbot-1.0.0
- old
+ new
@@ -14,16 +14,16 @@
ip = '127.0.0.1'
match = Legitbot::Apple.new(ip)
assert match.fake?, msg: "#{ip} is a fake Applebot IP"
end
- # rubocop:disable Metrics/LineLength
+ # rubocop:disable Layout/LineLength
def test_user_agent
bot = Legitbot.bot(
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)',
'17.58.98.60'
)
assert_equal :apple, bot.detected_as
assert bot.valid?, msg: 'A valid Applebot User-agent and IP'
end
- # rubocop:enable Metrics/LineLength
+ # rubocop:enable Layout/LineLength
end