Sha256: a746d23ddf17e59fd7bebc17217dc73fdcf2a8b3652c25fa84d312380d5aaea6
Contents?: true
Size: 622 Bytes
Versions: 35
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true class DbConsole < ActiveRecord::TestCase subject { ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter } it "uses sqlplus to connect to database" do subject.expects(:find_cmd_and_exec).with("sqlcmd", "-d", "db", "-U", "user", "-P", "secret", "-S", "tcp:localhost,1433") config = make_db_config(adapter: "sqlserver", database: "db", username: "user", password: "secret", host: "localhost", port: 1433) subject.dbconsole(config) end private def make_db_config(config) ActiveRecord::DatabaseConfigurations::HashConfig.new("test", "primary", config) end end
Version data entries
35 entries across 35 versions & 1 rubygems