This commit is contained in:
John Bintz 2012-04-18 15:49:08 -04:00
parent e465b3bbe4
commit 2112153b85

View File

@ -10,6 +10,8 @@ describe Penchant::Gemfile do
let(:gemfile_erb_path) { File.join(dir, 'Gemfile.erb') }
def write_file(path, content = nil)
FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'wb') do |fh|
content = yield if block_given?
fh.print content