spec/commands/generator_spec.rb in softcover-0.7.11 vs spec/commands/generator_spec.rb in softcover-0.8.0

- old
+ new

@@ -24,11 +24,11 @@ it "should copy files" do expect(Softcover::Commands::Generator.verify!).to be_true end describe "book.yml" do - subject(:yml) { YAML.load_file(File.join name, 'book.yml') } + subject(:yml) { YAML.load_file(File.join name, 'config', 'book.yml') } it "should have the right title" do expect(yml['title']).to eq "Title of the Book" end @@ -91,19 +91,25 @@ end describe "CSS" do let(:css_file) { 'html/stylesheets/softcover.css' } + let(:custom_css) { 'html/stylesheets/custom.css' } it "should have the right CSS file" do expect(css_file).to exist end + + it "should have a custom CSS file" do + expect(custom_css).to exist + end end describe "styles" do it "should have a right style file" do - expect('softcover.sty').to exist + style = File.join(Softcover::Directories::STYLES, 'softcover.sty') + expect(style).to exist end end shared_examples "a chapter" do it { should include('\chapter') }