Skip to content

Instantly share code, notes, and snippets.

@tugbaaksoy
Last active June 21, 2022 15:15
Show Gist options
  • Save tugbaaksoy/0720b7945dfa0ccdcbd206e46ce8b838 to your computer and use it in GitHub Desktop.
Save tugbaaksoy/0720b7945dfa0ccdcbd206e46ce8b838 to your computer and use it in GitHub Desktop.
quick and nimble example
import Quick
import Nimble
@testable import Basket
class BasketSpec: QuickSpec {
override func spec() {
beforeEach{
let apple = Apple()
}
describe("There are six apples in basket") {
context("Take two apples out of the basket") {
it("Should be four apples left") {
expect(apple.count).to(equal(4))
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment