Commit 391e0f36 authored by Axel García's avatar Axel García

New epic button hidden if not group owner

parent e329a8d3
......@@ -14,6 +14,15 @@ describe 'layouts/header/_new_dropdown' do
assign(:group, group)
end
it 'does not have "New epic" link' do
render
expect(rendered).not_to have_link(
'New epic',
href: new_group_epic_path(group)
)
end
context 'as a Group owner' do
before do
group.add_owner(user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment