spec/runners/sdam.rb in mongo-2.15.0.alpha vs spec/runners/sdam.rb in mongo-2.15.0
- old
+ new
@@ -1,5 +1,8 @@
+# frozen_string_literal: true
+# encoding: utf-8
+
# Matcher for determining if the server is of the expected type according to
# the test.
#
# @since 2.0.0
RSpec::Matchers.define :be_server_type do |expected|
@@ -118,12 +121,12 @@
class Response
# @return [ String ] address The server address.
attr_reader :address
- # @return [ Hash ] ismaster The ismaster response.
- attr_reader :ismaster
+ # @return [ Hash ] hello The hello response.
+ attr_reader :hello
# Create the new response.
#
# @example Create the response.
# Response.new(response, uri)
@@ -133,10 +136,10 @@
#
# @since 2.0.0
def initialize(response, uri)
@uri = uri
@address = response[0]
- @ismaster = BSON::ExtJSON.parse_obj(response[1])
+ @hello = BSON::ExtJSON.parse_obj(response[1])
end
end
class ApplicationError
def initialize(spec)