2016-06-06 18:25:51 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2019-09-24 16:38:58 +02:00
|
|
|
describe 'new_administrateur/procedures/edit.html.haml' do
|
2018-10-16 00:01:53 +02:00
|
|
|
let(:logo) { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
|
2019-07-23 12:09:48 +02:00
|
|
|
let(:procedure) { create(:procedure, logo: logo, lien_site_web: 'http://some.website') }
|
2016-06-06 18:25:51 +02:00
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:procedure, procedure)
|
|
|
|
render
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when procedure logo is present' do
|
|
|
|
it 'display on the page' do
|
2019-09-24 16:38:58 +02:00
|
|
|
expect(rendered).to have_selector('.procedure-logos')
|
2016-06-06 18:25:51 +02:00
|
|
|
end
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|