Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
aka001 committed Feb 18, 2015
1 parent d49291e commit 72f21bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/admin/users_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
describe '#lock_account' do
it 'it locks the given account' do
other_user = FactoryGirl.create :user
post :lock_account, id: other_user.id
other_user.lock_access!
expect(other_user.reload.access_locked?).to be_truthy
end
end

describe '#unlock_account' do
it 'it unlocks the given account' do
other_user = FactoryGirl.create :user
post :lock_account, id: other_user.id
other_user.lock_access!
expect(other_user.reload.access_locked?).to be_truthy
post :unlock_account, id: other_user.id
other_user.unlock_access!
expect(other_user.reload.access_locked?).to be_falsey
end
end
Expand Down

0 comments on commit 72f21bf

Please sign in to comment.