Sha256: 91b5c9a7aa4a90696fecc239acc5a84a7e237130d94d56930f046b96d44fedb4

Contents?: true

Size: 686 Bytes

Versions: 7

Compression:

Stored size: 686 Bytes

Contents

require 'rails_helper'

module DbClone
  describe DbClone do
    it 'should be able to auto clone' do
      DbClone.config = {
        default_source: 'second_test_mysql',
        default_destination: 'test_mysql',
      }
      ds = DbSelections.new Rails.root.join('config', 'database.yml')
      cb = CmdBuilder.new ds.selections( use_defaults: true )
      expect(cb.get_cmd).to eql("mysqldump --no-create-db --add-drop-table --lock-tables=false --user=other_mysql_usr --password=other_mysql_password --host=other_mysql_host --port=3306 other_mysql_db | mysql --user=fake_mysql_usr --password=fake_mysql_password --host=fake_mysql_host --port=3306 fake_mysql_db")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
db-clone-1.1.1 spec/db_clone_spec.rb
db-clone-1.1.0 spec/db_clone_spec.rb
db-clone-1.0.5 spec/db-clone_spec.rb
db-clone-1.0.4 spec/db-clone_spec.rb
db-clone-1.0.3 spec/db-clone_spec.rb
db-clone-1.0.2 spec/db-clone_spec.rb
db-clone-1.0.1 spec/db-clone_spec.rb