Sha256: b4c31a821451f91b7f5fc5ee95f57c7f0c25e86c8a170ce9e5ab89c5b9e07260

Contents?: true

Size: 799 Bytes

Versions: 3

Compression:

Stored size: 799 Bytes

Contents

require "codeclimate-test-reporter"
SimpleCov.start do
  formatter SimpleCov::Formatter::MultiFormatter[SimpleCov::Formatter::HTMLFormatter,CodeClimate::TestReporter::Formatter]
  add_filter "/support/responses"
end

require 'rspec'
require 'json'
require 'webmock/rspec'
require 'byebug'
require 'enceladus'
require 'factory_girl'
require 'faker'
require File.dirname(__FILE__) + "/support/api_resource"

RSpec.configure do |config|
  config.mock_with :rspec

  config.include FactoryGirl::Syntax::Methods
  FactoryGirl.find_definitions

  WebMock.disable_net_connect!(allow: "codeclimate.com")

  config.before do |example|
    Enceladus::Configuration::Api.instance.send(:api_key=, "token")

    unless example.metadata[:logger_test]
      Enceladus::Logger.logger_output = nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enceladus-0.0.6 spec/spec_helper.rb
enceladus-0.0.5 spec/spec_helper.rb
enceladus-0.0.4 spec/spec_helper.rb