-
Notifications
You must be signed in to change notification settings - Fork 4
Tests #7
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
Tests #7
Conversation
| config.password = password | ||
| end | ||
|
|
||
| expect(DocumentCloud.client.instance_variable_get(:@email)).to eq CGI.escape(email) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't necessarily the nicest way to test this. Reaching in with instance_variable_get is something of an antipattern, and I'll try other approaches.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a test, so if it works and handles the case the test is for, im good with it :)
…bundler as an explicit development dep
Testing on version 2.1, 2.2 and 2.3. Also including `sudo: false` as the error message from the previous build seems to be references here: rubygems/bundler#3558
|
Honestly maintenance of this is a low priority so whatever work you can contribute will be awesome. Feel free to use whatever tools you deem best, I trust you know what will work well since you've been using it frequently. I'm happy to merge when you think it's ready. |
|
Tests are passing @tuttinator, it's been far too long and I apologize getting back to you. Do you think this is merge ready? |
mileszim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuttinator I'm going to work off this branch to get tests in before i merge this and start updating dependencies, is that alright with you?
|
Great work! I borrowed your scaffold and am going from there. Thank you! Closing this in favor of #17 |
Referencing to #6
This is my first approach at adding some tests. Not ready to merge yet, and I'll keep adding to this PR as I go - but I thought I'd open it early to allow you to provide feedback instead of one large PR all at once.
I've added a
Rakefileas Travis CI will just runrakeby default.I've also thought about using VCR to stub HTTP requests - so that testing API calls don't hit real servers.
Feel free to let me know if there are any stylistic changes you prefer.