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.1.10 spec/builders/preview_spec.rb
softcover-1.1.9 spec/builders/preview_spec.rb
softcover-1.1.8 spec/builders/preview_spec.rb
softcover-1.1.7 spec/builders/preview_spec.rb
softcover-1.1.6 spec/builders/preview_spec.rb
softcover-1.1.4 spec/builders/preview_spec.rb
softcover-1.1.3 spec/builders/preview_spec.rb
softcover-1.1.2 spec/builders/preview_spec.rb
softcover-1.1.1 spec/builders/preview_spec.rb
softcover-1.1.0 spec/builders/preview_spec.rb
softcover-1.1.beta2 spec/builders/preview_spec.rb
softcover-1.0.5 spec/builders/preview_spec.rb
softcover-1.1.beta1 spec/builders/preview_spec.rb
softcover-1.0.4 spec/builders/preview_spec.rb
softcover-1.0.3 spec/builders/preview_spec.rb
softcover-1.0.2 spec/builders/preview_spec.rb
softcover-1.0.1 spec/builders/preview_spec.rb
softcover-1.0.0 spec/builders/preview_spec.rb
softcover-1.0.beta17 spec/builders/preview_spec.rb
softcover-1.0.beta16 spec/builders/preview_spec.rb