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.16.0 spec/spec_helper.rb
algoliasearch-rails-1.15.1 spec/spec_helper.rb
algoliasearch-rails-1.15.0 spec/spec_helper.rb
algoliasearch-rails-1.14.1 spec/spec_helper.rb
algoliasearch-rails-1.14.0 spec/spec_helper.rb
algoliasearch-rails-1.13.4 spec/spec_helper.rb
algoliasearch-rails-1.13.3 spec/spec_helper.rb
algoliasearch-rails-1.13.2 spec/spec_helper.rb
algoliasearch-rails-1.13.1 spec/spec_helper.rb
algoliasearch-rails-1.13.0 spec/spec_helper.rb
algoliasearch-rails-1.12.2 spec/spec_helper.rb
algoliasearch-rails-1.12.1 spec/spec_helper.rb
algoliasearch-rails-1.12.0 spec/spec_helper.rb
algoliasearch-rails-1.11.18 spec/spec_helper.rb
algoliasearch-rails-1.11.17 spec/spec_helper.rb
algoliasearch-rails-1.11.16 spec/spec_helper.rb
algoliasearch-rails-1.11.15 spec/spec_helper.rb
algoliasearch-rails-1.11.14 spec/spec_helper.rb
algoliasearch-rails-1.11.13 spec/spec_helper.rb
algoliasearch-rails-1.11.12 spec/spec_helper.rb