Skip to content

Commit

Permalink
Merge pull request #109 from james2m/fix-switch_command
Browse files Browse the repository at this point in the history
Fix spacing for CocoDialog command in #create?
  • Loading branch information
noniq authored Sep 2, 2017
2 parents ade834b + 149c806 commit 38774ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Support/lib/rspec/mate/switch_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def file_type(path)

def create?(relative_twin, file_type)
cmd = %('#{ENV['TM_SUPPORT_PATH']}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog') +
%(yesno-msgbox --no-cancel --icon document --informative-text "#{relative_twin}") +
%(--text "Create missing #{file_type}?")
%( yesno-msgbox --no-cancel --icon document --informative-text "#{relative_twin}") +
%( --text "Create missing #{file_type}?")
answer = `#{cmd}`
answer.to_s.chomp == "1"
end
Expand Down

0 comments on commit 38774ba

Please sign in to comment.