Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (35 sloc) 1.179 kb
require File.expand_path('../../spec_helper', __FILE__)
describe "Pod::Config" do
before do
@original_config = config
Pod::Config.instance = nil
end
after do
Pod::Config.instance = @original_config
end
it "returns the singleton config instance" do
config.should.be.instance_of Pod::Config
end
it "returns the path to the spec-repos dir" do
config.repos_dir.should == Pathname.new("~/.cocoa-pods").expand_path
end
describe "concerning a user's project, which is expected in the current working directory" do
it "returns the path to the project root" do
config.project_root.should == Pathname.pwd
end
it "returns the path to the project Podfile" do
config.project_podfile.should == Pathname.pwd + 'Podfile'
end
it "returns the path to the Pods directory that holds the dependencies" do
config.project_pods_root.should == Pathname.pwd + 'Pods'
end
end
describe "concerning default settings" do
it "does not print vebose information" do
config.verbose.should == false
end
it "cleans SCM dirs in dependency checkouts" do
config.clean.should == true
end
end
end
Jump to Line
Something went wrong with that request. Please try again.