added the ability to do a delete_tree
This commit is contained in:
parent
6bb9fa6ae6
commit
463ac436a8
5 changed files with 81 additions and 2 deletions
14
spec/unit/ber/core_ext/array_spec.rb
Normal file
14
spec/unit/ber/core_ext/array_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue