Sha256: a44e5eddf52e3e4114e56174ede1efaf647d527f429eb278d61b7d8a5c5a2578
Contents?: true
Size: 1.1 KB
Versions: 22
Compression:
Stored size: 1.1 KB
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/../../spec_helper' describe Backup::Configuration::Database::MySQL do before do Backup::Configuration::Database::MySQL.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 MySQL configuration' do db = Backup::Configuration::Database::MySQL 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