-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correctly include parent dependencies when parsing testspecs #384
Conversation
848b17c
to
8011a67
Compare
@@ -879,7 +879,7 @@ def parse_subspecs(name, requirements) | |||
end if test_specs | |||
|
|||
requirements.pop if options.empty? | |||
!subspecs.nil? || !test_specs.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not include test specs here because if this method returns true then only the test specs are being parsed.
@@ -234,13 +234,13 @@ module Pod | |||
|
|||
it 'allows depending on testspecs' do | |||
@parent.store_pod('RestKit', :testspecs => %w(Tests)) | |||
@parent.dependencies.map(&:name).sort.should == %w(RestKit/Tests) | |||
@parent.dependencies.map(&:name).sort.should == %w(RestKit RestKit/Tests) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this is correct! If I ask for the test spec 'Tests' I still want RestKit
to be included.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -234,13 +234,13 @@ module Pod | |||
|
|||
it 'allows depending on testspecs' do | |||
@parent.store_pod('RestKit', :testspecs => %w(Tests)) | |||
@parent.dependencies.map(&:name).sort.should == %w(RestKit/Tests) | |||
@parent.dependencies.map(&:name).sort.should == %w(RestKit RestKit/Tests) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This is now correct.