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 6cc7a29 Allow for Wunderbar#system option hashes
6cc7a29 is described below
commit 6cc7a29c09cdae20d2f133959a3c44e1ae610c9d
Author: Sebb <[email protected]>
AuthorDate: Fri Jun 12 00:52:54 2020 +0100
Allow for Wunderbar#system option hashes
---
www/board/agenda/spec/spec_helper.rb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/www/board/agenda/spec/spec_helper.rb
b/www/board/agenda/spec/spec_helper.rb
index e6dae52..fce60b9 100644
--- a/www/board/agenda/spec/spec_helper.rb
+++ b/www/board/agenda/spec/spec_helper.rb
@@ -40,6 +40,10 @@ module MockServer
# intercept commits, adding the files to the cleanup list
def system(*args)
args.flatten!
+ # Wunderbar .system accepts one or two trailing hashes; ignore them for now
+ # TODO: do we need to handle :stdin?
+ args.pop if Hash === args.last
+ args.pop if Hash === args.last
if args[1] == 'commit'
@commits ||= {}