spec/rest/client_spec.rb in finapps-5.0.32 vs spec/rest/client_spec.rb in finapps-5.0.33

- old
+ new

@@ -1,17 +1,17 @@ # frozen_string_literal: true RSpec.describe FinApps::REST::Client do describe '#new' do it 'raises for missing company_token' do - expect { FinApps::REST::Client.new nil }.to raise_error( + expect { described_class.new nil }.to raise_error( FinAppsCore::MissingArgumentsError ) end end context 'an instance of Client' do - subject { FinApps::REST::Client.new(:company_token) } + subject { described_class.new(:company_token) } FinApps::REST::Client::RESOURCES.each do |method| it("responds to #{method}") { expect(subject).to respond_to(method) } it "memoizes the result of #{method}" do