Created
March 22, 2015 22:32
-
-
Save pyro2927/74b477f1d111dbdef37f to your computer and use it in GitHub Desktop.
before.suite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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