Sha256: d331747ad998d6e1410f91dd94b2cb501de1b3cca21ef4307f975d0bf645b65a

Contents?: true

Size: 858 Bytes

Versions: 1

Compression:

Stored size: 858 Bytes

Contents

require "bundler/setup"

require 'coveralls'
Coveralls.wear!

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.start
end

require 'pry'
require 'dotenv'

if ENV["NO_WEBMOCK"] != "1"
  require 'webmock/rspec'
  WebMock.disable_net_connect!(allow_localhost: false)
end

Dotenv.load

ENV["DATABOX_MODE"]   = "test"
ENV["DATABOX_KEY"]    ||= "8s0igg41718gos00wwc40gkokwcowk84"
ENV["DATABOX_TOKEN"]  ||= "zqa9z737mxw4ck84"

require "databox"

def request_from file
  file = "#{file}.txt" unless file =~ /\.txt$/
  File.new("./spec/requests/#{file}")
end

RSpec.configure do |config|
  config.fail_fast = ENV['RSPEC_FAIL_FAST'] == "1"
  config.mock_framework = :rspec # :mocha
  config.run_all_when_everything_filtered = true
  config.treat_symbols_as_metadata_keys_with_true_values = true

  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
databox-0.0.3 spec/spec_helper.rb