spec/rest/plaid/plaid_webhooks_spec.rb in finapps-5.0.4 vs spec/rest/plaid/plaid_webhooks_spec.rb in finapps-5.0.5
- old
+ new
@@ -8,11 +8,11 @@
let(:api_client) { client }
subject(:create) { FinApps::REST::PlaidWebhooks.new(api_client).create }
describe '#create' do
RSpec.shared_examples 'an API request' do |_parameter|
- it { expect { create }.not_to raise_error }
- it('returns an array') { expect(create).to be_a(Array) }
+ it { expect { subject }.not_to raise_error }
+ it('returns an array') { expect(subject).to be_a(Array) }
end
context 'when valid tenant token is provided' do
it_behaves_like 'an API request'