Sha256: 112600addfc2dfad827827b80584a62bdb20b7582e211ee87d5cfbe8bf4c2941
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require 'tmpdir' module FontProcessor module Specs class Fixture def initialize(kind) @kind = kind FileUtils.mkdir_p(temp_directory) FileUtils.cp(filepath, temp_directory) end def destroy FileUtils.rm_rf(temp_directory) end def naming_strategy FontProcessor::FontFileNamingStrategy.new(filename, temp_directory) end def temp_directory File.join(Dir.tmpdir, @kind.to_s) end protected def filename "#{@kind}.otf" end def filepath File.join(File.dirname(__FILE__), filename) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontprocessor-27.1.3 | spec/fixtures/fixtures.rb |