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-4.0.1 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265973744 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265506307 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.1.pre.1265140558 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001345090 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001181479 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001132533 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001107243 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.1001043172 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.949167646 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.946892338 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.946565704 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.939149205 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.939137013 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.939133437 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.939119110 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.939113634 spec/support/examples_config.rb
ruby_rabbitmq_janus-4.0.0.pre.850041590 spec/support/examples_config.rb
ruby_rabbitmq_janus-3.0.1 spec/support/examples_config.rb