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.
@@ -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
- Locomotive.config.search_engine = "algolia"
10
+ setup_search
11
11
  end
12
12
 
13
13
  it_behaves_like "a search backend"
@@ -1,9 +1,9 @@
1
+ SEARCH_ENGINE = 'mongoid'
1
2
  require 'spec_helper'
2
3
 
3
4
  describe "Mongoid" do
4
5
  before do
5
6
  setup_search
6
- Locomotive.config.search_engine = "mongoid"
7
7
  end
8
8
 
9
9
  it_behaves_like "a search backend"
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ require 'rspec/rails'
5
5
  require 'rspec/autorun'
6
6
  require 'factory_girl'
7
7
  require 'database_cleaner'
8
+ require 'activesearch'
8
9
 
9
10
  # Requires supporting ruby files with custom matchers and macros, etc,
10
11
  # in spec/support/ and its subdirectories.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Alvarez