Sha256: a2569332187f82d787816069b500c940b2457cf21d3080405c4842ddece19bc1

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

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

require 'webmock_helpers'

# require 'simplecov'
# SimpleCov.start

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

11 entries across 11 versions & 1 rubygems

Version Path
softcover-0.6.10 spec/spec_helper.rb
softcover-0.6.9 spec/spec_helper.rb
softcover-0.6.7 spec/spec_helper.rb
softcover-0.6.6 spec/spec_helper.rb
softcover-0.6.5 spec/spec_helper.rb
softcover-0.6.4 spec/spec_helper.rb
softcover-0.6.3 spec/spec_helper.rb
softcover-0.6.2 spec/spec_helper.rb
softcover-0.6.1 spec/spec_helper.rb
softcover-0.6.0 spec/spec_helper.rb
softcover-0.5.0 spec/spec_helper.rb