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