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
include Gitlab::Kubernetes::Helm::BaseCommand let(:application) { create(:clusters_applications_helm) }
def name let(:test_class) do
"test-class-name" Class.new do
include Gitlab::Kubernetes::Helm::BaseCommand
def name
"test-class-name"
end
def files
{
some: 'value'
}
end
end
end end
def files let(:base_command) do
{ test_class.new
some: 'value'
}
end end
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