Commit d0cd4ae9 authored by Felipe Artur's avatar Felipe Artur

Remove wrong spec

parent a0a27215
require 'spec_helper'
describe 'layouts/nav/_new_group_sidebar' do
before do
assign(:group, create(:group))
end
describe 'group issue boards link' do
it 'is not visible when there is no valid license' do
stub_licensed_features(group_issue_boards: false)
render
expect(rendered).not_to have_text 'Boards'
end
it 'is not visible when there is no valid license' do
stub_licensed_features(group_issue_boards: true)
render
expect(rendered).to have_text 'Boards'
end
end
end
......@@ -41,5 +41,23 @@ describe 'layouts/nav/sidebar/_group' do
expect(rendered).to have_text 'Contribution Analytics'
end
describe 'group issue boards link' do
it 'is not visible when there is no valid license' do
stub_licensed_features(group_issue_boards: false)
render
expect(rendered).not_to have_text 'Boards'
end
it 'is visible when there is valid license' do
stub_licensed_features(group_issue_boards: true)
render
expect(rendered).to have_text 'Boards'
end
end
end
end
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