spec/webmock_helpers.rb in softcover-1.0.beta12 vs spec/webmock_helpers.rb in softcover-1.0.beta13
- old
+ new
@@ -193,10 +193,11 @@
File.mkdir 'html' unless File.exist?('html')
File.write(File.join('html', 'chapter-1.html'), 'test')
File.write(File.join('html', 'chapter-1_fragment.html'), 'test')
File.write(File.join('html', 'test_fragment.html'), 'test')
File.write(File.join('html', "#{name}.html"), 'test')
- File.mkdir 'ebooks' unless File.exist?('ebooks')
+ mkdir path('html/images')
+ mkdir 'ebooks'
Softcover::FORMATS.each do |format|
dir = format == 'html' ? 'html' : 'ebooks'
File.write(File.join(dir, "test-book.#{format}"), 'test')
end
Dir.mkdir("screencasts") unless File.directory?("screencasts")