Add public changes to create and vote Poll:Questions with votation type
This commit is contained in:
@@ -213,6 +213,18 @@ describe Abilities::Common do
|
||||
it { should_not be_able_to(:answer, expired_poll_question_from_all_geozones) }
|
||||
it { should_not be_able_to(:answer, expired_poll_question_from_other_geozone) }
|
||||
|
||||
it { should be_able_to(:prioritized_answers, poll_question_from_own_geozone) }
|
||||
it { should be_able_to(:prioritized_answers, poll_question_from_all_geozones) }
|
||||
it { should_not be_able_to(:prioritized_answers, poll_question_from_other_geozone) }
|
||||
|
||||
it { should_not be_able_to(:prioritized_answers, expired_poll_question_from_own_geozone) }
|
||||
it { should_not be_able_to(:prioritized_answers, expired_poll_question_from_all_geozones) }
|
||||
it { should_not be_able_to(:prioritized_answers, expired_poll_question_from_other_geozone) }
|
||||
|
||||
context "Poll::Question" do
|
||||
it { should be_able_to(:load_answers, Poll::Question) }
|
||||
end
|
||||
|
||||
context "without geozone" do
|
||||
before { user.geozone = nil }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user