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

Updated simpleTests.R to use new test variables. #21

Closed
wants to merge 6 commits into from

Conversation

mikebirdgeneau
Copy link
Contributor

Updated simpleTests.R to use new test variables.

  1. Added tests to check if test variables have been provided, returns error otherwise since tests will fail.
  2. Saved JSON results and check to see if test has failed, returning error when it does.
    • API active variable should be TRUE, (except for deleted posts) so this variable tell us that the post was posted successfully.
  3. Changed address from South Pole to Mt. Everest, because South Pole address was causing iPhone app
    to freeze (pun intended) for some reason. (Had to delete app & re-install to have app working again. - Bug report submitted to the Pushbullet folks.)

Saved results & tested to make sure test hasn't failed in each situation, return error on fail.
if(!result$active){
stop("Test Failed.")
}
## storing this test result to allow us to use active user's email for testing below.

Copy link
Owner

Choose a reason for hiding this comment

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

If this first test failed for me yesterday, and if if you only test for email and channel, I suspect it will still fail for me.

Which means that we borked what was working behaviour -- fallback to default device.

@eddelbuettel
Copy link
Owner

Aiee. Looks like I overlooked this at first, and we then did similar changes. But if I now look at the remaining change, it really is just one line and some whitespace. So maybe skip this PR?

@mikebirdgeneau
Copy link
Contributor Author

My last commit cleans this up so the only remaining changes are the Readme.md file and the one change to spit out the value of d.

eddelbuettel added a commit that referenced this pull request Jan 22, 2015
@eddelbuettel
Copy link
Owner

Sorry, missed that -- that would have been cleaner.

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.

None yet

2 participants