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

Version Path
br_danfe-0.19.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.18.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.8 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.7 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.6 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.5 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.4 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.3 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.2 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.1 spec/br_danfe/logo_config_spec.rb
br_danfe-0.17.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.16.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.15.1 spec/br_danfe/logo_config_spec.rb
br_danfe-0.15.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.14.5 spec/br_danfe/logo_config_spec.rb
br_danfe-0.14.4 spec/br_danfe/logo_config_spec.rb
br_danfe-0.14.3 spec/br_danfe/logo_config_spec.rb
br_danfe-0.14.2 spec/br_danfe/logo_config_spec.rb
br_danfe-0.14.0 spec/br_danfe/logo_config_spec.rb
br_danfe-0.13.3 spec/br_danfe/logo_config_spec.rb