Sha256: 6a82e7f6d8bf719de57a34ce7515103512731db008095e0c3548958ae5b23d34

Contents?: true

Size: 424 Bytes

Versions: 22

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples 'an API request' do |_parameter|
  it do
    expect do
      # noinspection RubyBlockToMethodReference
      subject
    end.not_to raise_error
  end
  it('returns an array') { expect(subject).to be_a(Array) }
end

RSpec.shared_examples 'a successful request' do |_parameter|
  it('returns no error messages') do
    expect(subject[ERROR_MESSAGES]).to be_empty
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
finapps-5.0.32 spec/rest/api_request.rb
finapps-5.0.31 spec/rest/api_request.rb
finapps-5.0.30 spec/rest/api_request.rb
finapps-5.0.29 spec/rest/api_request.rb
finapps-5.0.28 spec/rest/api_request.rb
finapps-5.0.27 spec/rest/api_request.rb
finapps-5.0.26 spec/rest/api_request.rb
finapps-5.0.25 spec/rest/api_request.rb
finapps-5.0.24 spec/rest/api_request.rb
finapps-5.0.23 spec/rest/api_request.rb
finapps-5.0.22 spec/rest/api_request.rb
finapps-5.0.21 spec/rest/api_request.rb
finapps-5.0.20 spec/rest/api_request.rb
finapps-5.0.19 spec/rest/api_request.rb
finapps-5.0.17 spec/rest/api_request.rb
finapps-5.0.16 spec/rest/api_request.rb
finapps-5.0.15 spec/rest/api_request.rb
finapps-5.0.14 spec/rest/api_request.rb
finapps-5.0.13 spec/rest/api_request.rb
finapps-5.0.12 spec/rest/api_request.rb