#394: fixed specs

This commit is contained in:
Vokhmin Alexey V 2014-05-29 01:17:15 +04:00
parent 31e40a9360
commit 00ec76cd15
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ shared_examples_for 'mass_build platform owner' do
end
it 'should change build_publish on publish' do
allow_any_instance_of(BuildList).to receive(:valid_branch_for_publish?).and_return(true)
post :publish, platform_id: @platform, id: @mass_build
@mass_build.reload.build_publish_count.should == 1
end

View File

@ -77,7 +77,10 @@ describe Projects::BuildListsController do
end
end
before { stub_symlink_methods }
before do
stub_symlink_methods
allow_any_instance_of(BuildList).to receive(:valid_branch_for_publish?).and_return(true)
end
context 'crud' do
before do