This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 37b3d6ac Don't make assumptions about the SVN command
37b3d6ac is described below
commit 37b3d6acdc2ede92f170a7858dba7a427e69f857
Author: Sebb <[email protected]>
AuthorDate: Thu Mar 28 17:03:27 2024 +0000
Don't make assumptions about the SVN command
---
lib/spec/lib/svn_spec.rb | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/spec/lib/svn_spec.rb b/lib/spec/lib/svn_spec.rb
index b5a37853..8fd9059e 100644
--- a/lib/spec/lib/svn_spec.rb
+++ b/lib/spec/lib/svn_spec.rb
@@ -331,18 +331,21 @@ describe ASF::SVN do
it "_svn_build_cmd('help', 'path', {user: 'whimsysvn'}) should include
username" do
cmd, stdin = ASF::SVN._svn_build_cmd('help', 'path', {user: 'whimsysvn'})
expect(stdin).to eq(nil)
- expect(cmd).to eq(["svn", "help", "--non-interactive", ["--username",
"whimsysvn", "--no-auth-cache"], "--", "path"])
+ cmd.shift # don't make assumptions about the exact SVN command
+ expect(cmd).to eq(["help", "--non-interactive", ["--username",
"whimsysvn", "--no-auth-cache"], "--", "path"])
end
it "_svn_build_cmd('help', 'path', {user: 'whimsysvn', dryrun: false})
should include username" do
cmd, stdin = ASF::SVN._svn_build_cmd('help', 'path', {user: 'whimsysvn',
dryrun: false})
expect(stdin).to eq(nil)
- expect(cmd).to eq(["svn", "help", "--non-interactive", ["--username",
"whimsysvn", "--no-auth-cache"], "--", "path"])
+ cmd.shift # don't make assumptions about the exact SVN command
+ expect(cmd).to eq(["help", "--non-interactive", ["--username",
"whimsysvn", "--no-auth-cache"], "--", "path"])
end
it "_svn_build_cmd('help', 'path', {user: 'whimsysvn', dryrun: true})
should not include username" do
cmd, stdin = ASF::SVN._svn_build_cmd('help', 'path', {user: 'whimsysvn',
dryrun: true})
expect(stdin).to eq(nil)
- expect(cmd).to eq(["svn", "help", "--non-interactive", "--", "path"])
+ cmd.shift # don't make assumptions about the exact SVN command
+ expect(cmd).to eq(["help", "--non-interactive", "--", "path"])
end
it "_svn_build_cmd('help', 'path', {_error: true}) should raise error" do