Skip to content

Conversation

@dentarg
Copy link
Contributor

@dentarg dentarg commented Feb 17, 2016

Not the prettiest tests in the world, but now we actually check the result from the parsing.

Not the prettiest tests in the world, but now we actually check
the result from the parsing.
@dentarg
Copy link
Contributor Author

dentarg commented Feb 17, 2016

Motivated by the fact that we in twingly/twingly-search-api-node#10 discovered that the parsing of <tags> probably is incorrect.

let(:fixture) { :minimal_valid }

describe "#posts[0]" do
let(:post) { result.posts[0] }
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

@jage
Copy link
Contributor

jage commented Feb 17, 2016

LGTM!

dentarg added a commit that referenced this pull request Feb 17, 2016
@dentarg dentarg merged commit b529923 into master Feb 17, 2016
@dentarg dentarg deleted the improve-parser-specs branch February 17, 2016 11:59
<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>
Copy link
Member

Choose a reason for hiding this comment

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

Is this a blog? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😜

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