Sha256: ec3153568d361f0240f02c7149330199b4c3d2be2e3151fadcf05322c46cf9d7
Contents?: true
Size: 595 Bytes
Versions: 23
Compression:
Stored size: 595 Bytes
Contents
require 'spec_helper' describe BrDanfe::Logo::Config do let(:options) { {} } subject { described_class.new options } it 'returns the default config set in the code' do expect(subject.logo).to eq('') expect(subject.logo_dimensions).to eq({}) end context 'when there are custom options' do let(:options) { { logo: '/fake/path/file.png', logo_dimensions: { width: 50, height: 50 } } } it 'returns the config set in params' do expect(subject.logo).to eq('/fake/path/file.png') expect(subject.logo_dimensions).to eq(width: 50, height: 50) end end end
Version data entries
23 entries across 23 versions & 1 rubygems