Skip to content

Commit

Permalink
[Hooks] Add copy_resources_script_name to library
Browse files Browse the repository at this point in the history
Closes #837
  • Loading branch information
fabiopelosin committed Mar 9, 2013
1 parent 7b03106 commit 174fea8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/cocoapods/hooks/library_representation.rb
Expand Up @@ -30,6 +30,12 @@ def prefix_header_filename
library.prefix_header_path
end

# @return [Pathname] The path of the script used to copy the resources.
#
def copy_resources_script_name
library.copy_resources_script_path
end

# @return [Project] The Pods project of the sandbox.
#
def project
Expand Down
5 changes: 5 additions & 0 deletions spec/unit/hooks/library_representation_spec.rb
Expand Up @@ -31,6 +31,11 @@ module Pod
@rep.prefix_header_filename.should == temporary_directory + 'Pods-MyApp-prefix.pch'
end

it "returns the path of the copy resources script" do
@lib.support_files_root = temporary_directory
@rep.copy_resources_script_name.should == temporary_directory + 'Pods-MyApp-resources.sh'
end

it "returns the pods project" do
project = stub()
config.sandbox.project = project
Expand Down

0 comments on commit 174fea8

Please sign in to comment.