Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
675ebde5e6
1 changed files with 13 additions and 0 deletions
|
|
@ -46,4 +46,17 @@ describe AspectsController do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "#update" do
|
||||
before do
|
||||
@aspect = @user.aspect(:name => "Bruisers")
|
||||
end
|
||||
it "doesn't overwrite random attributes" do
|
||||
new_user = Factory.create :user
|
||||
params = {"name" => "Bruisers"}
|
||||
params[:user_id] = new_user.id
|
||||
put('update', :id => @aspect.id, "aspect" => params)
|
||||
Aspect.find(@aspect.id).user_id.should == @user.id
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue