MJS RJS Fix initialization of album test
This commit is contained in:
parent
60e29f6572
commit
27c00bae90
1 changed files with 3 additions and 3 deletions
|
|
@ -9,14 +9,14 @@ describe AlbumsController do
|
||||||
render_views
|
render_views
|
||||||
before do
|
before do
|
||||||
@user = Factory.create(:user)
|
@user = Factory.create(:user)
|
||||||
@user.aspect(:name => "lame-os")
|
@aspect = @user.aspect(:name => "lame-os")
|
||||||
@album = Factory.create(:album)
|
@album = @user.post :album, :to => @aspect.id, :name => 'things on fire'
|
||||||
sign_in :user, @user
|
sign_in :user, @user
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should update the name of an album" do
|
it "should update the name of an album" do
|
||||||
sign_in :user, @user
|
sign_in :user, @user
|
||||||
put :update, :id => @album._id, :album => { :name => "new_name"}
|
put :update, :id => @album.id, :album => { :name => "new_name"}
|
||||||
@album.reload.name.should eql("new_name")
|
@album.reload.name.should eql("new_name")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue