Promotion fails if the user account isn't old enough yet.

This commit is contained in:
Robin Ward
2015-04-14 12:05:09 -04:00
parent eaf5d21c41
commit 869d8e25ad
4 changed files with 40 additions and 3 deletions

View File

@@ -187,7 +187,7 @@ describe Admin::UsersController do
context '.trust_level' do
before do
@another_user = Fabricate(:coding_horror)
@another_user = Fabricate(:coding_horror, created_at: 1.month.ago)
end
it "raises an error when the user doesn't have permission" do