Skip to content

Commit

Permalink
Fixed compatibility with Vlad 2.1.0. Closes #6
Browse files Browse the repository at this point in the history
Vlad::CommandFailedError => Rake::CommandFailedError
VladTestCase => Rake::TestCase
  • Loading branch information
ktheory committed Aug 20, 2010
1 parent 256198e commit 6c5c815
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -11,4 +11,5 @@ Hoe.spec "vlad-git" do
self.readme_file = "README.rdoc"
self.rubyforge_name = "hitsquad"
self.testlib = :minitest
self.extra_deps << ["vlad", ">= 2.1.0"]
end
2 changes: 1 addition & 1 deletion lib/vlad/git.rb
Expand Up @@ -80,7 +80,7 @@ def fast_checkout_applicable?(revision, destination)
"cd -; then exit 0; else exit 1; fi &>/dev/null" ].join(" && ")
run cmd
return true
rescue Vlad::CommandFailedError
rescue Rake::CommandFailedError
return false
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_vlad_git.rb
@@ -1,9 +1,9 @@
require 'vlad_test_case'
require 'rake/test_case'
require 'vlad'
require 'vlad/git'
require 'mocha'

class TestVladGit < VladTestCase
class TestVladGit < Rake::TestCase
def setup
super
@scm = Vlad::Git.new
Expand Down

0 comments on commit 6c5c815

Please sign in to comment.