Skip to content

Commit d33a62a

Browse files
committed
VAPI-3162-REFER
1 parent 539a192 commit d33a62a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spec/unit/models/refer_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
}.to raise_error(ArgumentError)
3636
end
3737

38+
it 'rejects a tag exceeding 256 characters' do
39+
expect {
40+
Bandwidth::Refer.new(sip_uri: sip_uri, tag: 'x' * 257)
41+
}.to raise_error(ArgumentError)
42+
end
43+
3844
it 'builds from hash' do
3945
model = Bandwidth::Refer.build_from_hash({
4046
referCompleteUrl: 'https://example.com/referComplete',

0 commit comments

Comments
 (0)