#394: fixed specs
This commit is contained in:
parent
31e40a9360
commit
00ec76cd15
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue