locomotivecms-search 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/locomotive/content_entry.rb +8 -0
- data/app/models/locomotive/page.rb +8 -0
- data/lib/locomotive/search/version.rb +1 -1
- data/spec/dummy/config/initializers/locomotive.rb +1 -1
- data/spec/dummy/log/test.log +1097 -0
- data/spec/features/algolia_spec.rb +2 -2
- data/spec/features/mongoid_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +1 -1
@@ -1,13 +1,13 @@
|
|
1
|
+
SEARCH_ENGINE = 'algolia'
|
1
2
|
require 'spec_helper'
|
2
3
|
|
3
4
|
describe "Algolia" do
|
4
5
|
before do
|
5
|
-
setup_search
|
6
6
|
config = YAML.load_file(Rails.root.join('config', 'backends.yml'))
|
7
7
|
require "activesearch/algolia/client"
|
8
8
|
ActiveSearch::Algolia::Client.configure(config["algolia"]["api_key"], config["algolia"]["app_id"], "locomotivecms")
|
9
9
|
ActiveSearch::Algolia::Client.new.delete_index
|
10
|
-
|
10
|
+
setup_search
|
11
11
|
end
|
12
12
|
|
13
13
|
it_behaves_like "a search backend"
|
data/spec/spec_helper.rb
CHANGED