Sha256: 0e1dba5f73bddc52a24ef48c074b7f5a2a910cb0fcb7a3d9a70b572e9aefbda0

Contents?: true

Size: 741 Bytes

Versions: 44

Compression:

Stored size: 741 Bytes

Contents

require 'rubygems'
require 'bundler'

Bundler.setup :test

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'algoliasearch-rails'
require 'rspec'
require 'rails/all'

raise "missing ALGOLIA_APPLICATION_ID or ALGOLIA_API_KEY environment variables" if ENV['ALGOLIA_APPLICATION_ID'].nil? || ENV['ALGOLIA_API_KEY'].nil?

Thread.current[:algolia_hosts] = nil

RSpec.configure do |c|
  c.mock_with :rspec
  c.filter_run :focus => true
  c.run_all_when_everything_filtered = true
end

# avoid concurrent access to the same index
def safe_index_name(name)
  return name if ENV['TRAVIS'].to_s != "true"
  id = ENV['TRAVIS_JOB_NUMBER'].split('.').last
  "#{name}_travis-#{id}"
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
algoliasearch-rails-1.11.11 spec/spec_helper.rb
algoliasearch-rails-1.11.10 spec/spec_helper.rb
algoliasearch-rails-1.11.9 spec/spec_helper.rb
algoliasearch-rails-1.11.8 spec/spec_helper.rb
algoliasearch-rails-1.11.7 spec/spec_helper.rb
algoliasearch-rails-1.11.6 spec/spec_helper.rb
algoliasearch-rails-1.11.5 spec/spec_helper.rb
algoliasearch-rails-1.11.4 spec/spec_helper.rb
algoliasearch-rails-1.11.3 spec/spec_helper.rb
algoliasearch-rails-1.11.2 spec/spec_helper.rb
algoliasearch-rails-1.11.1 spec/spec_helper.rb
algoliasearch-rails-1.11.0 spec/spec_helper.rb
algoliasearch-rails-1.10.9 spec/spec_helper.rb
algoliasearch-rails-1.10.8 spec/spec_helper.rb
algoliasearch-rails-1.10.7 spec/spec_helper.rb
algoliasearch-rails-1.10.6 spec/spec_helper.rb
algoliasearch-rails-1.10.4 spec/spec_helper.rb
algoliasearch-rails-1.10.3 spec/spec_helper.rb
algoliasearch-rails-1.10.2 spec/spec_helper.rb
algoliasearch-rails-1.10.1 spec/spec_helper.rb