Sha256: 3eb19015b17cbf88edbe521b8034a7d452b1a2c3e2a09155331baa02e39e5b27

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'

describe "Algolia" do
  before do
    setup_search
    config = YAML.load_file(Rails.root.join('config', 'backends.yml'))
    require "activesearch/algolia/client"
    ActiveSearch::Algolia::Client.configure(config["algolia"]["api_key"], config["algolia"]["app_id"], "locomotivecms")
    ActiveSearch::Algolia::Client.new.delete_index
    Locomotive.config.search_engine = "algolia"
  end
  
  it_behaves_like "a search backend"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms-search-0.0.4 spec/features/algolia_spec.rb