mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:04:53 +08:00
User ctrl refactor - breaks up large methods, moves some logic into model
Includes missing methods from backup for travis to pass fix missing code, failing specs keep params handling in the controller.
This commit is contained in:
@ -826,12 +826,12 @@ describe User do
|
||||
end
|
||||
end
|
||||
|
||||
describe "#update_avatar" do
|
||||
describe "#upload_avatar" do
|
||||
let(:upload) { Fabricate(:upload) }
|
||||
let(:user) { Fabricate(:user) }
|
||||
|
||||
it "should update use's avatar" do
|
||||
expect(user.update_avatar(upload)).to be_true
|
||||
it "should update user's avatar" do
|
||||
expect(user.upload_avatar(upload)).to be_true
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user