Skip to content

Commit 3674461

Browse files
committed
Adjust spec
1 parent fa337ae commit 3674461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mongo/server/monitor/connection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
expect(Socket).to receive(:getaddrinfo).and_raise(SocketError.new('Test exception'))
154154
lambda do
155155
connection.connect!
156-
end.should raise_error(SocketError, 'Test exception')
156+
end.should raise_error(Mongo::Error::SocketError, /SocketError: Test exception/)
157157
end
158158
end
159159
end

0 commit comments

Comments
 (0)