Commit 5a736c4d authored by Eloy Duran's avatar Eloy Duran

+ config specs

parent bdb96b1c
recipe :ruby
Ruby.runner_bin = 'macbacon'
...@@ -15,6 +15,30 @@ describe "Pod::Config" do ...@@ -15,6 +15,30 @@ describe "Pod::Config" do
end end
it "returns the path to the spec-repos dir" do it "returns the path to the spec-repos dir" do
config.repos_dir.should == File.expand_path("~/.cocoa-pods") 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
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