Browse Source

logs all

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
53f502d895
  1. 2
      spec/models/record_spec.rb

2
spec/models/record_spec.rb

@ -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

Loading…
Cancel
Save