Sha256: e7c8c05e7aa9e9fe2d130ccce71de241589a73dd9a138738255dcef2ba0a2683

Contents?: true

Size: 413 Bytes

Versions: 31

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

# Shared examples for Config class

RSpec.shared_examples 'constant is' do |type|
  it { expect(data).not_to be nil }
  it { expect(data).to be_kind_of(type) }
end

RSpec.shared_examples 'type and default value' do |type, value|
  it 'When type is correct' do
    expect(method).to be_a(type)
  end

  it 'When default value is correct' do
    expect(method).to eq(value)
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.387 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.385 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.384 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.382 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.366 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.364 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.358 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.354 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.352 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.0.pre.351 spec/support/examples_config.rb