Sha256: 25a8dd957df59465cbe376a28cb356036a758719cffd813622eaa0cd0a15ff54

Contents?: true

Size: 1.19 KB

Versions: 22

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true
if ENV['CODECLIMATE_REPO_TOKEN']
  require 'codeclimate-test-reporter'
  CodeClimate::TestReporter.start
end

require 'bundler/setup'
Bundler.setup

require 'finapps'
require 'webmock/rspec'

# noinspection RubyResolve
require File.join(File.dirname(__dir__), 'spec/support/fake_api')

RSpec.configure do |config|
  config.expect_with(:rspec) do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
    expectations.syntax = :expect
  end
  config.mock_with(:rspec) {|mocks| mocks.verify_partial_doubles = true }
  # config.filter_run_including :focus => true
  config.default_formatter = 'doc' if config.files_to_run.one?
  config.order = :random
  config.example_status_persistence_file_path = 'spec/examples.txt'
  config.warnings = true
  Kernel.srand config.seed

  config.before(:each) do
    base_url = "#{FinApps::REST::Defaults::DEFAULTS[:host]}/v#{FinApps::REST::Defaults::API_VERSION}/"
    stub_request(:any, /#{base_url}/).to_rack(::FakeApi)
  end
  WebMock.disable_net_connect!(allow: 'codeclimate.com')
end

VALID_CREDENTIALS = {identifier: '49fb918d-7e71-44dd-7378-58f19606df2a',
                     token:      'hohoho='}.freeze

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
finapps-2.1.4 spec/spec_helper.rb
finapps-2.1.3 spec/spec_helper.rb
finapps-2.1.2 spec/spec_helper.rb
finapps-2.1.1 spec/spec_helper.rb
finapps-2.0.30 spec/spec_helper.rb
finapps-2.0.29 spec/spec_helper.rb
finapps-2.0.28 spec/spec_helper.rb
finapps-2.0.27 spec/spec_helper.rb
finapps-2.0.26 spec/spec_helper.rb
finapps-2.0.25 spec/spec_helper.rb
finapps-2.0.24 spec/spec_helper.rb
finapps-2.0.23 spec/spec_helper.rb
finapps-2.0.22 spec/spec_helper.rb
finapps-2.0.21 spec/spec_helper.rb
finapps-2.0.20 spec/spec_helper.rb
finapps-2.0.19 spec/spec_helper.rb
finapps-2.0.17 spec/spec_helper.rb
finapps-2.0.16 spec/spec_helper.rb
finapps-2.0.15 spec/spec_helper.rb
finapps-2.0.14 spec/spec_helper.rb