-
Notifications
You must be signed in to change notification settings - Fork 0
Improve tests #38
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
Improve tests #38
Conversation
in the spec for #endpoint_url. It also didn't fit inside the describe block for the .new method.
The same string was used everywhere.
* Changed some context descriptions * Use expect_any_instance instead of allow_any_instance * Put user_agent spec after the block spec so all API key specs are grouped together.
They were only used in two places in the file.
No need to repeat "Fixture.get" for each test.
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.
noticed we changed to described_class in another test, do it here too?
(although I think we should use some other more appropriate matcher)
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.
I just thought it looks weird checking that described_class.new is a described_class. It's easier to understand if its explicit, but the "correct way" would probably be to use described_class here too.
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.
Alright
"s" is not a vowel :)
… even if we have no posts yet
|
I think this was an improvement, merge? |
|
Yes, I'll merge. |
Made some small improvements to the tests.