spec/bremen/mixcloud_spec.rb in bremen-0.1.2 vs spec/bremen/mixcloud_spec.rb in bremen-0.1.3

- old
+ new

@@ -22,17 +22,17 @@ describe '.search_url' do subject{ Bremen::Mixcloud.search_url(params) } describe 'only keyword' do let(:params){ {keyword: 'searchword'} } it 'generate' do - subject.must_equal 'http://api.mixcloud.com/search/?q=searchword&limit=20&type=cloudcast' + subject.must_equal 'http://api.mixcloud.com/search/?q=searchword&limit=20&offset=0&type=cloudcast' end end describe 'full params' do - let(:params){ {keyword: 'searchword', limit: 1} } + let(:params){ {keyword: 'searchword', limit: 10, page: 2} } it 'generate' do - subject.must_equal 'http://api.mixcloud.com/search/?q=searchword&limit=1&type=cloudcast' + subject.must_equal 'http://api.mixcloud.com/search/?q=searchword&limit=10&offset=10&type=cloudcast' end end end describe '.convert_singly' do