VimUnDoi1c(%և[adw3"2 a_ V a Patch.configure do |config|0 config.access_token = ENV['SANDBOX_API_KEY'] end5_ V a:(RSpec.describe 'Projects Integration' do$ it 'supports retrieve and list' do page_limit = 1 next_page = 1 projects = []4 while !next_page.nil? && next_page <= page_limitT retrieve_projects_response = Patch::Project.retrieve_projects(page: next_page); next_page = retrieve_projects_response.meta.next_page1 projects += retrieve_projects_response.data end* expect(projects.length).not_to be_zero9 project_id = retrieve_projects_response.data.first.id # END receive_projectsK retrieve_project_response = Patch::Project.retrieve_project(project_id)> expect(retrieve_project_response.data.id).to eq project_id end% it 'supports filtering projects' do country = 'US'A projects = Patch::Project.retrieve_projects(country: country)" projects.data.map do |project|+ expect(project.country).to eq country end type = 'dac'; projects = Patch::Project.retrieve_projects(type: type)" projects.data.map do |project|% expect(project.type).to eq type end minimum_available_mass = 100_ projects = Patch::Project.retrieve_projects(minimum_available_mass: minimum_available_mass)" projects.data.map do |project|K expect(project.remaining_mass_g >= minimum_available_mass).to be true end end describe 'returned fields' do before doE @project = Patch::Project.retrieve_projects(page: 1).data.first end it 'returns photos' do9 expect(@project.photos).to be_an_instance_of(Array) end5 it 'returns average_price_per_tonne_cents_usd' doV expect(@project.average_price_per_tonne_cents_usd).to be_an_instance_of(Integer) end$ it 'returns remaining_mass_g' doE expect(@project.remaining_mass_g).to be_an_instance_of(Integer) end endend5_+ V a*,:E @project = Patch::Project.retrieve_projects(page: 1).data.first5_+ V a*+D project = Patch::Project.retrieve_projects(page: 1).data.first5_- V a-/9-.95_- V a,.: it 'returns photos' do5_* V a)* before do end5_ * V a)*5_ - V a,- end5_ - V a,-5 it 'returns average_price_per_tonne_cents_usd' do5_  ..0Va-. end$ it 'returns remaining_mass_g' do5_ , ..Va+-19 expect(@project.photos).to be_an_instance_of(Array)5_- ..Va,.1V expect(@project.average_price_per_tonne_cents_usd).to be_an_instance_of(Integer)5_. ..Va-/1E expect(@project.remaining_mass_g).to be_an_instance_of(Integer)5_+ ..Va+-15_ -0Va,.5_ Va15