Skip to content

Commit

Permalink
allow letters in git version test
Browse files Browse the repository at this point in the history
git from git has versions like "1.5.4.19.ge375"
  • Loading branch information
cristibalan committed Mar 6, 2008
1 parent 179f919 commit ca78e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def setup
end

def test_method_missing
assert_match(/^git version [\d\.]*$/, @git.version)
assert_match(/^git version [\w\.]*$/, @git.version)
end

def test_transform_options
Expand All @@ -18,4 +18,4 @@ def test_transform_options

assert_equal ["-s", "-t"], @git.transform_options({:s => true, :t => true}).sort
end
end
end

0 comments on commit ca78e94

Please sign in to comment.