Extract spec_helper from chef_helper
chef_helper loads a lot of chef related testing libraries, and includes a call to ohai to configure them. This is not always needed when testing library code/rake tasks. When running examples directly from the command-line during development we can see a speedup of around 1.5 seconds, by using the reduced `spec_helper` rather than the full `chef_helper`.
Showing
- spec/chef_helper.rb 6 additions, 14 deletionsspec/chef_helper.rb
- spec/gitlab-ctl-commands-ee/lib/consul_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands-ee/lib/consul_spec.rb
- spec/gitlab-ctl-commands-ee/lib/geo/promote_to_primary_spec.rb 2 additions, 0 deletions...gitlab-ctl-commands-ee/lib/geo/promote_to_primary_spec.rb
- spec/gitlab-ctl-commands-ee/lib/geo/replication_spec.rb 2 additions, 0 deletionsspec/gitlab-ctl-commands-ee/lib/geo/replication_spec.rb
- spec/gitlab-ctl-commands-ee/lib/pgbouncer_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands-ee/lib/pgbouncer_spec.rb
- spec/gitlab-ctl-commands-ee/lib/repmgr_helper_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands-ee/lib/repmgr_helper_spec.rb
- spec/gitlab-ctl-commands-ee/promote_to_primary_node_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands-ee/promote_to_primary_node_spec.rb
- spec/gitlab-ctl-commands-ee/replicate_geo_database_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands-ee/replicate_geo_database_spec.rb
- spec/gitlab-ctl-commands/gitlab_ctl_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands/gitlab_ctl_spec.rb
- spec/gitlab-ctl-commands/lib/gitlab_ctl_pg_upgrade_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands/lib/gitlab_ctl_pg_upgrade_spec.rb
- spec/gitlab-ctl-commands/lib/postgresql/replication_spec.rb 1 addition, 0 deletionsspec/gitlab-ctl-commands/lib/postgresql/replication_spec.rb
- spec/gitlab-ctl-commands/lib/util_spec.rb 1 addition, 1 deletionspec/gitlab-ctl-commands/lib/util_spec.rb
- spec/gitlab/build/check_spec.rb 2 additions, 2 deletionsspec/gitlab/build/check_spec.rb
- spec/gitlab/build/gitlab_image_spec.rb 2 additions, 2 deletionsspec/gitlab/build/gitlab_image_spec.rb
- spec/gitlab/build/image_spec.rb 2 additions, 2 deletionsspec/gitlab/build/image_spec.rb
- spec/gitlab/build/info_spec.rb 2 additions, 2 deletionsspec/gitlab/build/info_spec.rb
- spec/gitlab/build/qa_image_spec.rb 2 additions, 2 deletionsspec/gitlab/build/qa_image_spec.rb
- spec/gitlab/build/qa_spec.rb 2 additions, 2 deletionsspec/gitlab/build/qa_spec.rb
- spec/gitlab/build_iteration_spec.rb 2 additions, 2 deletionsspec/gitlab/build_iteration_spec.rb
- spec/gitlab/build_spec.rb 2 additions, 2 deletionsspec/gitlab/build_spec.rb
Please register or sign in to comment