Sha256: 431af4b1c5b7e56a65f027d37465da3fa7b644c3173034dadcee2f839d292565
Contents?: true
Size: 492 Bytes
Versions: 19
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true RSpec.shared_examples 'configuration metadata is' do |method| key = method.to_s.camelize(:lower).to_sym include_examples 'metadata type is hash', method it { expect(metadata.send(method)).to include(key) } end RSpec.shared_examples 'metadata type is hash' do |method| it { expect(metadata.send(method)).to be_kind_of Hash } end RSpec.shared_examples 'metadata type is array' do |method| it { expect(metadata.send(method)).to be_kind_of Array } end
Version data entries
19 entries across 19 versions & 1 rubygems