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

Ignore newline of demo user information #8579

Merged
merged 2 commits into from
Mar 20, 2017

Conversation

giginet
Copy link
Collaborator

@giginet giginet commented Mar 19, 2017

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Description

Ignore newline string of demo_user and demo_password of review information.

And use this opportunity to increase code coverage of upload_metadata.

Motivation and Context

If demo_user or demo_password contains newline(\n), review_user_needed become true and following error is raised from iTunes Connect.

screen shot 2017-03-20 at 1 50 53

[!] The request could not be completed because:
        Enter a demo account user name. Enter a demo account password.

So it ignores newline of metadata/app_review_information/demo_user and metadata/app_review_information/demo_password

@giginet giginet self-assigned this Mar 19, 2017
@giginet giginet removed their assignment Mar 19, 2017
Copy link
Member

@KrauseFx KrauseFx left a comment

Choose a reason for hiding this comment

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

This looks great to me. Have you ensured that the tests are failing without the newly added chomp? 👍

@giginet
Copy link
Collaborator Author

giginet commented Mar 20, 2017

The tests are failing without the newly added chomp?

I checked this then the tests are failed.

@giginet giginet merged commit 6120df6 into fastlane:master Mar 20, 2017
@giginet giginet deleted the demo-user-needed branch March 20, 2017 09:07
@KrauseFx KrauseFx mentioned this pull request Mar 20, 2017
@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.21.0 🚀

@fastlane fastlane locked and limited conversation to collaborators Jun 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants