Commit a9518743 authored by syasonik's avatar syasonik

Remove reference to tracing licensed feature in specs

parent f7af49d8
...@@ -43,31 +43,17 @@ RSpec.describe Projects::TracingsController do ...@@ -43,31 +43,17 @@ RSpec.describe Projects::TracingsController do
end end
end end
describe 'with valid license' do before do
before do sign_in(user)
stub_licensed_features(tracing: true)
sign_in(user)
end
context 'with maintainer role' do
it_behaves_like 'user with read access', :public
it_behaves_like 'user with read access', :internal
it_behaves_like 'user with read access', :private
end
context 'without maintainer role' do
it_behaves_like 'user without read access', :public
it_behaves_like 'user without read access', :internal
it_behaves_like 'user without read access', :private
end
end end
context 'with invalid license' do context 'with maintainer role' do
before do it_behaves_like 'user with read access', :public
stub_licensed_features(tracing: false) it_behaves_like 'user with read access', :internal
sign_in(user) it_behaves_like 'user with read access', :private
end end
context 'without maintainer role' do
it_behaves_like 'user without read access', :public it_behaves_like 'user without read access', :public
it_behaves_like 'user without read access', :internal it_behaves_like 'user without read access', :internal
it_behaves_like 'user without read access', :private it_behaves_like 'user without read access', :private
......
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