Sha256: afa24657bebe51819f41bea36a3ce3ba3c0affed81bd162e9ead2d69b54cf242

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

require 'simplecov'
require 'coveralls'
require 'dotenv'

Dotenv.load('.env.test')

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
])
SimpleCov.start

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'nexaas_id'

require 'vcr'
require 'pry'
require 'webmock/rspec'
require 'support/authorization'

VCR.configure do |c|
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
  c.hook_into :webmock
  c.ignore_localhost = true
  c.default_cassette_options = { record: :new_episodes }
  c.configure_rspec_metadata!
end

RSpec.configure do |c|
  c.mock_with :rspec
  c.example_status_persistence_file_path = '.rspec_persistence'
  c.include Authorization

  c.before do
    NexaasID.configure do |config|
      # https://sandbox.id.nexaas.com/applications/89e9d504-e2a8-476e-ac94-c33e68399c7e
      # Test application - luiz.buiatte+pw.api.test@nexaas.com
      config.url = ENV['NEXAAS_ID_URL']
      config.application_token = ENV['APPLICATION_TOKEN']
      config.application_secret = ENV['APPLICATION_SECRET']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nexaas_id-client-0.6.0 spec/spec_helper.rb
nexaas_id-client-0.5.0 spec/spec_helper.rb