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)
This commit is contained in:
Sam Saffron 2019-05-06 17:16:22 +10:00
parent 6ba914033c
commit bcdf5823a0
1 changed files with 2 additions and 2 deletions

View File

@ -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."