fix spec
This commit is contained in:
parent
e465b3bbe4
commit
2112153b85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user