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

Fixes PBXObject equality #224

Merged
merged 2 commits into from
Feb 12, 2018
Merged

Fixes PBXObject equality #224

merged 2 commits into from
Feb 12, 2018

Conversation

yonaskolb
Copy link
Collaborator

@yonaskolb yonaskolb commented Jan 30, 2018

Resolves #223

This makes PBXObject conform to Equatable which then calls out to an instance method that all subclasses override. When we move to Sourcery we can remove all of this


This change is Reviewable

@yonaskolb yonaskolb requested a review from pepicrft January 30, 2018 08:02
@yonaskolb yonaskolb changed the title Fixes equality Fixes PBXObject equality Jan 30, 2018
Copy link
Contributor

@pepicrft pepicrft left a comment

Choose a reason for hiding this comment

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

Ouch, great catch @yonaskolb!

@yonaskolb
Copy link
Collaborator Author

@pepibumur do you know why the tests are failing?

@pepicrft
Copy link
Contributor

pepicrft commented Feb 2, 2018

@yonaskolb, apparently there are some tests that are failing:
image

@yonaskolb yonaskolb merged commit 4d47442 into master Feb 12, 2018
@yonaskolb yonaskolb deleted the equality branch February 12, 2018 13:25
@@ -22,7 +22,7 @@ final class PBXRezBuildPhaseSpec: XCTestCase {
}

func test_equals_returnsTheCorrectValue() {
let another = PBXResourcesBuildPhase(files: ["123"],
let another = PBXRezBuildPhase(files: ["123"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is an example of something that was incorrectly passing tests

Copy link
Contributor

Choose a reason for hiding this comment

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

:/ we need Sourcery

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.

2 participants