spec/acs/ldap/connector_spec.rb in acs-ldap-0.2.1 vs spec/acs/ldap/connector_spec.rb in acs-ldap-0.2.2

- old
+ new

@@ -11,9 +11,14 @@ it "should be possible to create a connection" do expect(@connector.get_connection()).not_to be_nil end + it "should return an error if a connection failed" do + connector = Acs::Ldap::Connector.new({host: '127.0.0.1', port: 49390, base: "dc=adharacs,dc=lan", dn: "cn=admin,dc=adharacs,dc=lan", password: "admin"}) + expect(connector.get_connection()).to be_nil + end + it "should be possible to search without specs" do expect(@connector.search()).not_to be_nil end it "should be possible to add a user" do