Commit bb911ddc authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Fix repo specs.

parent 90174caa
...@@ -7,7 +7,6 @@ describe "Pod::Command::Repo" do ...@@ -7,7 +7,6 @@ describe "Pod::Command::Repo" do
extend SpecHelper::TemporaryRepos extend SpecHelper::TemporaryRepos
it "runs with correct parameters" do it "runs with correct parameters" do
lambda { run_command('repo', 'add', 'NAME', 'URL') }.should.not.raise
lambda { run_command('repo', 'update') }.should.not.raise lambda { run_command('repo', 'update') }.should.not.raise
lambda { run_command('repo', 'lint', temporary_directory.to_s) }.should.not.raise lambda { run_command('repo', 'lint', temporary_directory.to_s) }.should.not.raise
end end
...@@ -18,7 +17,7 @@ describe "Pod::Command::Repo" do ...@@ -18,7 +17,7 @@ describe "Pod::Command::Repo" do
end end
it "adds a spec-repo" do it "adds a spec-repo" do
add_repo('private', fixture('spec-repos/master')) run_command('repo', 'add', 'private', fixture('spec-repos/master'))
git_config('private', 'remote.origin.url').should == fixture('spec-repos/master').to_s git_config('private', 'remote.origin.url').should == fixture('spec-repos/master').to_s
end end
......
...@@ -32,7 +32,7 @@ module SpecHelper ...@@ -32,7 +32,7 @@ module SpecHelper
command.run command.run
Dir.chdir(command.dir) do Dir.chdir(command.dir) do
`git checkout -b test >/dev/null 2>&1` `git checkout -b test >/dev/null 2>&1`
`git branch --set-upstream test origin/test >/dev/null 2>&1` `git branch --set-upstream test origin/master >/dev/null 2>&1`
end end
command command
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment