Commit e3390c0e authored by Fabio Pelosin's avatar Fabio Pelosin

[Sandbox] Return the documentation dir

parent 44c7794e
...@@ -192,7 +192,7 @@ module Pod ...@@ -192,7 +192,7 @@ module Pod
# !@group Private Helpers # !@group Private Helpers
def target_path def target_path
sandbox.root + 'Documentation' + specification.name sandbox.documentation_dir + specification.name
end end
def pod_root def pod_root
......
...@@ -162,6 +162,12 @@ module Pod ...@@ -162,6 +162,12 @@ module Pod
end end
end end
# @return [Pathname] the directory where to store the documentation.
#
def documentation_dir
root + 'Documentation'
end
#-------------------------------------------------------------------------# #-------------------------------------------------------------------------#
public public
......
...@@ -76,6 +76,9 @@ module Pod ...@@ -76,6 +76,9 @@ module Pod
@sandbox.pod_dir('JSONKit').should == temporary_directory + 'Sandbox/JSONKit' @sandbox.pod_dir('JSONKit').should == temporary_directory + 'Sandbox/JSONKit'
end end
it "returns the directory where to store the documentation" do
@sandbox.documentation_dir.should == temporary_directory + 'Sandbox/Documentation'
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