1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From d65244d02babd7aa23a4ea8dd3b3a955393bcbac Mon Sep 17 00:00:00 2001
From: Peter Goldstein <peter.m.goldstein@gmail.com>
Date: Sat, 25 Dec 2021 15:34:35 -0800
Subject: Adding Ruby 3.1 to CI workflow (#886)
* Adding Ruby 3.1 to CI workflow
* Fix rubocop-performance lint issue, make tests compatible with error_highlight
---
test/protocol/test_value_serializer.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/protocol/test_value_serializer.rb b/test/protocol/test_value_serializer.rb
index 436fc9c..0127c18 100644
--- a/test/protocol/test_value_serializer.rb
+++ b/test/protocol/test_value_serializer.rb
@@ -228,7 +228,7 @@ describe Dalli::Protocol::ValueSerializer do
vs.retrieve(raw_value, Dalli::Protocol::ValueSerializer::FLAG_SERIALIZED)
end
end
- assert_equal exception.message, error_message
+ assert_equal error_message, exception.message
end
end
@@ -244,7 +244,7 @@ describe Dalli::Protocol::ValueSerializer do
vs.retrieve(raw_value, Dalli::Protocol::ValueSerializer::FLAG_SERIALIZED)
end
end
- assert_equal exception.message, "Unable to unmarshal value: #{error_message}"
+ assert exception.message.start_with?("Unable to unmarshal value: #{error_message}")
end
end
@@ -259,7 +259,7 @@ describe Dalli::Protocol::ValueSerializer do
vs.retrieve(raw_value, Dalli::Protocol::ValueSerializer::FLAG_SERIALIZED)
end
end
- assert_equal exception.message, error_message
+ assert exception.message.start_with?(error_message)
end
end
--
2.30.2
|