Skip to content

Commit

Permalink
Ensure api_error is loaded in api_client
Browse files Browse the repository at this point in the history
Require default gems for test suite
Fix `MiniTest` namespace issue
  • Loading branch information
Maimer committed Feb 20, 2024
1 parent c9a2a78 commit 5286788
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/plaid/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
require 'tempfile'
require 'faraday'
require 'faraday/multipart'
require_relative 'api_error'

module Plaid
class ApiClient
Expand Down
15 changes: 12 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
require 'bundler'

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
warn e.message
warn 'Run `bundle install` to install missing gems'
exit e.status_code
end

require "plaid"
require "minitest/autorun"
require "minitest/around/unit"
require "json"

require_relative "../lib/plaid"

# Internal: Default read timeout for HTTP calls in seconds.
NETWORK_TIMEOUT = 600

class PlaidTest < MiniTest::Test
class PlaidTest < Minitest::Test
attr_reader :client, :item, :access_token

def create_client
Expand Down

0 comments on commit 5286788

Please sign in to comment.