Used the term suspended instead of banned.

This commit is contained in:
Neil Lalonde
2013-11-07 13:53:32 -05:00
parent 706f96af0a
commit 0c6f794eb0
57 changed files with 318 additions and 312 deletions

View File

@ -23,10 +23,10 @@ describe SessionController do
end
end
describe 'banned user' do
describe 'suspended user' do
it 'should return an error' do
User.any_instance.stubs(:is_banned?).returns(true)
User.any_instance.stubs(:banned_till).returns(2.days.from_now)
User.any_instance.stubs(:suspended?).returns(true)
User.any_instance.stubs(:suspended_till).returns(2.days.from_now)
xhr :post, :create, login: user.username, password: 'myawesomepassword'
::JSON.parse(response.body)['error'].should be_present
end