Skip to content

Commit 39974ed

Browse files
committed
Remove smoe deprecated usages from tests
1 parent 3d8b95b commit 39974ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/simple.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ def test_partial_update_with_updated_on
164164
private
165165

166166
def with_partial_updates(klass, on = true)
167-
old = klass.partial_writes?
168-
klass.partial_writes = on
167+
old = klass.partial_updates?
168+
klass.partial_updates = on
169169
yield
170170
ensure
171-
klass.partial_writes = old
171+
klass.partial_updates = old
172172
end
173173

174174
def do_update_all(model, values, conditions)
@@ -423,7 +423,7 @@ def test_time_usec_formatting_when_saved_into_string_column
423423
e = DbType.create!(:sample_string => '', :sample_text => '')
424424
t = Time.now
425425
value = Time.local(t.year, t.month, t.day, t.hour, t.min, t.sec, 0)
426-
str = value.utc.to_s(:db) << '.' << sprintf("%06d", value.usec)
426+
str = value.utc.to_fs(:db) << '.' << sprintf("%06d", value.usec)
427427
e.sample_string = value
428428
e.sample_text = value
429429
e.save!; e.reload

0 commit comments

Comments
 (0)