spec/unit/models/message_spec.rb in ably-0.7.0 vs spec/unit/models/message_spec.rb in ably-0.7.1
- old
+ new
@@ -268,10 +268,10 @@
expect(message_1.data).to eql('simple string')
end
it 'should not allow changes to the payload' do
- expect { message_0.data["test"] = true }.to raise_error RuntimeError, /can't modify frozen Hash/
+ expect { message_0.data["test"] = true }.to raise_error RuntimeError, /can't modify frozen.*Hash/
end
context 'with identical message objects' do
let(:protocol_message) do
Ably::Models::ProtocolMessage.new({