Skip to content
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

Add support for xcfilelist in script_phase DSL #517

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Mar 6, 2019

Prerequisite for CocoaPods/CocoaPods#8585

@dnkoutso dnkoutso added this to the 1.7 milestone Mar 6, 2019
@dnkoutso
Copy link
Contributor Author

dnkoutso commented Mar 6, 2019

add changelogentry

@dnkoutso
Copy link
Contributor Author

dnkoutso commented Mar 6, 2019

Tests already covered by existing tests around OPTIONAL_SCRIPT_PHASE_KEYS

@dnkoutso dnkoutso force-pushed the io_file_list_support branch 2 times, most recently from 4efef1b to 7c08f78 Compare March 6, 2019 22:07
@@ -462,10 +462,11 @@ def result_should_include(*values)
result_should_include('script_phases', 'Missing required shell script phase options `script` in script phase `Hello World`.')
end

it 'checks script phases include the required keys' do
it 'checks script phases does not include unknown keys' do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like there should be two tests that:

  • Ensure required keys are specified
  • Ensure all keys that are provided are known/valid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its already added above

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh I see now 👍

@@ -462,10 +462,11 @@ def result_should_include(*values)
result_should_include('script_phases', 'Missing required shell script phase options `script` in script phase `Hello World`.')
end

it 'checks script phases include the required keys' do
it 'checks script phases that include unknown keys' do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test was named the same way as the one above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably from copy-pasta

@dnkoutso dnkoutso merged commit 16f3f1a into CocoaPods:master Mar 6, 2019
@dnkoutso dnkoutso deleted the io_file_list_support branch March 6, 2019 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants