Skip to content

Commit

Permalink
fix Ruby 1.8 syntax error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 14, 2013
1 parent 7ee5c2f commit 2beb240
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/support/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
git_prefix.call + 'etc/bash_completion.d/git-completion.bash'
}

link_completion = lambda { |from, name = nil|
link_completion = Proc.new { |from, name|
name ||= from.basename
raise ArgumentError, from.to_s unless File.exist?(from)
FileUtils.ln_s(from, cpldir + name, :force => true)
Expand Down Expand Up @@ -119,10 +119,10 @@ def tmux_wait_for_completion
def tmux_completion_menu
tmux_wait_for_completion
hash = {}
tmux_pane_contents.split("\n").grep(/^[^\$].+ -- /).each do |line|
tmux_pane_contents.split("\n").grep(/^[^\$].+ -- /).each { |line|
item, description = line.split(/ +-- +/, 2)
hash[item] = description
end
}
hash
end

Expand Down

0 comments on commit 2beb240

Please sign in to comment.