Skip to content

Commit b5d5d35

Browse files
committed
unit test
1 parent 22ba53f commit b5d5d35

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spec/unit/models/status_callback_type_enum_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_SENDING).to eq('message-sending')
66
end
77

8+
it 'defines MESSAGE_SENT' do
9+
expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_SENT).to eq('message-sent')
10+
end
11+
812
it 'defines MESSAGE_DELIVERED' do
913
expect(Bandwidth::StatusCallbackTypeEnum::MESSAGE_DELIVERED).to eq('message-delivered')
1014
end
@@ -22,6 +26,7 @@
2226
it 'returns every valid enum value' do
2327
expect(Bandwidth::StatusCallbackTypeEnum.all_vars).to eq([
2428
'message-sending',
29+
'message-sent',
2530
'message-delivered',
2631
'message-failed',
2732
'message-read'
@@ -32,6 +37,7 @@
3237
describe '.build_from_hash' do
3338
it 'returns the value when it matches a valid enum value' do
3439
expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-sending')).to eq('message-sending')
40+
expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-sent')).to eq('message-sent')
3541
expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-delivered')).to eq('message-delivered')
3642
expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-failed')).to eq('message-failed')
3743
expect(Bandwidth::StatusCallbackTypeEnum.build_from_hash('message-read')).to eq('message-read')

0 commit comments

Comments
 (0)