diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-28 18:09:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-28 18:09:07 +0000 |
commit | 1c8fa70f9d0818e2a82089c8643a6e455bca47fd (patch) | |
tree | f339f97de0425270bdd909e2f4d378927b6e0a18 /spec/views | |
parent | 736d36d8597d0d1ec1b47644e6d091c3f4a78f45 (diff) | |
download | gitlab-ce-1c8fa70f9d0818e2a82089c8643a6e455bca47fd.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/import/gitlab_projects/new.html.haml_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/views/import/gitlab_projects/new.html.haml_spec.rb b/spec/views/import/gitlab_projects/new.html.haml_spec.rb index 953fcc6dc51..17636c99cbc 100644 --- a/spec/views/import/gitlab_projects/new.html.haml_spec.rb +++ b/spec/views/import/gitlab_projects/new.html.haml_spec.rb @@ -5,17 +5,18 @@ require 'spec_helper' describe 'import/gitlab_projects/new.html.haml' do include Devise::Test::ControllerHelpers - let(:user) { build_stubbed(:user, namespace: build_stubbed(:namespace)) } + let(:namespace) { build_stubbed(:namespace) } + let(:user) { build_stubbed(:user, namespace: namespace) } before do allow(view).to receive(:current_user).and_return(user) end context 'when the user has no other namespaces' do - it 'shows a namespace_id hidden field tag' do + it 'adds a namespace_id hidden field tag with the namespace id as value' do render - expect(rendered).to have_css('input[name="namespace_id"]', count: 1, visible: false) + expect(rendered).to have_css("input[name='namespace_id'][value='#{namespace.id}']", count: 1, visible: false) end end |