Sha256: 908316877d79bec35296357dc56253179421a9bf5c305968b0c0c17a40adcd26
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
RSpec.describe 'Projects Integration' do Patch.configure do |config| config.access_token = ENV['PATCH_RUBY_API_KEY'] end it 'supports retrieve and list' do page_limit = 1 next_page = 1 projects = [] while !next_page.nil? && next_page <= page_limit retrieve_projects_response = Patch::Project.retrieve_projects(page: next_page) next_page = retrieve_projects_response.meta.next_page projects += retrieve_projects_response.data end expect(projects.length).not_to be_zero project_id = retrieve_projects_response.data.first.id # END receive_projects retrieve_project_response = Patch::Project.retrieve_project(project_id) expect(retrieve_project_response.data.id).to eq project_id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
patch_ruby-1.1.0 | spec/integration/projects_spec.rb |
patch_ruby-1.0.0 | spec/integration/projects_spec.rb |