Skip to content
Snippets Groups Projects
Commit f6b210ac authored by Minahil Nichols's avatar Minahil Nichols
Browse files

Clean more specs

parent 010fa9e9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -101,6 +101,7 @@ RSpec.describe Registrations::CompanyController do
 
expect(response).to have_gitlab_http_status(:ok)
expect(response).to render_template(:new)
expect(flash[:alert]).to eq('failed')
end
end
end
Loading
Loading
Loading
Loading
@@ -32,9 +32,9 @@ RSpec.describe 'Company Information', :js do
}
end
 
where(:service_response, :current_path) do
ServiceResponse.success | new_users_sign_up_groups_project_path
ServiceResponse.error(message: 'failed') | users_sign_up_company_path
where(:service_response, :current_path, :page_content) do
ServiceResponse.success | new_users_sign_up_groups_project_path | 'Create or import your first project'
ServiceResponse.error(message: 'failed') | users_sign_up_company_path | 'failed'
end
 
with_them do
Loading
Loading
@@ -57,6 +57,7 @@ RSpec.describe 'Company Information', :js do
click_button 'Continue'
 
expect(page).to have_current_path(current_path, ignore_query: true)
expect(page).to have_content(page_content)
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment