fixes abilities: level 3 users can vote proposals, not just level 2

This commit is contained in:
kikito
2015-09-12 14:13:24 +02:00
parent 6e27917d6e
commit 22e8d615aa
2 changed files with 7 additions and 1 deletions

View File

@@ -106,6 +106,12 @@ describe Ability do
it { should be_able_to(:vote, Proposal) }
end
describe "when level 3 verified" do
before{ user.update(verified_at: Time.now) }
it { should be_able_to(:vote, Proposal) }
end
end
describe "Organization" do