Sha256: 36203e7339486075aec18c6385ce81107fa75c76823de6bd279e56629f7b75af

Contents?: true

Size: 1.07 KB

Versions: 35

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/env ruby

BEGIN {
	require 'pathname'
	basedir = Pathname.new( __FILE__ ).dirname.parent.parent

	libdir = basedir + "lib"

	$LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir )
	$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
}

require 'rspec'

require 'spec/lib/constants'
require 'spec/lib/helpers'

require 'treequel'
require 'treequel/control'

include Treequel::TestConstants
include Treequel::Constants

#####################################################################
###	C O N T E X T S
#####################################################################
module TestControl
	OID = 'an OID'
	include Treequel::Control
end

describe Treequel::Control do
	include Treequel::SpecHelpers

	before( :each ) do
		@testclass = Class.new
		@obj = @testclass.new
		@obj.extend( TestControl )
	end

	it "provides a empty client control list by default" do
		@obj.get_client_controls.should == []
	end

	it "provides a empty server control list by default" do
		@obj.get_server_controls.should == []
	end
end

# vim: set nosta noet ts=4 sw=4:

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
treequel-1.11.0 spec/treequel/control_spec.rb
treequel-1.10.0 spec/treequel/control_spec.rb
treequel-1.9.1 spec/treequel/control_spec.rb
treequel-1.9.0 spec/treequel/control_spec.rb
treequel-1.8.6 spec/treequel/control_spec.rb
treequel-1.8.5 spec/treequel/control_spec.rb
treequel-1.8.4 spec/treequel/control_spec.rb
treequel-1.8.3 spec/treequel/control_spec.rb
treequel-1.8.3.pre546 spec/treequel/control_spec.rb
treequel-1.8.3.pre545 spec/treequel/control_spec.rb
treequel-1.8.2 spec/treequel/control_spec.rb
treequel-1.8.1 spec/treequel/control_spec.rb
treequel-1.8.0 spec/treequel/control_spec.rb
treequel-1.7.2 spec/treequel/control_spec.rb
treequel-1.7.1 spec/treequel/control_spec.rb
treequel-1.7.0 spec/treequel/control_spec.rb
treequel-1.6.0 spec/treequel/control_spec.rb
treequel-1.5.3 spec/treequel/control_spec.rb
treequel-1.5.2 spec/treequel/control_spec.rb
treequel-1.5.1 spec/treequel/control_spec.rb