debian-mirror-gitlab/spec/views/layouts/devise.html.haml_spec.rb
2023-07-09 08:55:56 +05:30

33 lines
813 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'layouts/devise', feature_category: :user_management do
it_behaves_like 'a layout which reflects the application theme setting'
describe 'logo' do
it 'renders GitLab logo' do
render
expect(rendered).to have_selector('img[alt^="GitLab"]')
end
context 'with custom logo' do
let_it_be(:appearance) { create(:appearance, logo: fixture_file_upload('spec/fixtures/dk.png')) }
it 'renders custom logo' do
render
expect(rendered).to have_selector('img[data-src$="dk.png"]')
end
end
end
context 'without broadcast messaging' do
it 'does not render the broadcast layout' do
render
expect(rendered).not_to render_template('layouts/_broadcast')
end
end
end