Refactored profile area

This commit is contained in:
Dmitriy Zaporozhets 2012-09-14 19:13:25 +03:00
parent 8f9a450eed
commit dc37c8aaae
15 changed files with 104 additions and 68 deletions

View file

@ -28,8 +28,8 @@ describe "Users Security" do
it { should be_denied_for :visitor }
end
describe "GET /profile/password" do
subject { profile_password_path }
describe "GET /profile/account" do
subject { profile_account_path }
it { should be_allowed_for @u1 }
it { should be_allowed_for :admin }