Commit 0318141b authored by Eloy Duran's avatar Eloy Duran

Fix spec suite after changing to read-only submodules.

parent 14d94c0f
......@@ -28,6 +28,7 @@ describe "Pod::Command" do
it "updates a spec-repo" do
repo1 = add_repo('repo1', fixture('spec-repos/master'))
git('repo1', 'checkout master') # checkout master, because the fixture is a submodule
repo2 = add_repo('repo2', repo1.dir)
make_change(repo1, 'repo1')
command('repo', 'update', 'repo2')
......@@ -36,6 +37,7 @@ describe "Pod::Command" do
it "updates all the spec-repos" do
repo1 = add_repo('repo1', fixture('spec-repos/master'))
git('repo1', 'checkout master') # checkout master, because the fixture is a submodule
repo2 = add_repo('repo2', repo1.dir)
repo3 = add_repo('repo3', repo1.dir)
make_change(repo1, 'repo1')
......
......@@ -11,7 +11,6 @@ require 'cocoapods'
$:.unshift((ROOT + 'spec').to_s)
require 'spec_helper/fixture'
require 'spec_helper/git'
require 'spec_helper/log'
require 'spec_helper/temporary_directory'
context_class = defined?(BaconContext) ? BaconContext : Bacon::Context
......
module SpecHelper
module Log
def log!
puts
logger = Object.new
def logger.debug(msg); puts msg; end
Executioner.logger = logger
end
def self.extended(context)
context.after do
Executioner.logger = nil
end
end
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