diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2017-11-02 15:08:10 -0600 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2017-11-02 19:21:00 -0600 |
commit | 4585f358b923bb9b4ab36a0c3e4682b060e088a7 (patch) | |
tree | b7ce667a4aee2ff0c09e3a0f83e18d3ba4290927 /spec/views | |
parent | 244bec9101ff754291e2c02d9844e0879ff5fa2f (diff) | |
download | gitlab-ce-4585f358b923bb9b4ab36a0c3e4682b060e088a7.tar.gz |
Add styles for branch & tags boxes
- Create a partial for limit exceeded message
- Modifies specs to adjust new scenarios
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/commit/branches.html.haml_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/views/projects/commit/branches.html.haml_spec.rb b/spec/views/projects/commit/branches.html.haml_spec.rb index 4199d2fd962..c9112ede334 100644 --- a/spec/views/projects/commit/branches.html.haml_spec.rb +++ b/spec/views/projects/commit/branches.html.haml_spec.rb @@ -18,7 +18,6 @@ describe 'projects/commit/branches.html.haml' do end it 'shows branch and tag links' do - expect(rendered).to have_selector('.js-details-expand') expect(rendered).to have_link('master') expect(rendered).to have_link('test-branch') expect(rendered).to have_link('tag1') @@ -36,9 +35,8 @@ describe 'projects/commit/branches.html.haml' do end it 'shows too many to search' do - expect(rendered).to have_selector('.js-details-expand') - expect(rendered).to have_link('Too many branches to search', href: '#') - expect(rendered).to have_link('Too many tags to search', href: '#') + expect(rendered).to have_text('Branches unavailable') + expect(rendered).to have_text('Tags unavailable') end end end |