diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-06-13 13:28:37 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-06-17 20:32:59 +0200 |
commit | 19a00088546e889ba0148cd058dac7da199ea81f (patch) | |
tree | 0faa974e8146fd7aeb414e28b344ba71f9b0d0e2 /site | |
parent | Improve User model test coverage (diff) | |
download | council-webapp-19a00088546e889ba0148cd058dac7da199ea81f.tar.gz council-webapp-19a00088546e889ba0148cd058dac7da199ea81f.tar.bz2 council-webapp-19a00088546e889ba0148cd058dac7da199ea81f.zip |
Improve VotingOption model test coverage
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 |