DEV: correct frozen string and broken spec

DEV: correct frozen string and broken spec

This needs to be properly handled so the correct message is raised

1 item was removed from the serializer (avg_time)

diff --git a/spec/serializers/web_hook_post_serializer_spec.rb b/spec/serializers/web_hook_post_serializer_spec.rb
index 9777bec..2bcb50d 100644
--- a/spec/serializers/web_hook_post_serializer_spec.rb
+++ b/spec/serializers/web_hook_post_serializer_spec.rb
@@ -12,10 +12,10 @@ RSpec.describe WebHookPostSerializer do
 
   it 'should only include the required keys' do
     count = serialized_for_user(admin).keys.count
-    difference = count - 34
+    difference = count - 33
 
     expect(difference).to eq(0), lambda {
-      message = ""
+      message = +""
 
       if difference < 0
         message << "#{difference * -1} key(s) have been removed from this serializer."

GitHub sha: bcdf5823

2 Likes