aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <petsku@petteriraty.eu>2011-08-01 17:35:02 +0300
committerPetteri Räty <petsku@petteriraty.eu>2011-08-01 17:35:02 +0300
commit4f32847c92654f3e8b9e8a0569872cdc1336e537 (patch)
treed83748c6285828e3c6b089c4d2523ac991362ccd /site/spec/models/voting_option_spec.rb
parentShow use hints for users (diff)
parentAdd and cleanup validations (diff)
downloadcouncil-webapp-4f32847c92654f3e8b9e8a0569872cdc1336e537.tar.gz
council-webapp-4f32847c92654f3e8b9e8a0569872cdc1336e537.tar.bz2
council-webapp-4f32847c92654f3e8b9e8a0569872cdc1336e537.zip
Merge remote-tracking branch 'github/review'
Diffstat (limited to 'site/spec/models/voting_option_spec.rb')
-rw-r--r--site/spec/models/voting_option_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/spec/models/voting_option_spec.rb b/site/spec/models/voting_option_spec.rb
index 87074c6..5054f43 100644
--- a/site/spec/models/voting_option_spec.rb
+++ b/site/spec/models/voting_option_spec.rb
@@ -31,7 +31,7 @@ describe VotingOption do
a2 = Factory(:agenda, :state => 'old')
i2 = Factory(:agenda_item, :agenda => a2)
v2 = Factory(:voting_option, :agenda_item => i2)
- for u in users_factory(AllRoles)
+ for u in users_factory(:all_roles)
v1.should_not be_updatable_by(u)
v1.should_not be_destroyable_by(u)
v2.should_not be_updatable_by(u)
@@ -41,7 +41,7 @@ describe VotingOption do
it 'should allow everyone to view' do
v = Factory(:voting_option)
- for u in users_factory(AllRoles)
+ for u in users_factory(:all_roles)
v.should be_viewable_by(u)
end
end