require'spec_helper'describeGitlab::Ci::Config::Node::Artifactsdolet(:entry){described_class.new(config)}describe'validation'docontext'when entry config value is correct'dolet(:config){{paths: %w[public/]}}describe'#value'doit'returns image string'doexpect(entry.value).toeqconfigendenddescribe'#valid?'doit'is valid'doexpect(entry).tobe_validendendendcontext'when entry value is not correct'dolet(:config){{name: 10}}describe'#errors'doit'saves errors'doexpect(entry.errors).toinclude'artifacts name should be a string'endendendendend