spec/commands/generator_spec.rb in softcover-0.5.0 vs spec/commands/generator_spec.rb in softcover-0.6.0

- old
+ new

@@ -5,11 +5,11 @@ context "generate PolyTeX in non-book directory" do before(:all) do chdir_to_non_book @name = 'foo_bar' - Softcover::Commands::Generator.generate_file_tree @name + Softcover::Commands::Generator.generate_file_tree @name, polytex: true end let(:name) { @name } before do @@ -140,11 +140,12 @@ context "generate simple book_base in non-book directory" do before(:all) do chdir_to_non_book @name = 'foo_bar' - Softcover::Commands::Generator.generate_file_tree @name, simple: true + Softcover::Commands::Generator.generate_file_tree @name, simple: true, + polytex: true end let(:name) { @name } before do @@ -194,11 +195,11 @@ context "generate Markdown book in non-book directory" do before(:all) do chdir_to_non_book @name = 'foo_bar' - Softcover::Commands::Generator.generate_file_tree @name, markdown: true + Softcover::Commands::Generator.generate_file_tree @name end let(:name) { @name } before do @@ -242,10 +243,12 @@ before do chdir_to_non_book $stdin.should_receive(:gets).and_return("a") silence do - 2.times { Softcover::Commands::Generator.generate_file_tree name } + 2.times do + Softcover::Commands::Generator.generate_file_tree name, polytex: true + end end end after do chdir_to_non_book