Sha256: b8e0705d17aadb62139bf2602fb09cc76ed9eb75082aeb2b6831d6a6673bc5a0

Contents?: true

Size: 587 Bytes

Versions: 133

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

describe Softcover::Builders::Preview do

  before(:all) do
    generate_book
    @builder = Softcover::Builders::Preview.new
    @builder.build!
    chdir_to_book
  end
  after(:all) { remove_book }

  describe "#build!" do

    it "should build a PDF" do
      expect('ebooks/book-preview.pdf').to exist
    end

    context "EPUB & MOBI books" do
      it "should build an EPUB" do
        expect('ebooks/book-preview.epub').to exist
      end

      it "should build an EPUB" do
        expect('ebooks/book-preview.mobi').to exist
      end
    end
  end
end

Version data entries

133 entries across 133 versions & 2 rubygems

Version Path
softcover-1.10.4 spec/builders/preview_spec.rb
softcover-1.10.3 spec/builders/preview_spec.rb
softcover-1.10.2 spec/builders/preview_spec.rb
softcover-1.10.1 spec/builders/preview_spec.rb
softcover-1.10.0 spec/builders/preview_spec.rb
softcover-1.9.1 spec/builders/preview_spec.rb
softcover-1.9.0 spec/builders/preview_spec.rb
softcover-1.8.3 spec/builders/preview_spec.rb
softcover-1.8.2 spec/builders/preview_spec.rb
softcover-1.8.1 spec/builders/preview_spec.rb
softcover-1.8.0 spec/builders/preview_spec.rb
softcover-1.7.5 spec/builders/preview_spec.rb
softcover-1.7.4 spec/builders/preview_spec.rb
softcover-1.7.3 spec/builders/preview_spec.rb
softcover-1.7.2 spec/builders/preview_spec.rb
softcover-1.7.1 spec/builders/preview_spec.rb
softcover-1.7.0 spec/builders/preview_spec.rb
softcover-1.6.5 spec/builders/preview_spec.rb
softcover-1.6.4 spec/builders/preview_spec.rb
softcover-1.6.3 spec/builders/preview_spec.rb