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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
588 B
Ruby
Raw Normal View History

2022-08-13 15:12:31 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'layouts/devise' do
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
2022-08-13 15:12:31 +05:30
end