Skip to content

Commit

Permalink
[BUGFIX] Fix another failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jan 18, 2012
1 parent c3294a1 commit 85d43fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/adhearsion/ldap/plugin/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
describe "when starting the LDAP connection" do
before do
Adhearsion.config[:adhearsion_ldap].host = "localhost"
Adhearsion::LDAP::Plugin::Service.any_instance.should_receive(:require_models).and_return true
end

after do
reset_adhearsion_ldap_config
end

it "should call Connection.start method with the valid parameters" do
Adhearsion::LDAP::Plugin::Service.should_receive(:establish_connection).with("localhost", 389, "", "", "", false, false).and_return true
Adhearsion.config.should_receive(:files_from_setting).with("paths", "models").and_return []
Adhearsion::LDAP::Plugin::Service.any_instance.should_receive(:establish_connection).with("localhost", 389, "", "", "", false, false).and_return true
Adhearsion::Plugin.init_plugins
end

Expand Down

0 comments on commit 85d43fe

Please sign in to comment.