Sha256: 09fe42169d8f9874317db1a5b81dc59636789ed2ef9fa62868281aca5acc626c

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

describe Dbcp::PostgresDatabase do
  subject do
    Dbcp::PostgresDatabase.new({
      host: 'local',
      database: 'my_database',
      username: 'my_user',
      password: 'my_password',
    })
  end

  let(:snapshot_file) { Dbcp::DatabaseSnapshotFile.new double }

  describe "#export_command" do
    specify { expect(subject.export_command snapshot_file).to match 'pg_dump' }
  end

  describe "#import_command" do
    specify { expect(subject.import_command snapshot_file).to match 'pg_restore' }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dbcp-0.2.1 spec/lib/dbcp/databases/postgres_database_spec.rb
dbcp-0.2.0 spec/lib/dbcp/databases/postgres_database_spec.rb
dbcp-0.1.0 spec/lib/dbcp/databases/postgres_database_spec.rb
dbcp-0.0.1 spec/lib/dbcp/databases/postgres_database_spec.rb