fixes based on comments for pull request

This commit is contained in:
Chris Dwan 2011-11-17 14:23:41 -08:00
parent 463ac436a8
commit b6b7985d6e
4 changed files with 30 additions and 13 deletions

View file

@ -11,4 +11,14 @@ describe Array, "when extended with BER core extensions" do
res = [['1.2.3', true],['1.7.9',false]].to_ber_control
res.should eq(control_codes)
end
it "should wrap the array in another array if a nested array is not passed" do
result1 = ['1.2.3', true].to_ber_control
result2 = [['1.2.3', true]].to_ber_control
result1.should eq(result2)
end
it "should return an empty string if an empty array is passed" do
[].to_ber_control.should be_empty
end
end