Add specs for album controller failure

This commit is contained in:
Raphael 2010-09-24 15:01:36 -07:00
parent 1f62f910e3
commit ae7c869bc3

View file

@ -20,4 +20,14 @@ describe AlbumsController do
@album.reload.name.should eql("new_name")
end
describe '#create' do
it 'all aspects' do
params = {"album" => {"name" => "Sunsets","to" => "all"}}
post :create, params
end
it 'one aspect' do
params = {"album" => {"name" => "Sunsets","to" => @aspect.id.to_s}}
post :create, params
end
end
end