Sha256: 5c975c849a9920802aef05c17794ca2204562321837c510555aa2f23b98a1f3e
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
if ENV['COVERAGE'] require 'simplecov' SimpleCov.start end if ENV['TRAVIS'] && Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE == "ruby" require 'coveralls' Coveralls.wear! end require 'bundler/setup' Bundler.setup :test $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'algoliasearch' require 'rspec' require 'webmock/rspec' WebMock.disable! require 'algolia/webmock' raise "missing ALGOLIA_APPLICATION_ID or ALGOLIA_API_KEY environment variables" if ENV['ALGOLIA_APPLICATION_ID'].nil? || ENV['ALGOLIA_API_KEY'].nil? Algolia.init :application_id => ENV['ALGOLIA_APPLICATION_ID'], :api_key => ENV['ALGOLIA_API_KEY'] RSpec.configure do |c| c.mock_with :rspec end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
algoliasearch-1.19.1 | spec/spec_helper.rb |
algoliasearch-1.19.0 | spec/spec_helper.rb |
algoliasearch-1.18.5 | spec/spec_helper.rb |
algoliasearch-1.18.4 | spec/spec_helper.rb |