File: use-update-instead-of-update-attributes.patch

package info (click to toggle)
ruby-fast-gettext 2.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 728 kB
  • sloc: ruby: 3,220; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: update_attributes has been replaces w update.
Author: Utkarsh Gupta <utkarsh@debian.org>
Origin: vendor
Bug: https://github.com/grosser/fast_gettext/issues/135
Last-Update: 2022-01-18

--- a/spec/fast_gettext/translation_repository/db_spec.rb
+++ b/spec/fast_gettext/translation_repository/db_spec.rb
@@ -112,6 +112,6 @@
   it "expires the cache when updated" do
     FastGettext.should_receive(:expire_cache_for).with('car')
     translation_text = create_translation 'car', 'Auto'
-    translation_text.update_attributes :text => 'Autobot'
+    translation_text.update :text => 'Autobot'
   end
 end