Commit cdae51673a940573494a8ba3d25c68cad9144265
1 parent
16b7609e
Exists in
master
and in
28 other branches
Define conditions to expires track list block
Showing
2 changed files
with
10 additions
and
0 deletions
Show diff stats
plugins/community_track/lib/community_track_plugin/track_list_block.rb
plugins/community_track/test/unit/community_track_plugin/track_list_block_test.rb
... | ... | @@ -102,4 +102,10 @@ class TrackListBlockTest < ActiveSupport::TestCase |
102 | 102 | assert_equal [1, 2], @block.category_ids |
103 | 103 | end |
104 | 104 | |
105 | + should 'define expiration condition' do | |
106 | + condition = CommunityTrackPlugin::TrackListBlock.expire_on | |
107 | + assert !condition[:profile].empty? | |
108 | + assert !condition[:environment].empty? | |
109 | + end | |
110 | + | |
105 | 111 | end | ... | ... |