debian-mirror-gitlab/spec/views/layouts/devise.html.haml_spec.rb

34 lines
813 B
Ruby
Raw Normal View History

2022-08-13 15:12:31 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-07-09 08:55:56 +05:30
RSpec.describe 'layouts/devise', feature_category: :user_management do
2022-08-13 15:12:31 +05:30
it_behaves_like 'a layout which reflects the application theme setting'
2022-11-25 23:54:43 +05:30
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
2023-07-09 08:55:56 +05:30
context 'without broadcast messaging' do
it 'does not render the broadcast layout' do
render
expect(rendered).not_to render_template('layouts/_broadcast')
end
end
2022-08-13 15:12:31 +05:30
end