Skip to content

Updated Code: handles zero devices, tests with vcr, extracted duplicated code into private methods#29

Open
mark-smithtb wants to merge 14 commits intoericboehs:masterfrom
mark-smithtb:adding-vcr-testing
Open

Updated Code: handles zero devices, tests with vcr, extracted duplicated code into private methods#29
mark-smithtb wants to merge 14 commits intoericboehs:masterfrom
mark-smithtb:adding-vcr-testing

Conversation

@mark-smithtb
Copy link
Copy Markdown

  • pulled post to device out of temperature methods into a private method.
  • refactored to only pull structor and device ids if they exist.
  • Added vcr to record interactions with the nest api for testing.
  • Added timecop to freeze time for sets away status test to work with vcr.

@stevenpetryk
Copy link
Copy Markdown
Collaborator

Whoa.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to change your password. Also this shouldn't be in the repo. :D

@ericboehs
Copy link
Copy Markdown
Owner

Could we put the fixtures in /spec/fixtures instead of /fixtures?

Side note: We should set up circleci (or travis) and hound on this project.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [99/80]
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

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.

4 participants