Sha256: b4ce93d66bd05319b8dfa78192b5152042d5e9e6f5b1818d0c39472062217a3a

Contents?: true

Size: 1.12 KB

Versions: 22

Compression:

Stored size: 1.12 KB

Contents

# encoding: utf-8

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

describe Backup::Configuration::Database::PostgreSQL do
  before do
    Backup::Configuration::Database::PostgreSQL.defaults do |db|
      db.name               = 'mydb'
      db.username           = 'myuser'
      db.password           = 'mypassword'
      db.host               = 'myhost'
      db.port               = 'myport'
      db.socket             = 'mysocket'
      db.skip_tables        = %w[my tables]
      db.only_tables        = %w[my other tables]
      db.additional_options = %w[my options]
    end
  end

  it 'should set the default PostgreSQL configuration' do
    db = Backup::Configuration::Database::PostgreSQL
    db.name.should               == 'mydb'
    db.username.should           == 'myuser'
    db.password.should           == 'mypassword'
    db.host.should               == 'myhost'
    db.port.should               == 'myport'
    db.socket.should             == 'mysocket'
    db.skip_tables.should        == %w[my tables]
    db.only_tables.should        == %w[my other tables]
    db.additional_options.should == %w[my options]
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
interu-backup-3.0.16 spec/configuration/database/postgresql_spec.rb
backup-3.0.16 spec/configuration/database/postgresql_spec.rb
backup-3.0.15 spec/configuration/database/postgresql_spec.rb
backup-3.0.14 spec/configuration/database/postgresql_spec.rb
backup-3.0.13 spec/configuration/database/postgresql_spec.rb
backup-3.0.12 spec/configuration/database/postgresql_spec.rb
backup-3.0.11 spec/configuration/database/postgresql_spec.rb
alg-backup-3.0.10 spec/configuration/database/postgresql_spec.rb
backup-3.0.10 spec/configuration/database/postgresql_spec.rb
backup-3.0.9 spec/configuration/database/postgresql_spec.rb
backup-3.0.8 spec/configuration/database/postgresql_spec.rb
backup-3.0.7 spec/configuration/database/postgresql_spec.rb
backup-3.0.6 spec/configuration/database/postgresql_spec.rb
backup-3.0.5 spec/configuration/database/postgresql_spec.rb
backup-3.0.4 spec/configuration/database/postgresql_spec.rb
backup-3.0.3 spec/configuration/database/postgresql_spec.rb
backup-3.0.2.build.0 spec/configuration/database/postgresql_spec.rb
backup-3.0.2 spec/configuration/database/postgresql_spec.rb
backup-3.0.1.build.0 spec/configuration/database/postgresql_spec.rb
backup-3.0.1 spec/configuration/database/postgresql_spec.rb