[#247] fix build list spec

This commit is contained in:
Alexander Machehin 2014-11-26 17:22:55 +05:00
parent 697433eef5
commit cd6e1c3956
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ shared_examples_for 'create build list via api' do
end
it 'should not create without existing save_to_platform' do
lambda{ post :create, @create_params.deep_merge(build_list: {save_to_platform_id: -1})}.should change{@project.build_lists.count}.by(0)
lambda{
post :create, @create_params.deep_merge(build_list: {save_to_platform_id: -1, save_to_repository_id: -1})
}.should change{@project.build_lists.count}.by(0)
end
it 'should not create without existing save_to_repository' do