summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2019-03-07 20:32:21 +0100
committerPeter Marko <peter.marko@siemens.com>2019-03-11 14:19:47 +0100
commit4e2781febd1564febe6968d902c56a74c45c6bf7 (patch)
tree43688da3a6009d0fd8ef8879db36cef896170f37 /spec/views
parent3d37d29a2856807083e4672f3946bc03722ccbac (diff)
downloadgitlab-ce-4e2781febd1564febe6968d902c56a74c45c6bf7.tar.gz
expose group id on home panel
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/groups/_home_panel.html.haml_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/views/groups/_home_panel.html.haml_spec.rb b/spec/views/groups/_home_panel.html.haml_spec.rb
new file mode 100644
index 00000000000..91c5ca261b9
--- /dev/null
+++ b/spec/views/groups/_home_panel.html.haml_spec.rb
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe 'groups/_home_panel' do
+ let(:group) { create(:group) }
+
+ before do
+ assign(:group, group)
+ end
+
+ it 'renders the group ID' do
+ render
+
+ expect(rendered).to have_content("Group ID: #{group.id}")
+ end
+end