Skip to content

Nest responses should be stubbed #17

@stevenpetryk

Description

@stevenpetryk

Currently, testing this gem requires users to have a physical Nest. This is annoying, because it means that the project would never be able to work with a continuous integration service. It also made it hard for me to create pull requests. The solution I used was to create fake devices using Nest's developer tools. This, however, is not an ideal workflow when developing a gem. Running rspec should work regardless of your machine's state.

The best solution is to mock Nest's API responses using rspec-mocks. I'll throw together a pull request when I get time. A nice bonus of doing specs this way is a vast speed improvement, since no network requests are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions