Sha256: 6cd312bf6e40e18aa3e543ec1a5fc0406c087c4525f088b9863a035e219c7dc8
Contents?: true
Size: 586 Bytes
Versions: 8
Compression:
Stored size: 586 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe DRbQS::Server do context "when we setup ACL objects" do it "should initialize an ACL object by ACLFile.load" do path = File.dirname(__FILE__) + '/data/acl.txt' DRbQS::ACLFile.should_receive(:load).with(path) DRbQS::Server.new(:acl => path, :log_file => nil) end it "should initialize an ACL object by ACL.new" do ary = ['deny', 'all', 'allow', 'localhost'] ACL.should_receive(:new).with(ary) DRbQS::Server.new(:acl => ary, :log_file => nil) end end end
Version data entries
8 entries across 8 versions & 1 rubygems