added the ability to do a delete_tree

This commit is contained in:
Chris Dwan 2011-11-16 16:36:39 -08:00
parent 6bb9fa6ae6
commit 463ac436a8
5 changed files with 81 additions and 2 deletions

View file

@ -0,0 +1,14 @@
require 'spec_helper'
require 'metaid'
describe Array, "when extended with BER core extensions" do
it "should correctly convert a control code array" do
control_codes = []
control_codes << ['1.2.3'.to_ber, true.to_ber].to_ber_sequence
control_codes << ['1.7.9'.to_ber, false.to_ber].to_ber_sequence
control_codes = control_codes.to_ber_sequence
res = [['1.2.3', true],['1.7.9',false]].to_ber_control
res.should eq(control_codes)
end
end