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

Version Path
swagger_docs_generator-0.5.1 spec/support/examples/metadata.rb
swagger_docs_generator-0.5.0.pre.42 spec/support/examples/metadata.rb
swagger_docs_generator-0.4.0 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.6 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.6.pre.34 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.5 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.5.pre.31 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.4.pre.26 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.4 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.4.pre.23 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.3 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.2 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.1 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.0.pre.19 spec/support/examples/metadata.rb
swagger_docs_generator-0.3.0.pre.18 spec/support/examples/metadata.rb
swagger_docs_generator-0.2.0 spec/support/examples/metadata.rb
swagger_docs_generator-0.2.0.pre.14 spec/support/examples/metadata.rb
swagger_docs_generator-0.2.0.pre.13 spec/support/examples/metadata.rb
swagger_docs_generator-0.2.0.pre.12 spec/support/examples/metadata.rb