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

[deliver][spaceship][scan] fix build warnings in rspec #21660

Merged
merged 8 commits into from Nov 24, 2023

Conversation

lacostej
Copy link
Collaborator

@lacostej lacostej commented Nov 22, 2023

build output is cluttered with unecessary error messages. Removing some of them.

WIP

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 see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.
  • I've added or updated relevant unit tests.

Motivation and Context

Description

Testing Steps

Copy link
Member

@rogerluan rogerluan left a comment

Choose a reason for hiding this comment

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

Great changes! Expect methods to not raise any error and expect them to raise a specific error 🙌

LGTM, just left some nitpick comments in case you wanna address them 🙇

scan/spec/error_handler_spec.rb Show resolved Hide resolved
spaceship/spec/provisioning_profile_spec.rb Show resolved Hide resolved
spaceship/spec/tunes/device_type_spec.rb Outdated Show resolved Hide resolved
@@ -1,5 +1,12 @@
describe Spaceship::Tunes::DeviceType do
describe "type identifiers" do
before(:each) do
# let's catch those calls to avoid polluting the output
# Note: warning has a different signature in newer versions of ruby
Copy link
Member

Choose a reason for hiding this comment

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

Is this the reason why we have 2 allow calls? If so, can we specify this in the comment? I think it'd be more clear, like:

Suggested change
# Note: warning has a different signature in newer versions of ruby
# Note: warnings have different signature depending on the Ruby version, hence why we need more than one allow(…)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made an update.

@rogerluan rogerluan changed the title Fix build warnings in rspec [deliver][spaceship][scan] fix build warnings in rspec Nov 24, 2023
lacostej and others added 2 commits November 24, 2023 15:46
Co-authored-by: Roger Oba <rogerluan.oba@gmail.com>
@lacostej lacostej merged commit dafb205 into fastlane:master Nov 24, 2023
1 of 2 checks passed
@lacostej lacostej deleted the fix/build_warnings branch November 24, 2023 15:45
SubhrajyotiSen pushed a commit to KeepTruckin/fastlane that referenced this pull request Jan 17, 2024
* Remove 'warning: already initialized constant ScreenSize'

* Remove warning of rspec raise_error being used too widely

* Remove warning related to rspec around usage

* Reduce amount of deprecation output.

* Remove chruby as we are not installing it. Is it needed?

* Rubocop fix

* Update spaceship/spec/tunes/device_type_spec.rb

Co-authored-by: Roger Oba <rogerluan.oba@gmail.com>

* Clean comment

---------

Co-authored-by: Roger Oba <rogerluan.oba@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants