diff options
Diffstat (limited to 'site')
-rw-r--r-- | site/spec/models/voting_option_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/site/spec/models/voting_option_spec.rb b/site/spec/models/voting_option_spec.rb index 4a41067..2b6005c 100644 --- a/site/spec/models/voting_option_spec.rb +++ b/site/spec/models/voting_option_spec.rb @@ -38,4 +38,11 @@ describe VotingOption do v2.should_not be_destroyable_by(u) end end + + it 'should allow everyone to view' do + v = Factory(:voting_option) + for u in users_factory(AllRoles) + v.should be_viewable_by(u) + end + end end |