Sha256: 127df46c180ea434b17a9ea6b3f7f636711528c9dfbe37e3f94daa5ac93c7291
Contents?: true
Size: 753 Bytes
Versions: 24
Compression:
Stored size: 753 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe PgAuditLog::Entry do subject { PgAuditLog::Entry.create! } describe ".delete" do it "blows up because deleting audit logs is not allowed" do proc { PgAuditLog::Entry.delete(subject.id) }.should raise_error(PgAuditLog::Entry::CannotDeleteError) end end describe ".delete_all" do it "blows up because deleting audit logs is not allowed" do proc { PgAuditLog::Entry.delete_all }.should raise_error(PgAuditLog::Entry::CannotDeleteError) end end describe "#destroy" do it "blows up because deleting audit logs is not allowed" do proc { subject.destroy }.should raise_error(PgAuditLog::Entry::CannotDeleteError) end end end
Version data entries
24 entries across 24 versions & 1 rubygems