Sha256: 20054e40e347592a72d16a1ed90961b12935be341c9b76b2fd032fd9ca116ad5
Contents?: true
Size: 866 Bytes
Versions: 1
Compression:
Stored size: 866 Bytes
Contents
require 'bundler/setup' require 'rspec' require 'webmock' require 'awesome_print' require 'swiftype-app-search' RSpec.shared_context "App Search Credentials" do let(:as_api_key) { ENV.fetch('AS_API_KEY', 'API_KEY') } let(:as_account_host_key) { ENV.fetch('AS_ACCOUNT_HOST_KEY', 'ACCOUNT_HOST_KEY') } let(:as_api_endpoint) { ENV.fetch('AS_API_ENDPOINT', nil) } let(:client_options) do { :api_key => as_api_key, :account_host_key => as_account_host_key }.tap do |opts| opts[:api_endpoint] = as_api_endpoint unless as_api_endpoint.nil? end end end RSpec.configure do |config| # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = "random" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swiftype-app-search-0.1.4 | spec/spec_helper.rb |