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