Skip to content

Commit

Permalink
Merge pull request #37 from mpdifran/castToUIView
Browse files Browse the repository at this point in the history
Cast view to UIView in runLayoutTests method
  • Loading branch information
oliverhu authored Jun 13, 2017
2 parents 833b5a1 + 37e02f5 commit 797cea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LayoutTest/Swift/LayoutTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ open class LayoutTestCase: LYTLayoutTestCase {
validation(view, data, context)
} else {
self.failTest("The view wasn't of the expected type. Change your method signature to declare the view in the validation closure " +
"of the correct type. Expected: \(TestableView.self) Actual: \(type(of: (view) as AnyObject))", view: view)
"of the correct type. Expected: \(TestableView.self) Actual: \(type(of: (view) as AnyObject))", view: view as? UIView)
}
}
}
Expand Down

0 comments on commit 797cea4

Please sign in to comment.