-
Notifications
You must be signed in to change notification settings - Fork 0
Improve parser specs #49
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
Conversation
Not the prettiest tests in the world, but now we actually check the result from the parsing.
|
Motivated by the fact that we in twingly/twingly-search-api-node#10 discovered that the parsing of |
spec/parser_spec.rb
Outdated
| let(:fixture) { :minimal_valid } | ||
|
|
||
| describe "#posts[0]" do | ||
| let(:post) { result.posts[0] } |
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.
There's no functional difference (that I know of), but I'm thinking maybe this could be:
subject(:post) { result.posts[0] }Since it would indicate the it's the post that's being tested.
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.
Sure
|
LGTM! |
| <languageCode>sv</languageCode> | ||
| <published>2013-01-29 15:21:56Z</published> | ||
| <indexed>2013-01-29 15:22:52Z</indexed> | ||
| <blogUrl>http://www.skvallernytt.se/</blogUrl> |
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.
Is this a blog? 😄
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.
😜
Not the prettiest tests in the world, but now we actually check the result from the parsing.