diff options
Diffstat (limited to 'spec/support/kubeclient.rb')
-rw-r--r-- | spec/support/kubeclient.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/support/kubeclient.rb b/spec/support/kubeclient.rb new file mode 100644 index 00000000000..56c5800c801 --- /dev/null +++ b/spec/support/kubeclient.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + # Feature specs call webmock_enable_with_http_connect_on_start! by + # default. This is needed to prevent Kubeclient from connecting to a + # host before the request is stubbed. + config.before(:each, :kubeclient) do + webmock_enable! + end +end |