blob: 1b8c4259813fcc65a23dcce96e1893be65772498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
require 'minitest/autorun'
require 'dbshell/exec_alias'
describe DBShell::ExecAlias do
describe ".build_command" do
it "prefixes the command with an interactive version of the current \
shell" do
DBShell::ExecAlias.build_command([
'psql',
'-U',
'derpyhooves',
'-h',
'mailmarehost',
'-p',
'6027',
'dbname'
]).must_equal([
ENV['SHELL'],
'-i',
'-c',
'psql -U derpyhooves -h mailmarehost -p 6027 dbname'
])
end
end
end
|