Sha256: bbe8729eb1ffbb231842de43a43248d6056a4ddf16a513ffe611a2b6db7ede28
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true require 'simplecov' require 'codecov' SimpleCov.start SimpleCov.formatter = SimpleCov::Formatter::Codecov require 'webmock/rspec' require 'crowdin-api' RSpec.shared_context 'crowdin_client_options' do let(:api_token) { 'api_token' } let(:project_id) { 1 } let(:organization_domain) { 'domain' } let(:full_organization_domain) { 'domain.com' } let(:target_api_url) { 'api/v2' } end RSpec.configure do |config| config.include_context 'crowdin_client_options' config.before(:each) do |spec| @crowdin = if spec.metadata[:enterprise] Crowdin::Client.new { |cfg| cfg.organization_domain = organization_domain } else # default Crowdin::Client.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
crowdin-api-1.7.0 | spec/spec_helper.rb |
crowdin-api-1.6.0 | spec/spec_helper.rb |
crowdin-api-1.5.0 | spec/spec_helper.rb |
crowdin-api-1.4.0 | spec/spec_helper.rb |