Skip to content
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

[Nimble] Support for @lazy property #70

Closed
agassiyzh opened this issue Jun 26, 2014 · 2 comments
Closed

[Nimble] Support for @lazy property #70

agassiyzh opened this issue Jun 26, 2014 · 2 comments

Comments

@agassiyzh
Copy link

Thx for you hard work.

Nimble seems that can not expect @lazy property.

I have a @lazy property:

@lazy var appIndexModel: QGLAppIndexModel = {
    let JSONFileURL = self.bundleBaseURL.URLByAppendingPathComponent(self.appIndexJSONFileName)
    var model = QGLAppIndexModel(JSONFileURL: JSONFileURL)
    return model
  }()

Nimble seems can not expect it.

@modocache
Copy link
Member

@agassiyzh Thanks for the heads up! I'll look into this today; in the meantime, it may be possible to use expect with a closure:

expect{subject.appIndexModel}.willNot.beNil()

@modocache modocache added this to the v0.1.0 milestone Jun 29, 2014
@modocache modocache changed the title Support for @lazy property [Nimble] Support for @lazy property Jun 29, 2014
@modocache modocache removed this from the v0.1.0-beta milestone Jul 6, 2014
@jeffh
Copy link
Member

jeffh commented Jul 17, 2014

This should work with the new Nimble.

@jeffh jeffh closed this as completed Jul 17, 2014
NachoSoto pushed a commit to NachoSoto/Quick that referenced this issue Jul 18, 2016
Split CompatibilityTest.m into multiple files. Closes Quick#63.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants