Sha256: 6c12416340e163bc9c171c7eb047acca5f2e718726e51b05604678d3e7cc7df0
Contents?: true
Size: 621 Bytes
Versions: 7
Compression:
Stored size: 621 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "/../lib")) require 'sprite' require 'bundler/setup' require 'date' require 'fileutils' # set Sprite.root to be this spec/ folder Sprite.module_eval{ @root = File.dirname(__FILE__) } FileUtils.rm_rf("#{Sprite.root}/output") RSpec.configure do |c| module SpriteSpecHelpers def clear_output FileUtils.rm_rf("#{Sprite.root}/output") end end c.include(SpriteSpecHelpers) # setup fixtures path c.before(:all) do end # returns the file path of a fixture setting file def config_path(filename) @fixture_path.join(filename) end end
Version data entries
7 entries across 7 versions & 1 rubygems