Commit 628ff2cf authored by Dylan Griffith's avatar Dylan Griffith

Use anonymous class in base_command_spec

parent f6ae53bb
require 'spec_helper' require 'spec_helper'
class TestClass describe Gitlab::Kubernetes::Helm::BaseCommand do
let(:application) { create(:clusters_applications_helm) }
let(:test_class) do
Class.new do
include Gitlab::Kubernetes::Helm::BaseCommand include Gitlab::Kubernetes::Helm::BaseCommand
def name def name
"test-class-name" "test-class-name"
end end
...@@ -11,11 +15,13 @@ class TestClass ...@@ -11,11 +15,13 @@ class TestClass
some: 'value' some: 'value'
} }
end end
end end
end
let(:base_command) do
test_class.new
end
describe Gitlab::Kubernetes::Helm::BaseCommand do
let(:application) { create(:clusters_applications_helm) }
let(:base_command) { TestClass.new }
subject { base_command } subject { base_command }
it_behaves_like 'helm commands' do it_behaves_like 'helm commands' do
......
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