diff options
author | Peter Marko <peter.marko@siemens.com> | 2019-03-07 20:32:21 +0100 |
---|---|---|
committer | Peter Marko <peter.marko@siemens.com> | 2019-03-11 14:19:47 +0100 |
commit | 4e2781febd1564febe6968d902c56a74c45c6bf7 (patch) | |
tree | 43688da3a6009d0fd8ef8879db36cef896170f37 /spec/views | |
parent | 3d37d29a2856807083e4672f3946bc03722ccbac (diff) | |
download | gitlab-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.rb | 15 |
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 |