spec/cli_spec.rb in softcover-1.7.0 vs spec/cli_spec.rb in softcover-1.7.1
- old
+ new
@@ -46,11 +46,11 @@
it { should include '-a, [--amazon]' }
end
context "softcover new options" do
subject { `softcover help new` }
- it { should include '-p, [--polytex]' }
+ it { should include '-p, --latex, -l, [--polytex]' }
it { should include '-a, [--article]' }
end
context "softcover new" do
before(:all) { chdir_to_fixtures }
@@ -146,9 +146,22 @@
before(:all) do
remove_book
chdir_to_fixtures
silence { `softcover new book --polytex` }
+ chdir_to_book
+ end
+ after(:all) { remove_book }
+
+ it_should_behave_like "book"
+ end
+
+ describe "LaTeX books" do
+
+ before(:all) do
+ remove_book
+ chdir_to_fixtures
+ silence { `softcover new book --latex` }
chdir_to_book
end
after(:all) { remove_book }
it_should_behave_like "book"