Sha256: 060a40cab002e1fef5bda433bdf5e17a924923cbc073351910f8d85975e22f12
Contents?: true
Size: 594 Bytes
Versions: 18
Compression:
Stored size: 594 Bytes
Contents
describe Kubes::Compiler::Decorator::Post do let(:decorator) { described_class.new(data) } def fixture(name) YAML.load_file("spec/fixtures/decorators/ingress/#{name}.yaml") end before(:each) do allow(Kubes::Compiler::Decorator::Hashable::Storage).to receive(:fetch).and_return("fakehash") end context "ingress" do describe "tls" do let(:data) { fixture("tls") } it "run" do decorator.run data = decorator.data name = data['spec']['tls'][0]['secretName'] expect(name).to eq("tls-secret-fakehash") end end end end
Version data entries
18 entries across 18 versions & 1 rubygems