You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
278 B

require 'spec_helper'
describe User do
include_context "data"
it "is valid" do
user.should be_valid
end
it "audits creations" do
PaperTrail.enabled = true
expect { user }.to change(PaperTrail::Version, :count)
PaperTrail.enabled = false
end
end