diff --git a/test/unit/lookups/yandex_test.rb b/test/unit/lookups/yandex_test.rb index 45c4c26cb2ae5bbc86cb0fe8b5fbd93b0c76d961..b4ca20941ff4f306977ff30a74b31615543bbf38 100644 --- a/test/unit/lookups/yandex_test.rb +++ b/test/unit/lookups/yandex_test.rb @@ -26,6 +26,10 @@ class YandexTest < GeocoderTestCase "Some Intersection", :bounds => [[40.0, -120.0], [39.0, -121.0]] )) - assert_match(/bbox=40.0+%2C-120.0+%7E39.0+%2C-121.0+/, url) + if RUBY_VERSION < '2.5.0' + assert_match(/bbox=40.0+%2C-120.0+%7E39.0+%2C-121.0+/, url) + else + assert_match(/bbox=40.0+%2C-120.0+~39.0+%2C-121.0+/, url) + end end end