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.2.4 spec/builders/preview_spec.rb
softcover-1.2.3 spec/builders/preview_spec.rb
softcover-1.2.2 spec/builders/preview_spec.rb
softcover-1.2.1 spec/builders/preview_spec.rb
softcover-1.2.0 spec/builders/preview_spec.rb
softcover-1.1.28 spec/builders/preview_spec.rb
softcover-1.1.27 spec/builders/preview_spec.rb
softcover-1.1.23 spec/builders/preview_spec.rb
softcover-1.1.22 spec/builders/preview_spec.rb
softcover-1.1.21 spec/builders/preview_spec.rb
softcover-1.1.20 spec/builders/preview_spec.rb
softcover-1.1.19 spec/builders/preview_spec.rb
softcover-1.1.18 spec/builders/preview_spec.rb
softcover-1.1.17 spec/builders/preview_spec.rb
softcover-1.1.16 spec/builders/preview_spec.rb
softcover-1.1.15 spec/builders/preview_spec.rb
softcover-1.1.14 spec/builders/preview_spec.rb
softcover-1.1.13 spec/builders/preview_spec.rb
softcover-1.1.12 spec/builders/preview_spec.rb
softcover-1.1.11 spec/builders/preview_spec.rb