spec/features/algolia_spec.rb in locomotivecms-search-0.0.3 vs spec/features/algolia_spec.rb in locomotivecms-search-0.0.4
- old
+ new
@@ -1,10 +1,9 @@
require 'spec_helper'
describe "Algolia" do
before do
setup_search
- require "activesearch/algolia"
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"
\ No newline at end of file