Commit 9aeeb74f authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'master' into b0.15.0

* master:
  [Specs] Fix repo specs.
parents 5de12d4b bb911ddc
......@@ -7,7 +7,6 @@ describe "Pod::Command::Repo" do
extend SpecHelper::TemporaryRepos
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', 'lint', temporary_directory.to_s) }.should.not.raise
end
......@@ -18,7 +17,7 @@ describe "Pod::Command::Repo" do
end
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
end
......
......@@ -32,7 +32,7 @@ module SpecHelper
command.run
Dir.chdir(command.dir) do
`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
command
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