]> cat aescling's git repositories - mastodon.git/commit
Test embedded_view related code in a helper (#2282)
authorJoël Quenneville <joel.quen@gmail.com>
Sun, 23 Apr 2017 04:05:52 +0000 (00:05 -0400)
committerEugen <eugen@zeonfederated.com>
Sun, 23 Apr 2017 04:05:52 +0000 (06:05 +0200)
commit1cf9e14a416cd70aaa85453c411d95a3b3c82472
treed0d38bf3ebf38b4c3c0eb00caae079a6fa053371
parent0c2fe22bc19a82899c7577410bc869db7d42955a
Test embedded_view related code in a helper (#2282)

The two methods `StreamEntriesHelper#stream_link_target` and
`StreamEntriesHelper#acct` are based on checking whether we are running
in an embedded view.

This adds some test helper code to make the testing easier. We extracted
some "magic strings" to constants to lower the coupling in the specs.
app/helpers/stream_entries_helper.rb
spec/helpers/stream_entries_helper_spec.rb