Commit 13adfb3e authored by George Koltsov's avatar George Koltsov

Add bitbucket_server/client_spec.rb spec

parent 83cb2435
......@@ -58,6 +58,17 @@ describe BitbucketServer::Client do
subject.repos(page_offset: 10, limit: 25)
end
context 'when filter param is passed' do
let(:filter) { 'test' }
let(:expected_path) { "#{path}?name=#{filter}" }
it 'requests a collection with filter applied' do
expect(BitbucketServer::Paginator).to receive(:new).with(anything, expected_path, :repo, page_offset: 0, limit: nil)
subject.repos(filter: filter)
end
end
end
describe '#create_branch' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment