Skip to content

Instantly share code, notes, and snippets.

@pyro2927
Created March 22, 2015 22:32
Show Gist options
  • Save pyro2927/74b477f1d111dbdef37f to your computer and use it in GitHub Desktop.
Save pyro2927/74b477f1d111dbdef37f to your computer and use it in GitHub Desktop.
before.suite
config.add_setting :ldap_server
config.before(:suite) do
RSpec.configuration.ldap_server = Ladle::Server.new(quiet: true, ldif: File.expand_path("../files/seed.ldif", __FILE__), domain: "dc=evolvehq-test,dc=com", tmpdir: "/tmp")
RSpec.configuration.ldap_server.start
end
config.after(:suite) do
RSpec.configuration.ldap_server.stop unless RSpec.configuration.ldap_server.nil?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment