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

Allow MockFloret resources to be outside of bundle #226

Open
lukaswuerzburger opened this issue Mar 15, 2021 · 0 comments
Open

Allow MockFloret resources to be outside of bundle #226

lukaswuerzburger opened this issue Mar 15, 2021 · 0 comments
Labels
enhancement New feature or request proposal Proposing a new feature.

Comments

@lukaswuerzburger
Copy link
Collaborator

lukaswuerzburger commented Mar 15, 2021

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

@lukaswuerzburger lukaswuerzburger added enhancement New feature or request proposal Proposing a new feature. labels Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal Proposing a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant