Sha256: fb1453c1d0a5048abfbe77b0d867e2381e7a00a014768b97d4d40071a7f85652

Contents?: true

Size: 1.03 KB

Versions: 13

Compression:

Stored size: 1.03 KB

Contents

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

# 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

13 entries across 13 versions & 1 rubygems

Version Path
softcover-0.8.0 spec/spec_helper.rb
softcover-0.7.11 spec/spec_helper.rb
softcover-0.7.10 spec/spec_helper.rb
softcover-0.7.9 spec/spec_helper.rb
softcover-0.7.8 spec/spec_helper.rb
softcover-0.7.7 spec/spec_helper.rb
softcover-0.7.6 spec/spec_helper.rb
softcover-0.7.5 spec/spec_helper.rb
softcover-0.7.4 spec/spec_helper.rb
softcover-0.7.3 spec/spec_helper.rb
softcover-0.7.2 spec/spec_helper.rb
softcover-0.7.1 spec/spec_helper.rb
softcover-0.7.0 spec/spec_helper.rb