Skip to content
Browse files

Fix space sensitivity in the tests, not an issue for sh/bash but nice…

… to have a clean suite (Thanks to vissi for the prompt to fix this the easy way)
  • Loading branch information...
1 parent 4d70aac commit e464e50e15d938ce705f5d41b86ab6d4fb7d857e @leehambley leehambley committed Mar 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/deploy/scm/git_test.rb
View
4 test/deploy/scm/git_test.rb
@@ -36,11 +36,11 @@ def test_checkout
# With :scm_command
git = "/opt/local/bin/git"
@config[:scm_command] = git
- assert_equal "#{git} clone -q git@somehost.com:project.git /var/www && cd /var/www && #{git} checkout -q -b deploy #{rev}", @source.checkout(rev, dest)
+ assert_equal "#{git} clone -q git@somehost.com:project.git /var/www && cd /var/www && #{git} checkout -q -b deploy #{rev}", @source.checkout(rev, dest).gsub(/\s+/, ' ')
# with submodules
@config[:git_enable_submodules] = true
- assert_equal "#{git} clone -q git@somehost.com:project.git /var/www && cd /var/www && #{git} checkout -q -b deploy #{rev} && #{git} submodule -q init && #{git} submodule -q sync && #{git} submodule -q update --recursive", @source.checkout(rev, dest)
+ assert_equal "#{git} clone -q git@somehost.com:project.git /var/www && cd /var/www && #{git} checkout -q -b deploy #{rev} && #{git} submodule -q init && #{git} submodule -q sync && #{git} submodule -q update --recursive", @source.checkout(rev, dest).gsub(/\s+/, ' ')
end
def test_checkout_with_verbose_should_not_use_q_switch

0 comments on commit e464e50

Please sign in to comment.
Something went wrong with that request. Please try again.