Spec for reset_head git updater.

This commit is contained in:
ethicalhack3r
2013-01-13 20:34:26 +01:00
parent 7ac9f79439
commit c913715ec9

View File

@@ -62,4 +62,11 @@ describe GitUpdater do
end end
end end
describe "#reset_head" do
it "should reset the local repo" do
stub_system_command(@git_updater, /^git .* reset --hard HEAD/, "HEAD is now at")
@git_updater.reset_head.should match(/^HEAD is now at/)
end
end
end end