Add specs for album controller failure
This commit is contained in:
parent
1f62f910e3
commit
ae7c869bc3
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue