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.0.beta15 spec/builders/preview_spec.rb
softcover-1.0.beta14 spec/builders/preview_spec.rb
softcover-1.0.beta13 spec/builders/preview_spec.rb
softcover-1.0.beta12 spec/builders/preview_spec.rb
softcover-1.0.beta11 spec/builders/preview_spec.rb
softcover-1.0.beta10 spec/builders/preview_spec.rb
softcover-1.0.beta9 spec/builders/preview_spec.rb
softcover-1.0.beta8 spec/builders/preview_spec.rb
softcover-1.0.beta7 spec/builders/preview_spec.rb
softcover-1.0.beta6 spec/builders/preview_spec.rb
softcover-1.0.beta5 spec/builders/preview_spec.rb
softcover-1.0.beta4 spec/builders/preview_spec.rb
softcover-1.0.beta3 spec/builders/preview_spec.rb
softcover-nonstop-1.0.beta2 spec/builders/preview_spec.rb
softcover-1.0.beta2 spec/builders/preview_spec.rb
softcover-1.0.beta1 spec/builders/preview_spec.rb
softcover-0.9.23 spec/builders/preview_spec.rb
softcover-0.9.22 spec/builders/preview_spec.rb
softcover-0.9.21 spec/builders/preview_spec.rb
softcover-0.9.20 spec/builders/preview_spec.rb