Skip to content

Commit

Permalink
use custom ptime stubbing method everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 25, 2024
1 parent cce291b commit d3bb9c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/domain/ptime/assign_employee_ids_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
parsed_employees_json[:data].second[:attributes][:firstname] = "Melchior"


stub_request(:get, "#{ENV["PTIME_BASE_URL"]}/api/v1/employees?per_page=1000").
to_return(body: parsed_employees_json.to_json, headers: { 'content-type': "application/vnd.api+json; charset=utf-8" }, status: 200)
.with(basic_auth: [ENV["PTIME_API_USERNAME"], ENV["PTIME_API_PASSWORD"]])
stub_ptime_request(parsed_employees_json.to_json)

person_longmax = people(:longmax)
person_alice = people(:alice)
Expand Down

0 comments on commit d3bb9c3

Please sign in to comment.