Sha256: f380a8a29eb4bf731f5a909276c4fa58f16dbbde9759a9c64e632f4a43449f08

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 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_path).to eq("")
  end

  it "returns the config set in params" do
    options = BrDanfe::DanfeLib::Options.new({"logo_path" => "/fake/path/file.png"})
    expect(options.logo_path).to eq("/fake/path/file.png")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
br_danfe-0.2.3 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.2.2 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.2.1 spec/lib/danfe_lib/options_spec.rb
br_danfe-0.2.0 spec/lib/danfe_lib/options_spec.rb