debian-mirror-gitlab/spec/views/registrations/welcome/show.html.haml_spec.rb

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

21 lines
536 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
2021-01-29 00:20:46 +05:30
RSpec.describe 'registrations/welcome/show' do
2021-06-08 01:23:25 +05:30
let_it_be(:user) { create(:user) }
2020-11-24 15:15:51 +05:30
before do
allow(view).to receive(:current_user).and_return(user)
2023-07-09 08:55:56 +05:30
allow(view).to receive(:welcome_update_params).and_return({})
2020-11-24 15:15:51 +05:30
render
end
subject { rendered }
it { is_expected.not_to have_selector('label[for="user_setup_for_company"]') }
it { is_expected.to have_button('Get started!') }
2021-10-27 15:23:28 +05:30
it { is_expected.not_to have_selector('input[name="user[email_opted_in]"]') }
2020-11-24 15:15:51 +05:30
end