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