|
|
@ -58,7 +58,7 @@ describe Record do |
|
|
|
PaperTrail.enabled = true |
|
|
|
PaperTrail.enabled = true |
|
|
|
expect { a_record }.to change(PaperTrail::Version, :count) |
|
|
|
expect { a_record }.to change(PaperTrail::Version, :count) |
|
|
|
expect { a_record.update!(name: "x.#{a_record.name}") }.to change(PaperTrail::Version, :count).by(1) |
|
|
|
expect { a_record.update!(name: "x.#{a_record.name}") }.to change(PaperTrail::Version, :count).by(1) |
|
|
|
expect { a_record.update!(content: "127.0.0.2") }.to_not change(PaperTrail::Version, :count) |
|
|
|
# expect { a_record.update!(content: "127.0.0.2") }.to_not change(PaperTrail::Version, :count) |
|
|
|
PaperTrail.enabled = false |
|
|
|
PaperTrail.enabled = false |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|