Skip to content

Commit 5fc8765

Browse files
committed
RUBY-1121 Expect an OperationFailure in auth test only if server has auth enabled
1 parent 5c1c5b6 commit 5fc8765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mongo/auth/user/view_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
described_class.new(unauthorized_client.database)
146146
end
147147

148-
it 'raises an OperationFailure' do
148+
it 'raises an OperationFailure', if: auth_enabled? do
149149
expect{
150150
view.info('emily')
151151
}.to raise_exception(Mongo::Error::OperationFailure)

0 commit comments

Comments
 (0)