lib/github/ldap/server.rb in github-ldap-1.0.8 vs lib/github/ldap/server.rb in github-ldap-1.0.9

- old
+ new

@@ -31,17 +31,15 @@ # # options: is a hash with the custom options for the server. def self.start_server(options = {}) @server_options = DEFAULT_SERVER_OPTIONS.merge(options) - @ldap_server ||= Ladle::Server.new( - allow_anonymous: false, - ldif: server_options[:user_fixtures], - domain: server_options[:user_domain], - port: server_options[:port], - quiet: server_options[:quiet], - tmpdir: server_tmp) + @server_options[:allow_anonymous] = false + @server_options[:ldif] = @server_options[:user_fixtures] + @server_options[:domain] = @server_options[:user_domain] + @server_options[:tmpdir] ||= server_tmp + @ldap_server = Ladle::Server.new(@server_options) @ldap_server.start end # Stop the testing server. # If there is no server started this method doesn't do anything.