Sha256: 5aa0d4d844a7b8d1a719707b3041170637c82c341ba02926cadba20dbb9acb18
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
require 'rubygems' require 'bundler/setup' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'quebert' require 'spec' require 'spec/autorun' require 'logger' Spec::Runner.configure do |config| end include Quebert Quebert.config.logger = Logger.new('/dev/null') # Shhh... require 'jobs' def clean_file(path, contents=nil, &block) FileUtils.remove_entry(path) if File.exists?(path) FileUtils.mkdir_p(File.dirname(path)) begin File.open(path, 'w'){|f| f.write(contents == :empty ? nil : contents) } unless contents.nil? block.call ensure FileUtils.remove_entry(path) if File.exists?(path) and path != './' # Yeah! This has happened before :( end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quebert-0.0.4 | spec/spec_helper.rb |
quebert-0.0.3 | spec/spec_helper.rb |
quebert-0.0.1 | spec/spec_helper.rb |