Sha256: 962574c90f557bbd43b6cd858ff2bbe3e8964291170a412aa42bf24839a4873e

Contents?: true

Size: 581 Bytes

Versions: 15

Compression:

Stored size: 581 Bytes

Contents

require "spec_helper"

describe BrDanfe::DanfeLib::Options do
  it "returns the default config set in the code" do
    options = BrDanfe::DanfeLib::Options.new
    expect(options.logo).to eq("")
    expect(options.logo_dimensions).to eq({})
  end

  it "returns the config set in params" do
    custom_options = { logo: "/fake/path/file.png", logo_dimensions: { width: 50, height: 50} }

    options = BrDanfe::DanfeLib::Options.new(custom_options)
    expect(options.logo).to eq("/fake/path/file.png")
    expect(options.logo_dimensions).to eq({ width: 50, height: 50})
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
br_danfe-0.11.1 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.11.0 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.10.1 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.10.0 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.8.0 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.7 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.6 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.5 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.4 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.3 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.2 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.1 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.7.0 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.6.1 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.6.0 spec/lib/danfe_lib/options_spec.rb