Remove tests that were just testing if Rails worked
This commit is contained in:
parent
8d24f08f4c
commit
68b9cd209d
1 changed files with 0 additions and 16 deletions
|
@ -219,22 +219,6 @@ describe Procedure do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'publish' do
|
||||
let(:procedure) { create(:procedure, :published) }
|
||||
let(:procedure_path) { ProcedurePath.find(procedure.procedure_path.id) }
|
||||
|
||||
it 'is available from a valid path' do
|
||||
expect(procedure.path).to match(/fake_path/)
|
||||
expect(procedure.published).to be_truthy
|
||||
end
|
||||
|
||||
it 'is correctly set in ProcedurePath table' do
|
||||
expect(ProcedurePath.where(path: procedure.path).count).to eq(1)
|
||||
expect(procedure_path.procedure_id).to eq(procedure.id)
|
||||
expect(procedure_path.administrateur_id).to eq(procedure.administrateur_id)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'archive' do
|
||||
let(:procedure) { create(:procedure, :published) }
|
||||
let(:procedure_path) { ProcedurePath.find(procedure.procedure_path.id) }
|
||||
|
|
Loading…
Add table
Reference in a new issue