mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
parent
bb108efedd
commit
fa52001be6
141 changed files with 1388 additions and 1664 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'test_helper'
|
||||
|
||||
class Post < ActiveRecord::Base
|
||||
class Post < ApplicationRecord
|
||||
has_paper_trail
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ class PaperTrailLearningTest < ActiveSupport::TestCase
|
|||
|
||||
def test_touch_with_version
|
||||
@record = Post.create!(title: 'any')
|
||||
|
||||
|
||||
assert_difference -> { @record.versions.size } do
|
||||
@record.touch_with_version
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue