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
BeforeEach not executing - what am I missing? #445
Comments
Yup, thanks for the tip, @mark-anders! Awesome to see you help diagnose these issues. 💯 @Jtango18 you'll need to wrap these two lines in a beforeEach {
let segment = TripSegment(coordinates: [CLLocationCoordinate2D()], distance: 37.5);
trip.addSegment(segment)
} If after reading the above and #426 you still have questions, post them here! 👍 |
Hi, sorry to bump this topic again.. I'm trying to understand this same My code looks like this:
The result log is:
Having wrapped the line with Thanks for your help! |
Hey @vinamelody,
class CurrencyTest: QuickSpec {
override func spec() {
describe("Valid Currency") {
beforeEach {
print("This is beforeEach in QuickSpec")
}
print("Valid Currency is called here.")
//
// This line below will cause beforeEaches to fire
//
it("does something") { }
}
}
} |
@jeffh awesome! that works :) thank you! |
No problem! 😄 |
Its behavior is a little strange to me. |
Hi all,
I'm pretty new to Quick, but I'm having an issue with the most basic of scenarios, hoping someone can point to something very simple I'm doing wrong.
I have the follow spec setup
The problem I'm having is that the before each doesn't seem to be getting called. When I try to access my variable "trip" in the context and in the it statement, it is nil.
Any help would be much appreciated.
Cheers
JT
The text was updated successfully, but these errors were encountered: