display procedures without zones
This commit is contained in:
parent
d0e05784e9
commit
1d6c2fd7eb
2 changed files with 11 additions and 1 deletions
|
@ -132,6 +132,16 @@ describe Administrateurs::ProceduresController, type: :controller do
|
|||
expect(assigns(:procedures).any? { |p| p.id == procedure2.id }).to be_truthy
|
||||
expect(assigns(:procedures).any? { |p| p.id == procedure1.id }).to be_falsey
|
||||
end
|
||||
|
||||
context "without zones" do
|
||||
let!(:procedure) { create(:procedure, :published, zones: []) }
|
||||
subject { get :all }
|
||||
|
||||
it 'displays procedures without zones' do
|
||||
subject
|
||||
expect(assigns(:procedures).any? { |p| p.id == procedure.id }).to be_truthy
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'for specific status' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue