From 4fc0967ea1a57217234f5254315738697702a60c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 11 Apr 2016 15:29:07 +0200 Subject: [PATCH] Improved device detection for user agent and different countries. --- test/unit/user_device_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/user_device_test.rb b/test/unit/user_device_test.rb index 44f58aff4..61cf3c5c1 100644 --- a/test/unit/user_device_test.rb +++ b/test/unit/user_device_test.rb @@ -212,6 +212,7 @@ class UserDeviceTest < ActiveSupport::TestCase 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.107 Safari/537.36', '91.115.248.231', @agent.id, + 'session', ) assert_equal(user_device1.id, user_device1_1.id) user_device1_2 = UserDevice.add( @@ -237,6 +238,7 @@ class UserDeviceTest < ActiveSupport::TestCase 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.107 Safari/537.36', '176.198.137.254', @agent.id, + 'session', ) assert_not_equal(user_device1.id, user_device2.id)