diff options
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 |