2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

fix some rspec deprecations

This commit is contained in:
Régis Hanol 2015-02-26 13:05:20 +01:00
parent 13e5c02643
commit 7d8dd9d93b
2 changed files with 3 additions and 3 deletions

View file

@ -672,7 +672,7 @@ describe UsersController do
user.reload.username.should == new_username
end
pending 'should fail if the user is old', 'ensure_can_edit_username! is not throwing' do
skip 'should fail if the user is old', 'ensure_can_edit_username! is not throwing' do
# Older than the change period and >1 post
user.created_at = Time.now - (SiteSetting.username_change_period + 1).days
user.stubs(:post_count).returns(200)