diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-25 11:15:24 +0000 |
commit | 7a108776e4f45b10ef5956326fdd9c66514d1ddd (patch) | |
tree | 3bad8adc1347e16c87827bfa43aa9f81e147da6e /spec/helpers/admin_helper_spec.rb | |
parent | 2f5085e25a9fd66d839463835a63767003708f62 (diff) | |
parent | eff755504d45bfeff415786dcd0dbbb4c47e8dd0 (diff) |
Merge branch 'ab_annotations_1' into rails-3-develop
Diffstat (limited to 'spec/helpers/admin_helper_spec.rb')
-rw-r--r-- | spec/helpers/admin_helper_spec.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/helpers/admin_helper_spec.rb b/spec/helpers/admin_helper_spec.rb new file mode 100644 index 000000000..804fcc7fd --- /dev/null +++ b/spec/helpers/admin_helper_spec.rb @@ -0,0 +1,21 @@ +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 |