Skip to content

Commit 748b3a6

Browse files
committedFeb 18, 2025
Updates serialization spec
1 parent 5352f87 commit 748b3a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎elasticsearch-model/elasticsearch-model.gemspec

-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,5 @@ Gem::Specification.new do |s|
6363
unless defined?(JRUBY_VERSION)
6464
s.add_development_dependency 'oj'
6565
s.add_development_dependency 'ruby-prof'
66-
s.add_development_dependency 'sqlite3'
6766
end
6867
end

‎elasticsearch-model/spec/elasticsearch/model/adapters/active_record/serialization_spec.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@
5252
end
5353

5454
context 'when a document is updated' do
55-
5655
before do
57-
article.update_attributes(title: 'UPDATED', status: 'yellow')
56+
article.update_attribute(:title, 'UPDATED')
57+
article.update_attribute(:status, 'yellow')
58+
5859
ArticleWithCustomSerialization.__elasticsearch__.refresh_index!
5960
end
6061

‎elasticsearch-rails/spec/instrumentation/log_subscriber_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
end
5555
end
5656
end
57-
end if version >= Gem::Version.new('7.1')
57+
end if Gem::Version.new('7.1') <= Gem::Version.new(Rails::VERSION.to_s)

0 commit comments

Comments
 (0)