When I try to record a snapshot, the matcher always return to me the message below:
"expected to record a snapshot"
I did not found any issue about this, can you give me any information about this error?
My test class is based in a UITableViewCell.
class ExamCellTests: QuickSpec {
var sut: ExamCell!
override func spec() {
describe("ExamCellTests") {
context("when you tried to instantiate ExamCell with coder") {
beforeEach {
let coder = NSCoder()
self.sut = ExamCell(coder: coder)
}
it("should be expected a nil value") {
expect(self.sut).to(beNil())
}
}
context("when load into screen") {
beforeEach {
self.sut = ExamCell()
self.sut.frame = CGRect(x: 0, y: 0, width: 320, height: 86)
let exam = Exam(id: 0, sigla: "invalid", name: "Ultrassonografia, abdomen superior", itemID: 0, item: 0, subitemID: 0, itemStatus: 0)
self.sut.setup(exam: exam)
}
it("should have the expected layout") {
expect(self.sut) == recordSnapshot()
}
}
}
}
}
The strange thing is that this happens only in this class, in others it works...
Any idea?
Thanks.
When I try to record a snapshot, the matcher always return to me the message below:
"expected to record a snapshot"
I did not found any issue about this, can you give me any information about this error?
My test class is based in a
UITableViewCell.The strange thing is that this happens only in this class, in others it works...
Any idea?
Thanks.