Sha256: c34bfbe6c869df679ced15523d1f15198e68fda0ea8c58efbee73201c0861cb5

Contents?: true

Size: 448 Bytes

Versions: 10

Compression:

Stored size: 448 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe PgAuditLog::Function do
  describe ".installed?" do
    subject { PgAuditLog::Function.installed? }
    context "when it is not" do
      before do
        PgAuditLog::Function.uninstall
      end
      it { should be_false }
    end

    context "when it is" do
      before do
        PgAuditLog::Function.install
      end
      it { should be_true }
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pg_audit_log-0.5.1 spec/function_spec.rb
pg_audit_log-0.5.0 spec/function_spec.rb
pg_audit_log-0.4.5 spec/function_spec.rb
pg_audit_log-0.4.4 spec/function_spec.rb
pg_audit_log-0.4.0 spec/function_spec.rb
pg_audit_log-0.3.6 spec/function_spec.rb
pg_audit_log-0.3.5 spec/function_spec.rb
pg_audit_log-0.3.4 spec/function_spec.rb
pg_audit_log-0.3.3 spec/function_spec.rb
pg_audit_log-0.3.2 spec/function_spec.rb