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

Refactoring for Swift 3.1. #3428

Closed
wants to merge 5 commits into from
Closed

Refactoring for Swift 3.1. #3428

wants to merge 5 commits into from

Conversation

andersio
Copy link
Member

@andersio andersio commented Apr 1, 2017

No description provided.

@mdiep
Copy link
Contributor

mdiep commented Apr 1, 2017

That test doesn't want to pass on this branch. 😕

@@ -8,6 +8,8 @@ import CoreGraphics

class InterceptingSpec: QuickSpec {
override func spec() {
ForwardInvocationTestObject.swizzleForTesting()
Copy link
Member

Choose a reason for hiding this comment

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

I'd put this in beforeAll. If these tests aren't gonna run there's no point in calling this function.

Copy link
Member Author

Choose a reason for hiding this comment

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

beforeAll is not available in Quick IIRC.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I think its beforeSpec now.

@@ -7,6 +7,8 @@ import enum Result.NoError

class UIButtonSpec: QuickSpec {
override func spec() {
UIControl.swizzleForTesting()
Copy link
Member

Choose a reason for hiding this comment

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

Ditto

@@ -824,13 +828,23 @@ class InterceptingSpec: QuickSpec {
}
}

extension DispatchQueue {
Copy link
Member

Choose a reason for hiding this comment

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

This can be private

@andersio
Copy link
Member Author

andersio commented Apr 5, 2017

#3446 seems to have a better approach. Closing for now.

@andersio andersio closed this Apr 5, 2017
@andersio andersio deleted the 3.1-refactor branch April 5, 2017 15:09
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

3 participants