]> cat aescling's git repositories - mastodon.git/commit
Add tests to the Feed model (#2594)
authorJoël Quenneville <joel.quen@gmail.com>
Fri, 28 Apr 2017 22:21:35 +0000 (18:21 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 28 Apr 2017 22:21:35 +0000 (00:21 +0200)
commit27301312a698e0fd2d1898d9e1c579d7f9ee861f
treea200409867bf475435bb8c1d26cd8d1963534120
parent8ac7fca5d06b776cc09127f9c6a9018e9acade5b
Add tests to the Feed model (#2594)

This adds a test for the `Feed#get` method. While the data
transformations in `Feed#get` may seem redundant, they are important to
maintain the order from Redis. The tests I wrote will fail if someone
tries to refactor away this "redundancy" (as I tried to do in the first
iteration of this change).
spec/models/feed_spec.rb