summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-13 11:08:48 +0100
committerPhil Hughes <me@iamphill.com>2017-09-13 11:08:48 +0100
commit360b60bea7b2685278a93e0979790d7a5b0c421b (patch)
tree6930dbb6439cd7fa9f85550d4f8db9bbf92ae222 /spec/views
parent9c9b1774cbdc2a6cdfbbf8cd33e87e62294e729a (diff)
downloadgitlab-ce-360b60bea7b2685278a93e0979790d7a5b0c421b.tar.gz
CE backport of new-sidebar-boardsce-backport-new-sidebar-boards
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb24
1 files changed, 18 insertions, 6 deletions
diff --git a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
index b17bc6692f3..c5f455b8948 100644
--- a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
+++ b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
@@ -1,16 +1,28 @@
require 'spec_helper'
describe 'layouts/nav/sidebar/_project' do
+ let(:project) { create(:project, :repository) }
+
+ before do
+ assign(:project, project)
+ assign(:repository, project.repository)
+ allow(view).to receive(:current_ref).and_return('master')
+
+ allow(view).to receive(:can?).and_return(true)
+ end
+
+ describe 'issue boards' do
+ it 'has boards tab when multiple issue boards available' do
+ render
+
+ expect(rendered).to have_css('a[title="Board"]')
+ end
+ end
+
describe 'container registry tab' do
before do
- project = create(:project, :repository)
stub_container_registry_config(enabled: true)
- assign(:project, project)
- assign(:repository, project.repository)
- allow(view).to receive(:current_ref).and_return('master')
-
- allow(view).to receive(:can?).and_return(true)
allow(controller).to receive(:controller_name)
.and_return('repositories')
allow(controller).to receive(:controller_path)