Skip to content

Commit

Permalink
Updates serialization spec
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Feb 18, 2025
1 parent 5352f87 commit b7f7ed7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion elasticsearch-model/elasticsearch-model.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@ Gem::Specification.new do |s|
unless defined?(JRUBY_VERSION)
s.add_development_dependency 'oj'
s.add_development_dependency 'ruby-prof'
s.add_development_dependency 'sqlite3'
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@
end

context 'when a document is updated' do

before do
article.update_attributes(title: 'UPDATED', status: 'yellow')
article.update_attribute(:title, 'UPDATED')
article.update_attribute(:status, 'yellow')

ArticleWithCustomSerialization.__elasticsearch__.refresh_index!
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
end
end
end
end if version >= Gem::Version.new('7.1')
end if Gem::Version.new('7.1') <= Gem::Version.new(Rails::VERSION)

0 comments on commit b7f7ed7

Please sign in to comment.