Skip to content
Browse files

Add 2 pending specs for github track

  • Loading branch information...
1 parent 405ebb0 commit 42d95a09cdadb9fc9a0f584bfa5b70ae5abecbf8 @kballard kballard committed May 27, 2008
Showing with 22 additions and 0 deletions.
  1. +22 −0 spec/ui_spec.rb
View
22 spec/ui_spec.rb
@@ -113,6 +113,28 @@
end
end
+ specify "track should accept user/project syntax" do
+ pending do
+ running :track, "defunkt/github-gem.git" do
+ setup_url_for
+ @helper.should_receive(:tracking?).with("defunkt").and_return false
+ @command.should_receive(:git).with("remote add defunkt git://github.com/defunkt/github-gem.git")
+ end
+ end
+ end
+
+ specify "track defunkt/github-gem.git should function with no origin remote" do
+ pending do
+ running :track, "defunkt/github-gem.git" do
+ @helper.stub!(:url_for).with(:origin).and_return ""
+ @helper.stub!(:tracking?).and_return false
+ @command.should_receive(:git).with("remote add defunkt git://github.com/defunkt/github-gem.git")
+ self.should_not raise_error(SystemExit)
+ stderr.should_not =~ /^Error/
+ end
+ end
+ end
+
# -- pull --
specify "pull should die with no args" do
running :pull do

0 comments on commit 42d95a0

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