Skip to content

Commit 7aa3e62

Browse files
committed
Updates serialization spec
1 parent f5d82f6 commit 7aa3e62

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

elasticsearch-model/gemfiles/6.0.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ 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)
3031
# gem 'mongoid', '~> 6'
3132

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)