spec/webmock_helpers.rb in softcover-1.0.5 vs spec/webmock_helpers.rb in softcover-1.1.beta1

- old
+ new

@@ -185,12 +185,13 @@ # directory with a stub file. def generate_book(options = {}) name = options[:name] || 'book' source = options[:source] || :polytex remove_book - Dir.chdir File.join File.dirname(__FILE__), "fixtures/" + Dir.chdir File.join(File.dirname(__FILE__), "fixtures/") flags = [] flags << '-p' unless options[:markdown] + flags << '-a' if options[:article] silence { system "softcover new #{name} #{flags.join(' ')}" } chdir_to_book 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')