Closed MichaelButkovic closed 8 years ago
Looking good so far
@mparent61 @benghaziboy @spra85 ready for review
👍
@spra85 @mparent61 made updates based on feedback
Remaining concern is that much of the FB API interaction is not covered in local/test environments, and only loosely covered by unit tests.
At the very least I would make sure that the settings access + template rendering is executed before the environment check, so that settings + template errors can be caught earlier in testing.
What abou using VCR to record single IA article create + delete interactions, which could then be replayed via tests?
I'd be fine using VCR, but the requests mocks are already sending back the exact payloads from the API.
@mparent61 more updates
Yeah, the API responses are simple enough that VCR probably is overkill. VCR would potentially make maintenance easier in the future (auto-regenerate mocks), but we can punt on it.
The refactoring you just did to always render even in non-prod seems like the low-hanging fruit here.
👍
👍
Integration with FB API