lib/billfixers/partner/client.rb in billfixers-partner-0.1.0 vs lib/billfixers/partner/client.rb in billfixers-partner-0.1.1

- old
+ new

@@ -8,10 +8,10 @@ class Client def initialize(email:, token:, test_mode: false) endpoint = test_mode ? 'https://billfixers-staging.herokuapp.com/partner/graphql' : 'https://billfixers.herokuapp.com/partner/graphql' @gql = Graphlient::Client.new(endpoint, - schema_path: './partner_schema.json', + schema_path: File.join(File.dirname(__FILE__), '../../../partner_schema.json'), headers: { "X-PartnerUser-Email": email, "X-PartnerUser-Token": token }) end