Removing dependency on ill-fated input_helpers.rb
parent
4d1661ac0b
commit
82a2538180
|
|
@ -28,8 +28,7 @@ module Squib
|
||||||
# @api public
|
# @api public
|
||||||
def set(opts = {})
|
def set(opts = {})
|
||||||
raise 'DEPRECATED: As of v0.7 img_dir is no longer supported in "set". Use config.yml instead.' if opts.key? :img_dir
|
raise 'DEPRECATED: As of v0.7 img_dir is no longer supported in "set". Use config.yml instead.' if opts.key? :img_dir
|
||||||
opts = needs(opts, [:font])
|
@font = (opts[:font] == :default) ? Squib::SYSTEM_DEFAULTS[:default_font] : opts[:font]
|
||||||
@font = opts[:font][0] #was expanded - just need the first
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'squib/args/box'
|
require 'squib/args/draw'
|
||||||
|
|
||||||
describe Squib::Args::Draw do
|
describe Squib::Args::Draw do
|
||||||
let(:custom_colors) { {'foo' => 'abc'} }
|
let(:custom_colors) { {'foo' => 'abc'} }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue