1509aa8ef6
Some code has been removed. Version control is not synonymous with code storage - if you're not using it now, you probably don't have working tests and the code will be buggy anyway. Write it when you need it.
18 lines
No EOL
379 B
Ruby
18 lines
No EOL
379 B
Ruby
require 'spec_helper'
|
|
|
|
require 'net/ber'
|
|
require 'net/ldap'
|
|
|
|
describe "Ber encoding of various types" do
|
|
def properly_encode_and_decode
|
|
simple_matcher('properly encode and decode') do |given|
|
|
given.to_ber.read_ber.should == given
|
|
end
|
|
end
|
|
|
|
context "array" do
|
|
it "should properly encode []" do
|
|
[].should properly_encode_and_decode
|
|
end
|
|
end
|
|
end |