2016-06-06 18:25:51 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2016-06-29 16:19:25 +02:00
|
|
|
describe 'admin/procedures/edit.html.haml', type: :view, vcr: { cassette_name: 'admin_procedure_edit' } do
|
2016-06-06 18:25:51 +02:00
|
|
|
let(:logo) { Rack::Test::UploadedFile.new("./spec/support/files/logo_test_procedure.png", 'image/png') }
|
|
|
|
let(:procedure) { create(:procedure, logo: logo) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:procedure, procedure)
|
|
|
|
render
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when procedure logo is present' do
|
|
|
|
it 'display on the page' do
|
|
|
|
expect(rendered).to have_selector('#preview_procedure_logo')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|