Commit 010fa9e9 authored by minahilnichols's avatar minahilnichols

Cleanup spec

parent 43ea422c
...@@ -12,7 +12,7 @@ RSpec.describe Registrations::CompanyController do ...@@ -12,7 +12,7 @@ RSpec.describe Registrations::CompanyController do
allow(::Gitlab).to receive(:com?).and_return(true) allow(::Gitlab).to receive(:com?).and_return(true)
end end
shared_examples 'an authenticated endpoint' do shared_examples 'user authentication' do
context 'when not authenticated' do context 'when not authenticated' do
let(:logged_in) { false } let(:logged_in) { false }
...@@ -41,7 +41,7 @@ RSpec.describe Registrations::CompanyController do ...@@ -41,7 +41,7 @@ RSpec.describe Registrations::CompanyController do
describe '#new' do describe '#new' do
subject { get :new } subject { get :new }
it_behaves_like 'an authenticated endpoint' it_behaves_like 'user authentication'
it_behaves_like 'a dot-com only feature' it_behaves_like 'a dot-com only feature'
context 'on render' do context 'on render' do
...@@ -49,6 +49,7 @@ RSpec.describe Registrations::CompanyController do ...@@ -49,6 +49,7 @@ RSpec.describe Registrations::CompanyController do
it { is_expected.to render_template(:new) } it { is_expected.to render_template(:new) }
end end
end end
describe '#create' do describe '#create' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
......
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