Commit 795190bf360043360a9a55cec55f936e36893510

Authored by Andrew
1 parent 0741ca0d

Cleaning up tests

@@ -20,7 +20,7 @@ gemfile: @@ -20,7 +20,7 @@ gemfile:
20 - test/gemfiles/mongoid5.gemfile 20 - test/gemfiles/mongoid5.gemfile
21 - test/gemfiles/mongoid6.gemfile 21 - test/gemfiles/mongoid6.gemfile
22 env: 22 env:
23 - - ELASTICSEARCH_VERSION=6.2.1 23 + - ELASTICSEARCH_VERSION=6.2.2
24 jdk: oraclejdk8 24 jdk: oraclejdk8
25 matrix: 25 matrix:
26 include: 26 include:
1 ## 3.0.0 [unreleased] 1 ## 3.0.0 [unreleased]
2 2
3 - Removed support for Elasticsearch 2 3 - Removed support for Elasticsearch 2
4 -- Removed support for ActiveRecord < 4.2 4 +- Removed support for ActiveRecord < 4.2 and Mongoid < 5
5 - Removed `reindex_async` method. `reindex` now defaults to mode specified by model. Use `reindex(mode: :async)` to force async reindex. 5 - Removed `reindex_async` method. `reindex` now defaults to mode specified by model. Use `reindex(mode: :async)` to force async reindex.
6 6
7 ## 2.5.1 [unreleased] 7 ## 2.5.1 [unreleased]
test/gemfiles/activerecord31.gemfile
@@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "sqlite3"  
7 -gem "activerecord", "~> 3.1.0"  
test/gemfiles/activerecord32.gemfile
@@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "sqlite3"  
7 -gem "activerecord", "~> 3.2.0"  
test/gemfiles/activerecord40.gemfile
@@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "sqlite3"  
7 -gem "activerecord", "~> 4.0.0"  
8 -gem "activejob_backport"  
test/gemfiles/activerecord41.gemfile
@@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "sqlite3"  
7 -gem "activerecord", "~> 4.1.0"  
8 -gem "activejob_backport"  
test/gemfiles/mongoid2.gemfile
@@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "mongoid", "~> 2"  
7 -gem "bson_ext"  
test/gemfiles/mongoid3.gemfile
@@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "mongoid", "~> 3.1.0"  
test/gemfiles/mongoid4.gemfile
@@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
1 -source 'https://rubygems.org'  
2 -  
3 -# Specify your gem's dependencies in searchkick.gemspec  
4 -gemspec path: "../../"  
5 -  
6 -gem "mongoid", "~> 4.0.0"  
7 -gem "activejob_backport"  
test/records_test.rb
@@ -1,10 +0,0 @@ @@ -1,10 +0,0 @@
1 -require_relative "test_helper"  
2 -  
3 -class RecordsTest < Minitest::Test  
4 - def test_records  
5 - skip if cequel?  
6 -  
7 - store_names ["Milk", "Apple"]  
8 - assert_equal Product.search("milk").records.where(name: "Milk").count, 1  
9 - end  
10 -end