aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers/admin_helper_spec.rb
blob: 1f0155c988b33a49b20394eccb11a10b5a813006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe AdminHelper do

    include AdminHelper

    describe :comment_visibility do

        it 'shows the status of a visible comment' do
            comment = Factory.build(:visible_comment)
            comment_visibility(comment).should == 'Visible'
        end

        it 'shows the status of a hidden comment' do
            comment = Factory.build(:hidden_comment)
            comment_visibility(comment).should == 'Hidden'
        end

    end
    
end