Sha256: d46a36c26ce6bdc0e6f5e82a2c591e326bfe8abd96fe83a5cca3f7189a9f7673
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true require "simplecov" SimpleCov.start do add_filter "spec" end require "bundler/setup" require "kitabu" require "pathname" SPECDIR = Pathname.new(File.dirname(__FILE__)) TMPDIR = SPECDIR.join("tmp") Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|r| require r } p [ :filter_env, { calibre: Kitabu::Dependency.calibre?, prince: Kitabu::Dependency.prince?, macos: Kitabu::Dependency.macos?, linux: Kitabu::Dependency.linux? } ] # Disable the bundle install command. # TODO: Figure out the best way of doing it so. module Kitabu class Generator < Thor::Group def bundle_install end end end RSpec.configure do |config| config.include(SpecHelper) config.include(Matchers) config.filter_run_excluding( calibre: false, prince: false, osx: false, linux: false ) cleaner = proc do [TMPDIR].each do |i| FileUtils.rm_rf(i) if File.exist?(i) end Dir.chdir File.expand_path("..", __dir__) end config.before(&cleaner) config.after(&cleaner) config.before { FileUtils.mkdir_p(TMPDIR) } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kitabu-3.0.2 | spec/spec_helper.rb |
kitabu-3.0.1 | spec/spec_helper.rb |
kitabu-3.0.0 | spec/spec_helper.rb |