Skip to content

Commit 47ae39f

Browse files
committed
Updates serialization spec
1 parent f5d82f6 commit 47ae39f

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-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/gemfiles/6.0.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ gemspec path: '../'
2626

2727
gem 'activemodel', '6.0'
2828
gem 'activerecord', '6.0'
29+
gem 'activesupport', '6.0'
2930
gem 'sqlite3' unless defined?(JRUBY_VERSION)
30-
# gem 'mongoid', '~> 6'
3131

3232
group :development, :testing do
3333
gem 'pry-nav'

elasticsearch-model/gemfiles/7.0.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gemspec path: '../'
2626

2727
gem 'activemodel', '7.0'
2828
gem 'activerecord', '7.0'
29+
gem 'activesupport', '7.0'
2930
gem 'sqlite3' unless defined?(JRUBY_VERSION)
3031

3132
group :development, :testing do

elasticsearch-model/gemfiles/7.1.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ gemspec path: '../'
2626

2727
gem 'activemodel', '7.1'
2828
gem 'activerecord', '7.1'
29+
gem 'activesupport', '7.1'
2930
gem 'sqlite3' unless defined?(JRUBY_VERSION)
3031

3132
group :development, :testing do

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

0 commit comments

Comments
 (0)