File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
spec/elasticsearch/model/adapters/active_record Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ source 'https://rubygems.org'
24
24
25
25
gemspec path: '../'
26
26
27
- gem 'activemodel', '6.0'
28
- gem 'activerecord', '6.0'
29
- gem 'activesupport', '6.0'
27
+ gem 'activemodel', '~> 6.0'
28
+ gem 'activerecord', '~> 6.0'
29
+ gem 'activesupport', '~> 6.0'
30
30
31
31
group :development, :testing do
32
32
gem 'pry-nav'
33
33
gem 'rspec'
34
- gem 'sqlite3'
34
+ gem 'sqlite3', '~> 1.4'
35
35
end
Original file line number Diff line number Diff line change @@ -31,4 +31,5 @@ gem 'activesupport', '7.0'
31
31
group :development, :testing do
32
32
gem 'pry-nav'
33
33
gem 'rspec'
34
+ gem 'sqlite3', '~> 2.0'
34
35
end
Original file line number Diff line number Diff line change 18
18
require 'spec_helper'
19
19
20
20
describe Elasticsearch ::Model ::Adapter ::ActiveRecord do
21
-
22
21
context 'when a document_type is not defined for the Model' do
23
-
24
22
before do
25
23
ActiveRecord ::Schema . define ( :version => 1 ) do
26
24
create_table :article_no_types do |t |
42
40
end
43
41
44
42
describe 'indexing a document' do
45
-
46
43
let ( :search_result ) do
47
44
ArticleNoType . search ( 'title:test' )
48
45
end
55
52
end
56
53
57
54
context 'when a document_type is defined for the Model' do
58
-
59
55
before ( :all ) do
60
56
ActiveRecord ::Schema . define ( :version => 1 ) do
61
57
create_table :articles do |t |
You can’t perform that action at this time.
0 commit comments