Skip to content

Commit bea7298

Browse files
author
marcel corso
committed
add a test to try to catch a camelCase to underscore problem
1 parent eee3078 commit bea7298

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

spec/call_flow_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,24 @@
8989
createdAt: '2019-11-07T12:37:59Z',
9090
updatedAt: '2019-11-07T12:37:59Z'
9191
}
92-
]
92+
],
93+
perPage: 2,
94+
currentPage: 1,
95+
totalCount: 111
9396
}
9497

9598
expect(voice_client)
9699
.to receive(:request)
97100
.with(:get, 'call-flows?perPage=2&page=1', {})
98101
.and_return(mock_data.to_json)
102+
99103
list = client.call_flow_list(2, 1)
100104

101105
expect(list.items.count).to eq 2
102106
expect(list.items[0].id).to eq 'cfid-0000'
107+
expect(list.per_page).to eq 2
108+
expect(list.current_page).to eq 1
109+
expect(list.total_count).to eq 111
103110
end
104111

105112
it 'view a call flow' do

0 commit comments

Comments
 (0)