Refactored profile to resource. Added missing flash notice on successfull updated. Update username via ajax

This commit is contained in:
Dmitriy Zaporozhets 2012-12-02 13:29:24 +02:00
parent 2be5e6d443
commit 46bf3a0949
14 changed files with 95 additions and 56 deletions

View file

@ -82,37 +82,25 @@ end
# profile GET /profile(.:format) profile#show
# profile_design GET /profile/design(.:format) profile#design
# profile_update PUT /profile/update(.:format) profile#update
describe ProfileController, "routing" do
describe ProfilesController, "routing" do
it "to #account" do
get("/profile/account").should route_to('profile#account')
get("/profile/account").should route_to('profiles#account')
end
it "to #history" do
get("/profile/history").should route_to('profile#history')
end
it "to #password_update" do
put("/profile/password").should route_to('profile#password_update')
end
it "to #token" do
get("/profile/token").should route_to('profile#token')
get("/profile/history").should route_to('profiles#history')
end
it "to #reset_private_token" do
put("/profile/reset_private_token").should route_to('profile#reset_private_token')
put("/profile/reset_private_token").should route_to('profiles#reset_private_token')
end
it "to #show" do
get("/profile").should route_to('profile#show')
get("/profile").should route_to('profiles#show')
end
it "to #design" do
get("/profile/design").should route_to('profile#design')
end
it "to #update" do
put("/profile/update").should route_to('profile#update')
get("/profile/design").should route_to('profiles#design')
end
end