Permalink
Browse files

added spec for paging AvailablePhoneNumber list results

  • Loading branch information...
1 parent 66445c7 commit 28f46e4082a54b36e4c8eb9a8c68fd8f6e284393 Matt Goldman committed Apr 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/twilio/available_phone_numbers_spec.rb
@@ -28,9 +28,9 @@
end
it "is searchable using multiple parameters" do
- response, url = stub_get(:available_phone_numbers_local_search, 'AvailablePhoneNumbers/US/Local?NearLatLong=37.806940%2C-122.270360&InRateCenter=OKLD0349T&NearNumber=15105551213&Distance=50&InRegion=CA&InLata=722&Contains=510555****')
+ response, url = stub_get(:available_phone_numbers_local_search, 'AvailablePhoneNumbers/US/Local?NearLatLong=37.806940%2C-122.270360&InRateCenter=OKLD0349T&NearNumber=15105551213&Distance=50&InRegion=CA&InLata=722&Contains=510555****&Page=2&PageSize=30')
- Twilio::AvailablePhoneNumbers.search_local(:in_region => 'CA', :contains => '510555****', :near_lat_long => '37.806940,-122.270360', :near_number => '15105551213', :in_lata => 722, :in_rate_center => 'OKLD0349T', :distance => 50).should == response
+ Twilio::AvailablePhoneNumbers.search_local(:in_region => 'CA', :contains => '510555****', :near_lat_long => '37.806940,-122.270360', :near_number => '15105551213', :in_lata => 722, :in_rate_center => 'OKLD0349T', :distance => 50, :page => 2, :page_size => 30).should == response
WebMock.should have_requested(:get, url)
end
end

0 comments on commit 28f46e4

Please sign in to comment.