Pattern: Call inside describe
/context
block
Issue: -
Avoid discouraged calls inside describe
and context
blocks.
Examples of correct code:
class TotoTests: QuickSpec {
override func spec() {
describe("foo") {
beforeEach {
let foo = Foo()
foo.toto()
}
}
}
}
Examples of incorrect code:
class TotoTests: QuickSpec {
override func spec() {
describe("foo") {
let foo = ↓Foo()
}
}
}