Skip to content

Conversation

@AdamCampbell
Copy link

@AdamCampbell AdamCampbell commented Mar 10, 2017

  • By moving the Mocktail file parsing into the MocktailResponse class Mocktail files can be reused for purposes other than running Mocktail. Whether that be generating other types of network responses, pulling out values for unit testing, or something else entirely.
  • The Mocktail repo also benefits by have better separation of concerns
  • This should be a pure refactor that introduces no functional change

nicholascross and others added 2 commits March 8, 2017 22:39
* Extracted and exposed mocktail response creation.  This allows the file format to be used with other approaches to stubbing out web services for testing, such as registering handlers with GCDWebServer for example.

*  - Created mocktail response initializer and limited access to default initializer which is not very useful by itself
* Take an error pointer in MocktailResponse and handle the result outside of the MocktailResponse class

* Add constants for the user data in MocktailResponse errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants