Sha256: 0dda638afcf4748376037c39e15636b840b899e1fca2195a7c75d9ccbaeff8f6

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

require "spec_helper"

describe BrDanfe::Options do
  it "should return default config set in code" do
    options = BrDanfe::Options.new
    expect(options.logo_path).to eq("")
  end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
br_danfe-0.0.8 spec/lib/options_spec.rb
br_danfe-0.0.7 spec/lib/options_spec.rb
br_danfe-0.0.6 spec/lib/options_spec.rb
br_danfe-0.0.5 spec/lib/options_spec.rb
br_danfe-0.0.4 spec/lib/options_spec.rb
br_danfe-0.0.3 spec/lib/options_spec.rb
br_danfe-0.0.2 spec/lib/options_spec.rb
br_danfe-0.0.1 spec/lib/options_spec.rb