Skip to content

Commit

Permalink
updt
Browse files Browse the repository at this point in the history
  • Loading branch information
nd4p90x committed May 28, 2024
1 parent f26d642 commit 91a24a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/segment/analytics/message_batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class Analytics
message = { 'a' => 'b' * max_bytes }

subject << message
expect(subject.length).to eq(0)
expect { raise StandardError }.to raise_error("Message Exceeded Maximum Allowed Size")
expect(subject.length).to eq(0).and_raise(JSONGenerationError.new("Message Exceeded Maximum Allowed Size"))
end
end

Expand Down

0 comments on commit 91a24a5

Please sign in to comment.