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

Version Path
pg_audit_log-0.5.6 spec/model_spec.rb
pg_audit_log-0.5.5 spec/model_spec.rb
pg_audit_log-0.5.4 spec/model_spec.rb
pg_audit_log-0.5.2 spec/model_spec.rb
pg_audit_log-0.5.1 spec/model_spec.rb
pg_audit_log-0.5.0 spec/model_spec.rb
pg_audit_log-0.4.5 spec/model_spec.rb
pg_audit_log-0.4.4 spec/model_spec.rb
pg_audit_log-0.4.0 spec/model_spec.rb
pg_audit_log-0.3.6 spec/model_spec.rb
pg_audit_log-0.3.5 spec/model_spec.rb
pg_audit_log-0.3.4 spec/model_spec.rb
pg_audit_log-0.3.3 spec/model_spec.rb
pg_audit_log-0.3.2 spec/model_spec.rb
pg_audit_log-0.3.1 spec/model_spec.rb
pg_audit_log-0.3.0 spec/model_spec.rb
pg_audit_log-0.2.0 spec/model_spec.rb
pg_audit_log-0.1.4 spec/model_spec.rb
pg_audit_log-0.1.3 spec/model_spec.rb
pg_audit_log-0.1.2 spec/model_spec.rb