Sha256: 350c93b3caa6ed5d1830699bc3844c34d55e9ea14b0a16fc16977e83ef174e3e

Contents?: true

Size: 284 Bytes

Versions: 8

Compression:

Stored size: 284 Bytes

Contents

module Vault::Test
  module DB
    module Truncation
      def teardown
        super
        truncate_tables!
      end

      def truncate_tables!
        (db.tables - [:schema_migrations]).each do |table|
          db << "truncate #{table}"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vault-test-tools-0.3.4 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.3.3 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.3.2 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.3.1 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.3.0 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.2.3 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.2.2 lib/vault-test-tools/db_helpers.rb
vault-test-tools-0.2.1 lib/vault-test-tools/db_helpers.rb