Commit d5261ef4 authored by Coung Ngo's avatar Coung Ngo

Improve iteration report specs

Improve specs as a result of reviewer comments
parent 678a662c
......@@ -40,4 +40,18 @@ RSpec.describe 'User views iteration' do
end
end
end
context 'without license' do
before do
stub_licensed_features(iterations: false)
sign_in(user)
end
it 'shows page not found' do
visit group_iteration_path(iteration.group, iteration)
expect(page).to have_title('Not Found')
expect(page).to have_content('Page Not Found')
end
end
end
......@@ -40,4 +40,18 @@ RSpec.describe 'User views iteration' do
end
end
end
context 'without license' do
before do
stub_licensed_features(iterations: false)
sign_in(user)
end
it 'shows page not found' do
visit project_iteration_path(project, iteration)
expect(page).to have_title('Not Found')
expect(page).to have_content('Page Not Found')
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