Sha256: ef594ceb884981a786f9c34ab2d9e5743b44dd39169f74ad279efc2775173bb5

Contents?: true

Size: 1.06 KB

Versions: 29

Compression:

Stored size: 1.06 KB

Contents

require 'coveralls'
Coveralls::Output.silent = !ENV['CI']
Coveralls.wear!

require 'rubygems'
require 'bundler/setup'
require 'webmock/rspec'
require 'webmock_helpers'
require 'ostruct'

require 'json'
require 'softcover'
require 'softcover/utils'
require 'softcover/config'
require 'softcover/server/app'
require 'softcover/commands/publisher'
Softcover::Output.silence!

# Load support files.
Dir.glob(File.join(File.dirname(__FILE__), "./support/**/*.rb")).each do |f|
  require_relative(f)
end

RSpec.configure do |config|
  include Softcover::Utils
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end

  Softcover::set_test_mode!

  config.before do
    Softcover::set_test_mode!
    Softcover::Utils.reset_current_book!
    Softcover::Config.remove
    Softcover::BookConfig.remove
  end

  config.before(:each) do
    Softcover::Output.silence!
    Softcover::Commands::Server.no_listener = true
  end

  config.after do
    Softcover::Config.remove
    Softcover::BookConfig.remove
  end

  config.include WebmockHelpers
end

TEST_API_KEY = 'asdfasdfasdfasdfasdf'

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
softcover-0.9.20 spec/spec_helper.rb
softcover-0.9.19 spec/spec_helper.rb
softcover-0.9.18 spec/spec_helper.rb
softcover-0.9.17 spec/spec_helper.rb
softcover-0.9.16 spec/spec_helper.rb
softcover-0.9.15 spec/spec_helper.rb
softcover-0.9.13 spec/spec_helper.rb
softcover-0.9.12 spec/spec_helper.rb
softcover-0.9.11 spec/spec_helper.rb
softcover-0.9.10 spec/spec_helper.rb
softcover-0.9.9 spec/spec_helper.rb
softcover-0.9.8 spec/spec_helper.rb
softcover-0.9.7 spec/spec_helper.rb
softcover-0.9.6 spec/spec_helper.rb
softcover-0.9.5 spec/spec_helper.rb
softcover-0.9.4 spec/spec_helper.rb
softcover-0.9.3 spec/spec_helper.rb
softcover-0.9.2 spec/spec_helper.rb
softcover-0.9.1 spec/spec_helper.rb
softcover-0.9.0 spec/spec_helper.rb