Skip to content

Allow MockFloret resources to be outside of bundle #226

@lukaswuerzburger

Description

@lukaswuerzburger

In my current project I don't want to add the files to the Xcode project. I only need it temporary for the simulator.

mockFloret.addMapping(forUrl: url) { (_, floret) -> Cauliframework.Result<Response>? in
    floret.resultForPath("/Users/me/Desktop/mock-data/GET_my-endpoint") // This is not possible
}

We could deprecate the method resultForPath and instead introduce two new methods resultForFilePath and resultForBundlePath.

It's also hard to understand that the mock data has to be in a folder called "MockFloret". But that is probably being covered in #166

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestproposalProposing a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions