Skip to content

Commit 6469e2f

Browse files
committed
Adding Verify2 brand length tests
1 parent 6719e10 commit 6469e2f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: test/vonage/verify2_test.rb

+16
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ def test_start_verification_method_without_brand
7777
end
7878
end
7979

80+
def test_start_verification_method_wit_brand_too_short
81+
workflow = [{channel: 'sms', to: to_number}]
82+
83+
assert_raises ArgumentError do
84+
verify2.start_verification(brand: '', workflow: workflow)
85+
end
86+
end
87+
88+
def test_start_verification_method_wit_brand_too_long
89+
workflow = [{channel: 'sms', to: to_number}]
90+
91+
assert_raises ArgumentError do
92+
verify2.start_verification(brand: 'abcdefghijklmnopq', workflow: workflow)
93+
end
94+
end
95+
8096
def test_start_verification_method_without_workflow
8197
assert_raises ArgumentError do
8298
verify2.start_verification(brand: brand)

0 commit comments

Comments
 (0)